Skip to content

bpf: improve verifier resilience

Alexei Starovoitov netdev 1 version Applied

Status from this message: Applied to bpf, thanks!

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest3 patches 1 replyApplied

Patches in v1 Applied

#Subject and filesSizeRepliesApplied
1/3bpf: check pending signals while verifying programskernel/bpf/verifier.c+3 -00 replies
2/3bpf: improve verifier branch analysiskernel/bpf/verifier.c tools/testing/selftests/bpf/test_verifier.c+82 -150 replies
3/3bpf: add per-insn complexity limitkernel/bpf/verifier.c+6 -10 replies

Reviews trailers per patch

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

PatchDaniel BorkmannEdward Cree
1/3A-b A-b
2/3A-b A-b
3/3A-b A-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 0/3] bpf: improve verifier resilience

Three patches to improve verifier ability to handle pathological bpf programs with a lot of branches:
- make sure prog_load syscall can be aborted
- improve branch taken analysis
- introduce per-insn complexity limit for unprivileged programs

Alexei Starovoitov (3):
bpf: check pending signals while verifying programs
bpf: improve verifier branch analysis
bpf: add per-insn complexity limit

 kernel/bpf/verifier.c                       | 103 +++++++++++++++++---
 tools/testing/selftests/bpf/test_verifier.c |   4 +-
 2 files changed, 91 insertions(+), 16 deletions(-)
Signature · 1 line
2.17.1