BPF List
 help / color / mirror / Atom feed
* [PATCH bpf-next v4 0/2] bpf: Simplify checking size of helper accesses
@ 2023-12-21 23:22 Andrei Matei
  2023-12-21 23:22 ` [PATCH bpf-next v4 1/2] " Andrei Matei
                   ` (2 more replies)
  0 siblings, 3 replies; 4+ messages in thread
From: Andrei Matei @ 2023-12-21 23:22 UTC (permalink / raw)
  To: bpf; +Cc: andrii.nakryiko, eddyz87, Andrei Matei

v3->v4:
- kept only the minimal change, undoing debatable changes (Andrii)
- dropped the second patch from before, with changes to the error
  message (Andrii)
- extracted the new test into a separate patch (Andrii)
- added Acked by Andrii

v2->v3:
- split the error-logging function to a separate patch (Andrii)
- make the error buffers smaller (Andrii)
- include size of memory region for PTR_TO_MEM (Andrii)
- nits from Andrii and Eduard

v1->v2:
- make the error message include more info about the context of the
  zero-sized access (Andrii)

Andrei Matei (2):
  bpf: Simplify checking size of helper accesses
  bpf: add a possibly-zero-sized read test

 kernel/bpf/verifier.c                         | 10 ++---
 .../bpf/progs/verifier_helper_value_access.c  | 45 +++++++++++++++++--
 .../selftests/bpf/progs/verifier_raw_stack.c  |  2 +-
 3 files changed, 46 insertions(+), 11 deletions(-)

-- 
2.40.1


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

end of thread, other threads:[~2024-01-03 18:20 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2023-12-21 23:22 [PATCH bpf-next v4 0/2] bpf: Simplify checking size of helper accesses Andrei Matei
2023-12-21 23:22 ` [PATCH bpf-next v4 1/2] " Andrei Matei
2023-12-21 23:22 ` [PATCH bpf-next v4 2/2] bpf: add a possibly-zero-sized read test Andrei Matei
2024-01-03 18:20 ` [PATCH bpf-next v4 0/2] bpf: Simplify checking size of helper accesses 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