summaryrefslogtreecommitdiff
path: root/fs/ext4/fast_commit.c
diff options
context:
space:
mode:
authorAndrii Nakryiko <andrii@kernel.org>2024-10-09 04:15:54 +0300
committerAlexei Starovoitov <ast@kernel.org>2024-10-10 04:24:11 +0300
commit4073213488be542f563eb4b2457ab4cbcfc2b738 (patch)
tree6d97e29480c671d85f39f4a8dd39e04a18858536 /fs/ext4/fast_commit.c
parent965fdf95a3272e78c2175231351b3a7d42490a14 (diff)
downloadlinux-4073213488be542f563eb4b2457ab4cbcfc2b738.tar.xz
libbpf: fix sym_is_subprog() logic for weak global subprogs
sym_is_subprog() is incorrectly rejecting relocations against *weak* global subprogs. Fix that by realizing that STB_WEAK is also a global function. While it seems like verifier doesn't support taking an address of non-static subprog right now, it's still best to fix support for it on libbpf side, otherwise users will get a very confusing error during BPF skeleton generation or static linking due to misinterpreted relocation: libbpf: prog 'handle_tp': bad map relo against 'foo' in section '.text' Error: failed to open BPF object file: Relocation failed It's clearly not a map relocation, but is treated and reported as such without this fix. Fixes: 53eddb5e04ac ("libbpf: Support subprog address relocation") Signed-off-by: Andrii Nakryiko <andrii@kernel.org> Link: https://lore.kernel.org/r/20241009011554.880168-1-andrii@kernel.org Signed-off-by: Alexei Starovoitov <ast@kernel.org>
Diffstat (limited to 'fs/ext4/fast_commit.c')
0 files changed, 0 insertions, 0 deletions