Skip to content

BPF direct packet access improvements

Daniel Borkmann netdev 1 version In review

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest3 patches 1 replyIn review

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/3bpf, verifier: enforce larger zero range for pkt on overloading stack buffskernel/bpf/verifier.c+1 -10 replies
2/3bpf: direct packet write and access for helpers for clsact progsinclude/linux/bpf.h include/linux/skbuff.h include/uapi/linux/bpf.h +3 more+196 -340 replies
3/3bpf: add test cases for direct packet accesssamples/bpf/test_verifier.c+430 -30 replies

Reviews trailers per patch

All 3 patches have a Reviewed-by or Acked-by.

PatchAlexei Starovoitov
1/3A-b
2/3A-b
3/3A-b

Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes.

Read the v1 thread

Cover letter [PATCH net-next 0/3] BPF direct packet access improvements

This set adds write support to the currently available read support for {cls,act}_bpf programs. First one is a fix for affected commit sitting in net-next and prerequisite for the second one, last patch adds a number of test cases against the verifier. For details, please see individual patches.

Thanks!

Daniel Borkmann (3):
bpf, verifier: enforce larger zero range for pkt on overloading stack buffs
bpf: direct packet write and access for helpers for clsact progs
bpf: add test cases for direct packet access

 include/linux/bpf.h         |   4 +-
 include/linux/skbuff.h      |  14 +-
 include/uapi/linux/bpf.h    |  21 +++
 kernel/bpf/helpers.c        |   3 +
 kernel/bpf/verifier.c       |  56 ++++--
 net/core/filter.c           | 134 ++++++++++++--
 samples/bpf/test_verifier.c | 433 +++++++++++++++++++++++++++++++++++++++++++-
 7 files changed, 627 insertions(+), 38 deletions(-)
Signature · 1 line
1.9.3