aboutsummaryrefslogtreecommitdiffstats
path: root/tools/testing/selftests/bpf/prog_tests/sockmap_basic.c
diff options
context:
space:
mode:
authorRuowen Qin <[email protected]>2023-09-27 04:50:30 +0000
committerAndrii Nakryiko <[email protected]>2023-09-28 16:31:05 +0000
commit9e09b75079e229b08f12a732712100fdb9af8cab (patch)
treeb12d556d10ab041bfa4b9e19f9befa31137a7dfd /tools/testing/selftests/bpf/prog_tests/sockmap_basic.c
parentMerge branch 'bpf: Add missed stats for kprobes' (diff)
downloadkernel-9e09b75079e229b08f12a732712100fdb9af8cab.tar.gz
kernel-9e09b75079e229b08f12a732712100fdb9af8cab.zip
samples/bpf: Add -fsanitize=bounds to userspace programs
The sanitizer flag, which is supported by both clang and gcc, would make it easier to debug array index out-of-bounds problems in these programs. Make the Makfile smarter to detect ubsan support from the compiler and add the '-fsanitize=bounds' accordingly. Suggested-by: Mimi Zohar <[email protected]> Signed-off-by: Jinghao Jia <[email protected]> Signed-off-by: Jinghao Jia <[email protected]> Signed-off-by: Ruowen Qin <[email protected]> Signed-off-by: Andrii Nakryiko <[email protected]> Tested-by: Jiri Olsa <[email protected]> Acked-by: Jiri Olsa <[email protected]> Link: https://lore.kernel.org/bpf/[email protected]
Diffstat (limited to 'tools/testing/selftests/bpf/prog_tests/sockmap_basic.c')
0 files changed, 0 insertions, 0 deletions