diff options
author | Kumar Kartikeya Dwivedi <[email protected]> | 2024-12-03 20:47:56 -0800 |
---|---|---|
committer | Alexei Starovoitov <[email protected]> | 2024-12-04 09:19:50 -0800 |
commit | f513c3635078fc184af66b1af9e4f2b2d19b7d79 (patch) | |
tree | b2baa9ad325ba3ff54a3b55d7eda554baea0ed59 /tools/testing/selftests/bpf/prog_tests/prog_array_init.c | |
parent | adfdd9c68566120debc622712888c4d084539081 (diff) |
selftests/bpf: Add test for reading from STACK_INVALID slots
Ensure that when CAP_PERFMON is dropped, and the verifier sees
allow_ptr_leaks as false, we are not permitted to read from a
STACK_INVALID slot. Without the fix, the test will report unexpected
success in loading.
Signed-off-by: Kumar Kartikeya Dwivedi <[email protected]>
Link: https://lore.kernel.org/r/[email protected]
Signed-off-by: Alexei Starovoitov <[email protected]>
Diffstat (limited to 'tools/testing/selftests/bpf/prog_tests/prog_array_init.c')
0 files changed, 0 insertions, 0 deletions