diff options
author | Andrii Nakryiko <andrii@kernel.org> | 2023-10-16 11:28:40 -0700 |
---|---|---|
committer | Daniel Borkmann <daniel@iogearbox.net> | 2023-10-17 11:43:20 +0200 |
commit | 137df1189d128a6b5dee2f653e054b40ef36b94c (patch) | |
tree | 63414cb538d83336a18287774f062f2f0df1eb2e /net/xdp/xsk.c | |
parent | a3c2dd96487f1dd734c9443a3472c8dafa689813 (diff) | |
download | linux-stable-137df1189d128a6b5dee2f653e054b40ef36b94c.tar.gz linux-stable-137df1189d128a6b5dee2f653e054b40ef36b94c.tar.bz2 linux-stable-137df1189d128a6b5dee2f653e054b40ef36b94c.zip |
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 <liamwisehart@meta.com>
Signed-off-by: Andrii Nakryiko <andrii@kernel.org>
Signed-off-by: Daniel Borkmann <daniel@iogearbox.net>
Tested-by: Manu Bretelle <chantr4@gmail.com>
Reviewed-by: Fangrui Song <maskray@google.com>
Acked-by: Hengqi Chen <hengqi.chen@gmail.com>
Link: https://lore.kernel.org/bpf/20231016182840.4033346-1-andrii@kernel.org
Diffstat (limited to 'net/xdp/xsk.c')
0 files changed, 0 insertions, 0 deletions