Skip to content

Further robustify putting BPF progs

Daniel Borkmann netdev 1 version In review

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest2 patches 1 replyIn review

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/2bpf: generally move prog destruction to RCU deferralinclude/linux/bpf.h kernel/bpf/arraymap.c kernel/bpf/syscall.c +1 more+5 -190 replies
2/2bpf: refactor bpf_prog_get and type check into helperinclude/linux/bpf.h kernel/bpf/syscall.c net/core/filter.c +4 more+31 -440 replies

Reviews trailers per patch

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

PatchAlexei Starovoitov
1/2A-b
2/2A-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/2] Further robustify putting BPF progs

This series addresses a potential issue reported to us by Jann Horn with regards to putting progs. First patch moves progs generally under RCU destruction and second patch refactors getting of progs to simplify code a bit. For details, please see individual patches. Note, we think that addressing this one in net-next should be sufficient.

Thanks!

Daniel Borkmann (2):
bpf: generally move prog destruction to RCU deferral
bpf: refactor bpf_prog_get and type check into helper

 include/linux/bpf.h    |  8 +++++---
 kernel/bpf/arraymap.c  |  4 +---
 kernel/bpf/syscall.c   | 40 ++++++++++++++++++++++------------------
 kernel/events/core.c   |  2 +-
 net/core/filter.c      | 13 +------------
 net/kcm/kcmsock.c      |  8 +-------
 net/packet/af_packet.c |  6 +-----
 net/sched/act_bpf.c    |  7 +------
 net/sched/cls_bpf.c    |  7 +------
 9 files changed, 34 insertions(+), 61 deletions(-)
Signature · 1 line
1.9.3