Skip to content

BPF stable fixes

Daniel Borkmann stable 1 version Applied

Status from this message: I've queued these and the 4.19 ones, thank you.

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest10 patches 1 replyApplied

Patches in v1 Applied

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

Reviews trailers per patch

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

PatchAlexei StarovoitovMartin KaFai Lau
1/10A-b
2/10A-b
3/10A-b
4/10A-b
5/10A-b
6/10A-b
7/10A-b
8/10A-b
9/10A-b
10/10A-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 stable 4.20 00/10] BPF stable fixes

The following patches are targeted at 4.20 stable tree.

Thanks!

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        | 369 +++++++++++++++++++++++++++++------
 5 files changed, 377 insertions(+), 86 deletions(-)
Signature · 1 line
2.17.1