aboutsummaryrefslogtreecommitdiffstats
path: root/tools/testing/selftests/bpf/prog_tests/prog_array_init.c
diff options
context:
space:
mode:
authorAndrii Nakryiko <[email protected]>2021-11-24 00:23:23 +0000
committerDaniel Borkmann <[email protected]>2021-11-25 23:15:03 +0000
commit57428298b5acf2ba2dd98359c532774f6eaeecb3 (patch)
tree28e480c67e6e746dc4bea684bc49a9be49303cc4 /tools/testing/selftests/bpf/prog_tests/prog_array_init.c
parentselftests/bpf: Fix misaligned memory access in queue_stack_map test (diff)
downloadkernel-57428298b5acf2ba2dd98359c532774f6eaeecb3.tar.gz
kernel-57428298b5acf2ba2dd98359c532774f6eaeecb3.zip
selftests/bpf: Prevent out-of-bounds stack access in test_bpffs
Buf can be not zero-terminated leading to strstr() to access data beyond the intended buf[] array. Fix by forcing zero termination. Signed-off-by: Andrii Nakryiko <[email protected]> Signed-off-by: Daniel Borkmann <[email protected]> Link: https://lore.kernel.org/bpf/[email protected]
Diffstat (limited to 'tools/testing/selftests/bpf/prog_tests/prog_array_init.c')
0 files changed, 0 insertions, 0 deletions