mbox series

[bpf-next,v3,0/2] bpf: Simplify checking size of helper accesses

Message ID 20231220170604.183380-1-andreimatei1@gmail.com (mailing list archive)
Headers show
Series bpf: Simplify checking size of helper accesses | expand

Message

Andrei Matei Dec. 20, 2023, 5:06 p.m. UTC
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: Improve error logging for zero-sized accesses

 kernel/bpf/verifier.c                         | 89 +++++++++++++++++--
 .../bpf/progs/verifier_helper_value_access.c  | 45 +++++++++-
 .../selftests/bpf/progs/verifier_raw_stack.c  |  4 +-
 3 files changed, 123 insertions(+), 15 deletions(-)