aboutsummaryrefslogtreecommitdiffstats
path: root/tools/testing/selftests/bpf/prog_tests/attach_probe.c
diff options
context:
space:
mode:
authorAndrii Nakryiko <andriin@fb.com>2019-10-20 20:39:00 -0700
committerDaniel Borkmann <daniel@iogearbox.net>2019-10-21 14:49:12 +0200
commitf90415e9600c5227131531c0ed11514a2d3bbe62 (patch)
treeef4141b3fcf60d3da65aa88e7c81490b8fe552f7 /tools/testing/selftests/bpf/prog_tests/attach_probe.c
parentlibbpf: Teach bpf_object__open to guess program types (diff)
downloadlinux-dev-f90415e9600c5227131531c0ed11514a2d3bbe62.tar.xz
linux-dev-f90415e9600c5227131531c0ed11514a2d3bbe62.zip
selftests/bpf: Make a copy of subtest name
test_progs never created a copy of subtest name, rather just stored pointer to whatever string test provided. This is bad as that string might be freed or modified by the end of subtest. Fix this by creating a copy of given subtest name when subtest starts. Signed-off-by: Andrii Nakryiko <andriin@fb.com> Signed-off-by: Daniel Borkmann <daniel@iogearbox.net> Link: https://lore.kernel.org/bpf/20191021033902.3856966-6-andriin@fb.com
Diffstat (limited to 'tools/testing/selftests/bpf/prog_tests/attach_probe.c')
0 files changed, 0 insertions, 0 deletions