diff options
author | Eduard Zingerman <[email protected]> | 2023-02-19 22:04:27 +0200 |
---|---|---|
committer | Alexei Starovoitov <[email protected]> | 2023-02-22 12:34:50 -0800 |
commit | 6338a94d5ab42a94e96ea36edc5f7df1fe73e68e (patch) | |
tree | eb8bd666efbe96ebae7a891d0b8661dcad7fbbcf /tools/testing/selftests/bpf/progs/task_ls_recursion.c | |
parent | 6715df8d5d24655b9fd368e904028112b54c7de1 (diff) |
selftests/bpf: Tests for uninitialized stack reads
Three testcases to make sure that stack reads from uninitialized
locations are accepted by verifier when executed in privileged mode:
- read from a fixed offset;
- read from a variable offset;
- passing a pointer to stack to a helper converts
STACK_INVALID to STACK_MISC.
Signed-off-by: Eduard Zingerman <[email protected]>
Acked-by: Andrii Nakryiko <[email protected]>
Link: https://lore.kernel.org/r/[email protected]
Signed-off-by: Alexei Starovoitov <[email protected]>
Diffstat (limited to 'tools/testing/selftests/bpf/progs/task_ls_recursion.c')
0 files changed, 0 insertions, 0 deletions