diff options
author | Andrii Nakryiko <[email protected]> | 2019-10-28 16:37:27 -0700 |
---|---|---|
committer | Alexei Starovoitov <[email protected]> | 2019-10-28 20:27:40 -0700 |
commit | d3a3aa0c59e83d8c13a758128b10dd459ce0d866 (patch) | |
tree | 6e1c65a50ad5b55da720c90c28eb1b56301b8149 /tools/perf/scripts/python/check-perf-trace.py | |
parent | 94ff9ebb49a546b7f009ed840bafa235c96d4c4b (diff) |
libbpf: Fix off-by-one error in ELF sanity check
libbpf's bpf_object__elf_collect() does simple sanity check after iterating
over all ELF sections, if checks that .strtab index is correct. Unfortunately,
due to section indices being 1-based, the check breaks for cases when .strtab
ends up being the very last section in ELF.
Fixes: 77ba9a5b48a7 ("tools lib bpf: Fetch map names from correct strtab")
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/check-perf-trace.py')
0 files changed, 0 insertions, 0 deletions