Skip to content

BPF improvements and fixes

Daniel Borkmann netdev 1 version Applied

Status from this message: Applied to bpf-next, Thank you Daniel!

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest13 patches 8 repliesApplied

Patches in v1 Applied

#Subject and filesSizeRepliesApplied
1/13bpf: xor of a/x in cbpf can be done in 32 bit alunet/core/filter.c+2 -22 replies
2/13bpf: improve dead code sanitizingkernel/bpf/verifier.c+12 -50 replies
3/13bpf: make unknown opcode handling more robustinclude/linux/filter.h kernel/bpf/core.c kernel/bpf/verifier.c+154 -1050 replies
4/13bpf: fix subprog verifier bypass by div/mod by 0 exceptionkernel/bpf/core.c kernel/bpf/verifier.c net/core/filter.c+38 -170 replies
5/13bpf, x86_64: remove obsolete exception handling from div/modarch/x86/net/bpf_jit_comp.c+0 -200 replies
6/13bpf, arm64: remove obsolete exception handling from div/modarch/arm64/net/bpf_jit_comp.c+0 -130 replies
7/13bpf, s390x: remove obsolete exception handling from div/modarch/s390/net/bpf_jit_comp.c+0 -102 replies
8/13bpf, ppc64: remove obsolete exception handling from div/modarch/powerpc/net/bpf_jit_comp64.c+0 -81 reply
9/13bpf, sparc64: remove obsolete exception handling from div/modarch/sparc/net/bpf_jit_comp_64.c+0 -180 replies
10/13bpf, mips64: remove obsolete exception handling from div/modarch/mips/net/ebpf_jit.c+0 -101 reply
11/13bpf, mips64: remove unneeded zero check from div/mod with karch/mips/net/ebpf_jit.c+4 -151 reply
12/13bpf, arm: remove obsolete exception handling from div/modarch/arm/net/bpf_jit_32.c+0 -80 replies
13/13bpf: add further test cases around div/mod and otherslib/test_bpf.c tools/testing/selftests/bpf/test_verifier.c+336 -150 replies

Reviews trailers per patch

11 of 13 patches have a Reviewed-by or Acked-by.

PatchAlexei StarovoitovDavid DaneyNaveen N. RaoMichael Holzheu
1/13A-b
2/13A-b
3/13A-b
4/13A-b
5/13A-b
6/13A-b
7/13R-b
8/13A-b
9/13
10/13R-b
11/13R-b
12/13
13/13A-b

Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes. Scroll the table sideways for all 4 reviewers.

Read the v1 thread

Cover letter [PATCH bpf-next 00/13] BPF improvements and fixes

This set contains a small cleanup in cBPF prologue generation and otherwise fixes an outstanding issue related to BPF to BPF calls and exception handling. For details please see related patches. Last but not least, BPF selftests is extended with several new test cases.

Thanks!

Daniel Borkmann (13):
bpf: xor of a/x in cbpf can be done in 32 bit alu
bpf: improve dead code sanitizing
bpf: make unknown opcode handling more robust
bpf: fix subprog verifier bypass by div/mod by 0 exception bpf, x86_64: remove obsolete exception handling from div/mod bpf, arm64: remove obsolete exception handling from div/mod bpf, s390x: remove obsolete exception handling from div/mod bpf, ppc64: remove obsolete exception handling from div/mod bpf, sparc64: remove obsolete exception handling from div/mod bpf, mips64: remove obsolete exception handling from div/mod bpf, mips64: remove unneeded zero check from div/mod with k bpf, arm: remove obsolete exception handling from div/mod
bpf: add further test cases around div/mod and others

 arch/arm/net/bpf_jit_32.c                   |   8 -
 arch/arm64/net/bpf_jit_comp.c               |  13 --
 arch/mips/net/ebpf_jit.c                    |  29 +--
 arch/powerpc/net/bpf_jit_comp64.c           |   8 -
 arch/s390/net/bpf_jit_comp.c                |  10 -
 arch/sparc/net/bpf_jit_comp_64.c            |  18 --
 arch/x86/net/bpf_jit_comp.c                 |  20 --
 include/linux/filter.h                      |   2 +
 kernel/bpf/core.c                           | 258 ++++++++++++---------
 kernel/bpf/verifier.c                       |  62 +++--
 lib/test_bpf.c                              |   8 +-
 net/core/filter.c                           |  13 +-
 tools/testing/selftests/bpf/test_verifier.c | 343 ++++++++++++++++++++++++++--
 13 files changed, 546 insertions(+), 246 deletions(-)
Signature · 1 line
2.9.5