diff options
author | Andrii Nakryiko <[email protected]> | 2022-04-25 17:45:04 -0700 |
---|---|---|
committer | Alexei Starovoitov <[email protected]> | 2022-04-26 15:41:46 -0700 |
commit | 966a7509325395c51c5f6d89e7352b0585e4804b (patch) | |
tree | 9ee96d3f6f87ae09ba75e67b5be0790fc612b763 /tools/perf/scripts/python/mem-phys-addr.py | |
parent | 0994a54c5202114ad0e3b3a0f1326e810b23ad38 (diff) |
libbpf: Fix logic for finding matching program for CO-RE relocation
Fix the bug in bpf_object__relocate_core() which can lead to finding
invalid matching BPF program when processing CO-RE relocation. IF
matching program is not found, last encountered program will be assumed
to be correct program and thus error detection won't detect the problem.
Fixes: 9c82a63cf370 ("libbpf: Fix CO-RE relocs against .text section")
Signed-off-by: Andrii Nakryiko <[email protected]>
Signed-off-by: Alexei Starovoitov <[email protected]>
Link: https://lore.kernel.org/bpf/[email protected]
Diffstat (limited to 'tools/perf/scripts/python/mem-phys-addr.py')
0 files changed, 0 insertions, 0 deletions