summaryrefslogtreecommitdiffstats
path: root/net/core
diff options
context:
space:
mode:
authorAndrii Nakryiko <andrii@kernel.org>2023-10-16 20:28:40 +0200
committerDaniel Borkmann <daniel@iogearbox.net>2023-10-17 11:43:20 +0200
commit137df1189d128a6b5dee2f653e054b40ef36b94c (patch)
tree63414cb538d83336a18287774f062f2f0df1eb2e /net/core
parentMerge tag 'for-netdev' of https://git.kernel.org/pub/scm/linux/kernel/git/bpf... (diff)
downloadlinux-137df1189d128a6b5dee2f653e054b40ef36b94c.tar.xz
linux-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/core')
0 files changed, 0 insertions, 0 deletions