Dynptr Verifier Adjustments
Status from this message: This series was applied to bpf/bpf-next.git (master)
Get series with b4
b4 am [email protected]Versions newest first · linked by author and title
- v3 Latest5 patches 0 repliesApplied 5/5
- v23 patches 15 repliesSuperseded
Patches in v3 All 5 applied
| # | Subject and files | Size | Replies | Applied |
|---|---|---|---|---|
| 1/5 | bpf: Allow NULL buffers in bpf_dynptr_slice(_rw)Documentation/ include/ kernel/ +1 more | +54 | 0 replies | Applied |
| 2/5 | selftests/bpf: Test allowing NULL buffer in dynptr slicetools/ tools/ | +18 | 0 replies | Applied |
| 3/5 | selftests/bpf: Check overflow in optional buffertools/ | +20 | 0 replies | Applied |
| 4/5 | bpf: verifier: Accept dynptr mem as mem in helperskernel/ | +4 | 0 replies | Applied |
| 5/5 | selftests/bpf: Accept mem from dynptr in helper funcstools/ tools/ | +22 | 0 replies | Applied |
Reviews trailers per patch
No Reviewed-by, Acked-by or Tested-by trailers for v3 yet.
Cover letter [PATCH bpf-next v3 0/5] Dynptr Verifier Adjustments
These patches relax a few verifier requirements around dynptrs. Patches 1-3 are unchanged from v2, apart from rebasing Patch 4 is the same as in v1, see
https://lore.kernel.org/bpf/CA+PiJmST4WUH061KaxJ4kRL=fqy3X6+Wgb2E2rrLT5OYjUzxfQ@mail.gmail.com/
Patch 5 adds a test for the change in Patch 4
Daniel Rosenberg (5):
bpf: Allow NULL buffers in bpf_dynptr_slice(_rw) selftests/bpf: Test allowing NULL buffer in dynptr slice selftests/bpf: Check overflow in optional buffer
bpf: verifier: Accept dynptr mem as mem in helpers selftests/bpf: Accept mem from dynptr in helper funcs
Documentation/bpf/kfuncs.rst | 23 ++++++++++- include/linux/skbuff.h | 2 +- kernel/bpf/helpers.c | 30 +++++++++------ kernel/bpf/verifier.c | 21 ++++++++-- .../testing/selftests/bpf/prog_tests/dynptr.c | 2 + .../testing/selftests/bpf/progs/dynptr_fail.c | 20 ++++++++++ .../selftests/bpf/progs/dynptr_success.c | 38 +++++++++++++++++++ 7 files changed, 118 insertions(+), 18 deletions(-)
base-commit: f4dea9689c5fea3d07170c2cb0703e216f1a0922
Signature · 1 line
2.40.1.521.gf1e218fcd8-goog