aboutsummaryrefslogtreecommitdiffstats
path: root/tools/lib/bpf/bpf_helpers.h
diff options
context:
space:
mode:
authorIlya Leoshkevich <[email protected]>2020-07-17 16:53:24 +0000
committerAlexei Starovoitov <[email protected]>2020-07-21 20:26:25 +0000
commit5fa6974471c5518a50bdd814067508dbcb477251 (patch)
treefffc3137156ad321370641684a593de6532dcf9c /tools/lib/bpf/bpf_helpers.h
parents390/bpf: Fix sign extension in branch_ku (diff)
downloadkernel-5fa6974471c5518a50bdd814067508dbcb477251.tar.gz
kernel-5fa6974471c5518a50bdd814067508dbcb477251.zip
s390/bpf: Use brcl for jumping to exit_ip if necessary
"BPF_MAXINSNS: Maximum possible literals" test causes panic with bpf_jit_harden = 2. The reason is that BPF_JMP | BPF_EXIT is always emitted as brc, however, after removal of JITed image size limitations, brcl might be required. Fix by using brcl when necessary. Fixes: 4e9b4a6883dd ("s390/bpf: Use relative long branches") Signed-off-by: Ilya Leoshkevich <[email protected]> Signed-off-by: Alexei Starovoitov <[email protected]> Link: https://lore.kernel.org/bpf/[email protected]
Diffstat (limited to 'tools/lib/bpf/bpf_helpers.h')
0 files changed, 0 insertions, 0 deletions