aboutsummaryrefslogtreecommitdiffstats
path: root/tools/testing/selftests/bpf/prog_tests/queue_stack_map.c
diff options
context:
space:
mode:
authorAndrii Nakryiko <[email protected]>2021-11-24 00:23:18 +0000
committerDaniel Borkmann <[email protected]>2021-11-25 23:15:03 +0000
commit593835377f24ca1bb98008ec1dc3baefe491ad6e (patch)
treefa57f0773226c642232f84063ffc07d93250cf94 /tools/testing/selftests/bpf/prog_tests/queue_stack_map.c
parentlibbpf: Fix glob_syms memory leak in bpf_linker (diff)
downloadkernel-593835377f24ca1bb98008ec1dc3baefe491ad6e.tar.gz
kernel-593835377f24ca1bb98008ec1dc3baefe491ad6e.zip
libbpf: Fix using invalidated memory in bpf_linker
add_dst_sec() can invalidate bpf_linker's section index making dst_symtab pointer pointing into unallocated memory. Reinitialize dst_symtab pointer on each iteration to make sure it's always valid. Fixes: faf6ed321cf6 ("libbpf: Add BPF static linker APIs") 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/queue_stack_map.c')
0 files changed, 0 insertions, 0 deletions