Skip to content

BPF stable fixes

Daniel Borkmann stable 1 version New

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest12 patches 0 repliesNew

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/12bpf: improve verifier branch analysiskernel/bpf/verifier.c+80 -130 replies
2/12bpf: add per-insn complexity limitkernel/bpf/verifier.c+6 -10 replies
3/12bpf: move {prev_,}insn_idx into verifier envinclude/linux/bpf_verifier.h kernel/bpf/verifier.c+40 -370 replies
4/12bpf: move tmp variable into ax register in interpreterinclude/linux/filter.h kernel/bpf/core.c+19 -180 replies
5/12bpf: enable access to ax register also from verifier rewriteinclude/linux/filter.h kernel/bpf/core.c+21 -60 replies
6/12bpf: restrict map value pointer arithmetic for unprivilegedkernel/bpf/verifier.c+11 -00 replies
7/12bpf: restrict stack pointer arithmetic for unprivilegedkernel/bpf/verifier.c+41 -220 replies
8/12bpf: restrict unknown scalars of mixed signed bounds for unprivilegedkernel/bpf/verifier.c+7 -10 replies
9/12bpf: fix check_map_access smin_value test when pointer contains offsetkernel/bpf/verifier.c+5 -10 replies
10/12bpf: prevent out of bounds speculation on pointer arithmeticinclude/linux/bpf_verifier.h kernel/bpf/verifier.c+189 -70 replies
11/12bpf: fix sanitation of alu op with pointer / scalar type from different pathsinclude/linux/bpf_verifier.h kernel/bpf/verifier.c+49 -130 replies
12/12bpf: fix inner map masking to prevent oob under speculationkernel/bpf/map_in_map.c+15 -20 replies

Reviews trailers per patch

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

PatchDaniel BorkmannEdward CreeAlexei StarovoitovMartin KaFai Lau
1/12A-b A-b
2/12A-b A-b
3/12A-b
4/12A-b
5/12A-b
6/12A-b
7/12A-b
8/12A-b
9/12A-b
10/12A-b
11/12A-b
12/12A-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 stable 4.19 00/12] BPF stable fixes

The following patches are targeted at 4.19 stable tree.

Thanks!

Alexei Starovoitov (2):
bpf: improve verifier branch analysis
bpf: add per-insn complexity limit

Daniel Borkmann (10):
bpf: move {prev_,}insn_idx into verifier env
bpf: move tmp variable into ax register in interpreter
bpf: enable access to ax register also from verifier rewrite
bpf: restrict map value pointer arithmetic for unprivileged
bpf: restrict stack pointer arithmetic for unprivileged
bpf: restrict unknown scalars of mixed signed bounds for unprivileged
bpf: fix check_map_access smin_value test when pointer contains offset
bpf: prevent out of bounds speculation on pointer arithmetic
bpf: fix sanitation of alu op with pointer / scalar type from
different paths
bpf: fix inner map masking to prevent oob under speculation

 include/linux/bpf_verifier.h |  13 +
 include/linux/filter.h       |  10 +-
 kernel/bpf/core.c            |  54 ++--
 kernel/bpf/map_in_map.c      |  17 +-
 kernel/bpf/verifier.c        | 470 +++++++++++++++++++++++++++++------
 5 files changed, 463 insertions(+), 101 deletions(-)
Signature · 1 line
2.17.1