Skip to content

bpf: two stack check fixes

Alexei Starovoitov netdev 2 versions – Applied

Status from this message: Applied to bpf-next, thanks Alexei!

Get series with b4
b4 am [email protected]

Versions newest first · linked by author and title

  1. v2 Latest3 patches 1 replyApplied
  2. v12 patches 4 repliesSuperseded

Patches in v2 Applied

#Subject and filesSizeRepliesApplied
1/3bpf: fix maximum stack depth tracking logicinclude/linux/bpf_verifier.h kernel/bpf/verifier.c+67 -160 replies
2/3selftests/bpf: additional stack depth teststools/testing/selftests/bpf/test_verifier.c+121 -00 replies
3/3bpf: fix max call depth checkkernel/bpf/verifier.c tools/testing/selftests/bpf/test_verifier.c+37 -20 replies

Reviews trailers per patch

No Reviewed-by, Acked-by or Tested-by trailers for v2 yet.

Read the v2 thread

Cover letter [PATCH v2 bpf-next 0/3] bpf: two stack check fixes

Jann reported an issue with stack depth tracking. Fix it and add tests. Also fix off-by-one error in MAX_CALL_FRAMES check.
This set is on top of Jann's "selftest for late caller stack size increase" test.

Alexei Starovoitov (3):
bpf: fix maximum stack depth tracking logic
selftests/bpf: additional stack depth tests
bpf: fix max call depth check

 include/linux/bpf_verifier.h                |   1 +
 kernel/bpf/verifier.c                       |  86 +++++++++++----
 tools/testing/selftests/bpf/test_verifier.c | 156 ++++++++++++++++++++++++++++
 3 files changed, 225 insertions(+), 18 deletions(-)
Signature · 1 line
2.9.5