bpf: verifier security fixes
Get series with b4
b4 am [email protected]Versions newest first
- v1 Latest9 patches 3 repliesIn review
Patches in v1 No applies recorded yet
| # | Subject and files | Size | Replies | Applied |
|---|---|---|---|---|
| 1/9 | bpf/verifier: fix bounds calculation on BPF_RSHkernel/ | +16 | 0 replies | |
| 2/9 | bpf: fix incorrect sign extension in check_alu_op()kernel/ | +7 | 0 replies | |
| 3/9 | bpf: fix incorrect tracking of register size truncationkernel/ | +27 | 0 replies | |
| 4/9 | bpf: fix 32-bit ALU op verificationkernel/ | +17 | 0 replies | |
| 5/9 | bpf: fix missing error return in check_stack_boundary()kernel/ | +1 | 0 replies | |
| 6/9 | bpf: force strict alignment checks for stack pointerskernel/ | +5 | 0 replies | |
| 7/9 | bpf: don't prune branches when a scalar is replaced with a pointerkernel/ | +7 | 0 replies | |
| 8/9 | bpf: fix integer overflowsinclude/ kernel/ | +50 | 2 replies | |
| 9/9 | selftests/bpf: add tests for recent bugfixestools/ | +533 | 0 replies |
Reviews trailers per patch
3 of 9 patches have a Reviewed-by or Acked-by.
| Patch | Alexei Starovoitov | Edward Cree |
|---|---|---|
| 1/9 | A-b | |
| 2/9 | A-b | |
| 3/9 | A-b | |
| 4/9 | ||
| 5/9 | ||
| 6/9 | ||
| 7/9 | ||
| 8/9 | ||
| 9/9 |
Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes.
Cover letter [PATCH bpf 0/9] bpf: verifier security fixes
This patch set addresses a set of security vulnerabilities in bpf verifier logic discovered by Jann Horn. All of the patches are candidates for 4.14 stable.
Alexei Starovoitov (1):
bpf: fix integer overflows
Edward Cree (1):
bpf/verifier: fix bounds calculation on BPF_RSH
Jann Horn (7):
bpf: fix incorrect sign extension in check_alu_op()
bpf: fix incorrect tracking of register size truncation
bpf: fix 32-bit ALU op verification
bpf: fix missing error return in check_stack_boundary()
bpf: force strict alignment checks for stack pointers
bpf: don't prune branches when a scalar is replaced with a pointer selftests/bpf: add tests for recent bugfixes
include/linux/bpf_verifier.h | 4 +- kernel/bpf/verifier.c | 175 ++++++--- tools/testing/selftests/bpf/test_verifier.c | 549 +++++++++++++++++++++++++++- 3 files changed, 661 insertions(+), 67 deletions(-)
Signature · 1 line
2.9.5