diff options
author | Andrii Nakryiko <[email protected]> | 2023-10-16 11:28:40 -0700 |
---|---|---|
committer | Daniel Borkmann <[email protected]> | 2023-10-17 11:43:20 +0200 |
commit | 137df1189d128a6b5dee2f653e054b40ef36b94c (patch) | |
tree | 63414cb538d83336a18287774f062f2f0df1eb2e /tools/perf/scripts/python/export-to-sqlite.py | |
parent | a3c2dd96487f1dd734c9443a3472c8dafa689813 (diff) |
libbpf: Don't assume SHT_GNU_verdef presence for SHT_GNU_versym section
Fix too eager assumption that SHT_GNU_verdef ELF section is going to be
present whenever binary has SHT_GNU_versym section. It seems like either
SHT_GNU_verdef or SHT_GNU_verneed can be used, so failing on missing
SHT_GNU_verdef actually breaks use cases in production.
One specific reported issue, which was used to manually test this fix,
was trying to attach to `readline` function in BASH binary.
Fixes: bb7fa09399b9 ("libbpf: Support symbol versioning for uprobe")
Reported-by: Liam Wisehart <[email protected]>
Signed-off-by: Andrii Nakryiko <[email protected]>
Signed-off-by: Daniel Borkmann <[email protected]>
Tested-by: Manu Bretelle <[email protected]>
Reviewed-by: Fangrui Song <[email protected]>
Acked-by: Hengqi Chen <[email protected]>
Link: https://lore.kernel.org/bpf/[email protected]
Diffstat (limited to 'tools/perf/scripts/python/export-to-sqlite.py')
0 files changed, 0 insertions, 0 deletions