diff options
author | David S. Miller <davem@davemloft.net> | 2018-03-07 20:27:51 -0500 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2018-03-07 20:27:51 -0500 |
commit | cfda06d7362b4151ad9acc4765ad15e8dd969e4a (patch) | |
tree | d9582e795735266ea5bc09ecc2045199956b2486 /arch | |
parent | b06ef18a4c255609388ed6e068a1c69c797545e0 (diff) | |
parent | 6007b080d2e2adb7af22bf29165f0594ea12b34c (diff) | |
download | linux-stable-cfda06d7362b4151ad9acc4765ad15e8dd969e4a.tar.gz linux-stable-cfda06d7362b4151ad9acc4765ad15e8dd969e4a.tar.bz2 linux-stable-cfda06d7362b4151ad9acc4765ad15e8dd969e4a.zip |
Merge git://git.kernel.org/pub/scm/linux/kernel/git/bpf/bpf
Daniel Borkmann says:
====================
pull-request: bpf 2018-03-08
The following pull-request contains BPF updates for your *net* tree.
The main changes are:
1) Fix various BPF helpers which adjust the skb and its GSO information
with regards to SCTP GSO. The latter is a special case where gso_size
is of value GSO_BY_FRAGS, so mangling that will end up corrupting
the skb, thus bail out when seeing SCTP GSO packets, from Daniel(s).
2) Fix a compilation error in bpftool where BPF_FS_MAGIC is not defined
due to too old kernel headers in the system, from Jiri.
3) Increase the number of x64 JIT passes in order to allow larger images
to converge instead of punting them to interpreter or having them
rejected when the interpreter is not built into the kernel, from Daniel.
====================
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'arch')
-rw-r--r-- | arch/x86/net/bpf_jit_comp.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/arch/x86/net/bpf_jit_comp.c b/arch/x86/net/bpf_jit_comp.c index 45e4eb5bcbb2..ce5b2ebd5701 100644 --- a/arch/x86/net/bpf_jit_comp.c +++ b/arch/x86/net/bpf_jit_comp.c @@ -1188,7 +1188,7 @@ skip_init_addrs: * may converge on the last pass. In such case do one more * pass to emit the final image */ - for (pass = 0; pass < 10 || image; pass++) { + for (pass = 0; pass < 20 || image; pass++) { proglen = do_jit(prog, addrs, image, oldproglen, &ctx); if (proglen <= 0) { image = NULL; @@ -1215,6 +1215,7 @@ skip_init_addrs: } } oldproglen = proglen; + cond_resched(); } if (bpf_jit_enable > 1) |