public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
* [PATCH bpf-next v3 0/5] Dynptr Verifier Adjustments
@ 2023-05-06  1:31 Daniel Rosenberg
  2023-05-06  1:31 ` [PATCH bpf-next v3 1/5] bpf: Allow NULL buffers in bpf_dynptr_slice(_rw) Daniel Rosenberg
                   ` (5 more replies)
  0 siblings, 6 replies; 7+ messages in thread
From: Daniel Rosenberg @ 2023-05-06  1:31 UTC (permalink / raw)
  To: bpf
  Cc: Alexei Starovoitov, Daniel Borkmann, John Fastabend,
	Andrii Nakryiko, Martin KaFai Lau, Song Liu, Yonghong Song,
	KP Singh, Stanislav Fomichev, Hao Luo, Jiri Olsa, Shuah Khan,
	Jonathan Corbet, Joanne Koong, Mykola Lysenko, linux-kernel,
	linux-kselftest, kernel-team, Daniel Rosenberg

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
-- 
2.40.1.521.gf1e218fcd8-goog


^ permalink raw reply	[flat|nested] 7+ messages in thread

end of thread, other threads:[~2023-05-07  0:00 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2023-05-06  1:31 [PATCH bpf-next v3 0/5] Dynptr Verifier Adjustments Daniel Rosenberg
2023-05-06  1:31 ` [PATCH bpf-next v3 1/5] bpf: Allow NULL buffers in bpf_dynptr_slice(_rw) Daniel Rosenberg
2023-05-06  1:31 ` [PATCH bpf-next v3 2/5] selftests/bpf: Test allowing NULL buffer in dynptr slice Daniel Rosenberg
2023-05-06  1:31 ` [PATCH bpf-next v3 3/5] selftests/bpf: Check overflow in optional buffer Daniel Rosenberg
2023-05-06  1:31 ` [PATCH bpf-next v3 4/5] bpf: verifier: Accept dynptr mem as mem in helpers Daniel Rosenberg
2023-05-06  1:31 ` [PATCH bpf-next v3 5/5] selftests/bpf: Accept mem from dynptr in helper funcs Daniel Rosenberg
2023-05-07  0:00 ` [PATCH bpf-next v3 0/5] Dynptr Verifier Adjustments patchwork-bot+netdevbpf

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox