aboutsummaryrefslogtreecommitdiffstats
path: root/tools/testing/selftests/bpf/prog_tests
diff options
context:
space:
mode:
authorAndrii Nakryiko <[email protected]>2020-03-13 17:23:34 +0000
committerDaniel Borkmann <[email protected]>2020-03-13 22:30:53 +0000
commitd121e1d34b72c4975ff0340901d926c0aaf98174 (patch)
treecd25234c8e4096105993a9b4432d1f13ca59c044 /tools/testing/selftests/bpf/prog_tests
parentselftests/bpf: Ensure consistent test failure output (diff)
downloadkernel-d121e1d34b72c4975ff0340901d926c0aaf98174.tar.gz
kernel-d121e1d34b72c4975ff0340901d926c0aaf98174.zip
libbpf: Ignore incompatible types with matching name during CO-RE relocation
When finding target type candidates, ignore forward declarations, functions, and other named types of incompatible kind. Not doing this can cause false errors. See [0] for one such case (due to struct pt_regs forward declaration). [0] https://github.com/iovisor/bcc/pull/2806#issuecomment-598543645 Fixes: ddc7c3042614 ("libbpf: implement BPF CO-RE offset relocation algorithm") Reported-by: Wenbo Zhang <[email protected]> Signed-off-by: Andrii Nakryiko <[email protected]> Signed-off-by: Daniel Borkmann <[email protected]> Acked-by: Martin KaFai Lau <[email protected]> Link: https://lore.kernel.org/bpf/[email protected]
Diffstat (limited to 'tools/testing/selftests/bpf/prog_tests')
0 files changed, 0 insertions, 0 deletions