summaryrefslogtreecommitdiff
path: root/net/bpf
diff options
context:
space:
mode:
authorKumar Kartikeya Dwivedi <memxor@gmail.com>2021-10-02 04:17:55 +0300
committerAlexei Starovoitov <ast@kernel.org>2021-10-06 03:07:42 +0300
commit466b2e13971ef65cd7b621ca3044be14028b002b (patch)
tree301439d7ed5876fc6efc96bbe4dccf1cb39a7eff /net/bpf
parent9dbe6015636c19f929a7f7b742f27f303ff6069d (diff)
downloadlinux-466b2e13971ef65cd7b621ca3044be14028b002b.tar.xz
libbpf: Resolve invalid weak kfunc calls with imm = 0, off = 0
Preserve these calls as it allows verifier to succeed in loading the program if they are determined to be unreachable after dead code elimination during program load. If not, the verifier will fail at runtime. This is done for ext->is_weak symbols similar to the case for variable ksyms. Signed-off-by: Kumar Kartikeya Dwivedi <memxor@gmail.com> Signed-off-by: Alexei Starovoitov <ast@kernel.org> Acked-by: Andrii Nakryiko <andrii@kernel.org> Link: https://lore.kernel.org/bpf/20211002011757.311265-8-memxor@gmail.com
Diffstat (limited to 'net/bpf')
0 files changed, 0 insertions, 0 deletions