diff options
| author | Andrii Nakryiko <[email protected]> | 2021-11-23 16:23:18 -0800 |
|---|---|---|
| committer | Daniel Borkmann <[email protected]> | 2021-11-26 00:15:03 +0100 |
| commit | 593835377f24ca1bb98008ec1dc3baefe491ad6e (patch) | |
| tree | fa57f0773226c642232f84063ffc07d93250cf94 /tools/testing/selftests/bpf/prog_tests/autoload.c | |
| parent | 8cb125566c40b7141d8842c534f0ea5820ee3d5c (diff) | |
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/autoload.c')
0 files changed, 0 insertions, 0 deletions