Skip to content

BPF misc improvements

Daniel Borkmann netdev 1 version Applied

Status from this message: Applied, Thank you Daniel.

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest9 patches 1 replyApplied

Patches in v1 Applied

#Subject and filesSizeRepliesApplied
1/9bpf, verifier: detect misconfigured mem,size argument pairkernel/bpf/verifier.c+55 -240 replies
2/9bpf: add csum_diff helper to xdp as wellnet/core/filter.c+2 -00 replies
3/9bpf: add couple of test cases for signed extended immslib/test_bpf.c+104 -00 replies
4/9bpf: add couple of test cases for div/mod by zerotools/testing/selftests/bpf/test_verifier.c+87 -00 replies
5/9bpf: get rid of pure_initcall dependency to enable jitsarch/arm/net/bpf_jit_32.c arch/arm64/net/bpf_jit_comp.c arch/mips/net/bpf_jit.c +10 more+24 -420 replies
6/9bpf: restrict access to core bpf sysctlsnet/core/sysctl_net_core.c+43 -30 replies
7/9bpf, x86: small optimization in alu ops with immarch/x86/net/bpf_jit_comp.c+30 -50 replies
8/9bpf: add upper complexity limit to verifier logkernel/bpf/verifier.c+2 -10 replies
9/9bpf: move event_output to const_size_or_zero for xdp/skb as wellnet/core/filter.c+2 -20 replies

Reviews trailers per patch

All 9 patches have a Reviewed-by or Acked-by.

PatchAlexei Starovoitov
1/9A-b
2/9A-b
3/9A-b
4/9A-b
5/9A-b
6/9A-b
7/9A-b
8/9A-b
9/9A-b

Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes.

Read the v1 thread

Cover letter [PATCH bpf-next 0/9] BPF misc improvements

This series adds various misc improvements to BPF: detection of BPF helper definition misconfiguration for mem/size argument pairs, csum_diff helper also for XDP, various test cases, removal of the recently added pure_initcall(), restriction of the jit sysctls to cap_sys_admin for initns, a minor size improvement for x86 jit in alu ops, output of complexity limit to verifier log and last but not least having the event output more flexible with moving to const_size_or_zero type.

Thanks!

Daniel Borkmann (9):
bpf, verifier: detect misconfigured mem,size argument pair
bpf: add csum_diff helper to xdp as well
bpf: add couple of test cases for signed extended imms
bpf: add couple of test cases for div/mod by zero
bpf: get rid of pure_initcall dependency to enable jits
bpf: restrict access to core bpf sysctls
bpf, x86: small optimization in alu ops with imm
bpf: add upper complexity limit to verifier log
bpf: move event_output to const_size_or_zero for xdp/skb as well

 arch/arm/net/bpf_jit_32.c                   |   2 -
 arch/arm64/net/bpf_jit_comp.c               |   2 -
 arch/mips/net/bpf_jit.c                     |   2 -
 arch/mips/net/ebpf_jit.c                    |   2 -
 arch/powerpc/net/bpf_jit_comp.c             |   2 -
 arch/powerpc/net/bpf_jit_comp64.c           |   2 -
 arch/s390/net/bpf_jit_comp.c                |   2 -
 arch/sparc/net/bpf_jit_comp_32.c            |   2 -
 arch/sparc/net/bpf_jit_comp_64.c            |   2 -
 arch/x86/net/bpf_jit_comp.c                 |  37 ++++++++--
 kernel/bpf/core.c                           |  19 +++--
 kernel/bpf/verifier.c                       |  82 +++++++++++++++-------
 lib/test_bpf.c                              | 104 ++++++++++++++++++++++++++++
 net/core/filter.c                           |   6 +-
 net/core/sysctl_net_core.c                  |  60 ++++++++++++++--
 net/socket.c                                |   9 ---
 tools/testing/selftests/bpf/test_verifier.c |  87 +++++++++++++++++++++++
 17 files changed, 347 insertions(+), 75 deletions(-)
Signature · 1 line
2.9.5