aboutsummaryrefslogtreecommitdiffstats
path: root/tools/testing/selftests/bpf/prog_tests/tracing_struct.c
diff options
context:
space:
mode:
authorKumar Kartikeya Dwivedi <[email protected]>2024-11-04 17:19:59 +0000
committerAlexei Starovoitov <[email protected]>2024-11-04 19:37:36 +0000
commitd798ce3f4cab1b0d886b19ec5cc8e6b3d7e35081 (patch)
treeb956b98fc4eb826326bb8e321144ce40e4bc63ab /tools/testing/selftests/bpf/prog_tests/tracing_struct.c
parentselftests/bpf: Clean up open-coded gettid syscall invocations (diff)
downloadkernel-d798ce3f4cab1b0d886b19ec5cc8e6b3d7e35081.tar.gz
kernel-d798ce3f4cab1b0d886b19ec5cc8e6b3d7e35081.zip
selftests/bpf: Add tests for raw_tp null handling
Ensure that trusted PTR_TO_BTF_ID accesses perform PROBE_MEM handling in raw_tp program. Without the previous fix, this selftest crashes the kernel due to a NULL-pointer dereference. Also ensure that dead code elimination does not kick in for checks on the pointer. Reviewed-by: Jiri Olsa <[email protected]> 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/tracing_struct.c')
0 files changed, 0 insertions, 0 deletions