bpf: Omit inlined bounds checks for null elided map lookups
Get series with b4
b4 am [email protected]Versions newest first
- v1 Latest3 patches 4 repliesIn review
Patches in v1 No applies recorded yet
| # | Subject and files | Size | Replies | Applied |
|---|---|---|---|---|
| 1/3 | bpf: verifier: Store null elision decision in insn_aux_datainclude/ kernel/ | +7 | 1 reply | |
| 2/3 | bpf: map: Thread null elision metadata to map_gen_lookupinclude/ kernel/ kernel/ +2 more | +23 | 1 reply | |
| 3/3 | bpf: arraymap: Skip boundscheck during inlining when possiblekernel/ | +14 | 2 replies |
Reviews trailers per patch
No Reviewed-by, Acked-by or Tested-by trailers for v1 yet.
Cover letter [PATCH bpf-next 0/3] bpf: Omit inlined bounds checks for null elided map lookups
This follows up the null elision patchset with a corresponding codegen change. When the lookup is known to be inbounds, the inlined lookup can skip the bounds check.
See final commit for the JIT diff.
Daniel Xu (3):
bpf: verifier: Store null elision decision in insn_aux_data
bpf: map: Thread null elision metadata to map_gen_lookup
bpf: arraymap: Skip boundscheck during inlining when possible
include/linux/bpf.h | 2 +- include/linux/bpf_verifier.h | 4 ++++ kernel/bpf/arraymap.c | 35 ++++++++++++++++++++++------------- kernel/bpf/hashtab.c | 14 ++++++++++---- kernel/bpf/verifier.c | 6 ++++-- net/xdp/xskmap.c | 4 +++- 6 files changed, 44 insertions(+), 21 deletions(-)
Signature · 1 line
2.47.1