diff options
| author | Ruowen Qin <[email protected]> | 2023-09-27 04:50:30 +0000 |
|---|---|---|
| committer | Andrii Nakryiko <[email protected]> | 2023-09-28 16:31:05 +0000 |
| commit | 9e09b75079e229b08f12a732712100fdb9af8cab (patch) | |
| tree | b12d556d10ab041bfa4b9e19f9befa31137a7dfd /tools/testing/selftests/bpf/prog_tests/sockmap_basic.c | |
| parent | Merge branch 'bpf: Add missed stats for kprobes' (diff) | |
| download | kernel-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
