Skip to content

Dynptr Verifier Adjustments

Daniel Rosenberg bpf linux-kselftest lkml 2 versions – Applied

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

  1. v3 Latest5 patches 0 repliesApplied 5/5
  2. v23 patches 15 repliesSuperseded

Patches in v3 All 5 applied

#Subject and filesSizeRepliesApplied
1/5bpf: Allow NULL buffers in bpf_dynptr_slice(_rw)Documentation/bpf/kfuncs.rst include/linux/skbuff.h kernel/bpf/helpers.c +1 more+54 -180 repliesApplied
2/5selftests/bpf: Test allowing NULL buffer in dynptr slicetools/testing/selftests/bpf/prog_tests/dynptr.c tools/testing/selftests/bpf/progs/dynptr_success.c+18 -00 repliesApplied
3/5selftests/bpf: Check overflow in optional buffertools/testing/selftests/bpf/progs/dynptr_fail.c+20 -00 repliesApplied
4/5bpf: verifier: Accept dynptr mem as mem in helperskernel/bpf/verifier.c+4 -00 repliesApplied
5/5selftests/bpf: Accept mem from dynptr in helper funcstools/testing/selftests/bpf/prog_tests/dynptr.c tools/testing/selftests/bpf/progs/dynptr_success.c+22 -00 repliesApplied

Reviews trailers per patch

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

Read the v3 thread

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