Skip to content

bpf: fix couple of netdevsim issues

Stanislav Fomichev bpf netdev 1 version In review

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest2 patches 9 repliesIn review

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/2netdevsim: don't accept device bound programsdrivers/net/netdevsim/bpf.c+2 -22 replies
2/2bpf: bring back removal of dev-bound id from idrinclude/linux/bpf.h kernel/bpf/offload.c kernel/bpf/syscall.c+16 -47 replies

Reviews trailers per patch

1 of 2 patches has a Reviewed-by or Acked-by.

PatchJakub Kicinski
1/2R-b
2/2

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 bpf-next 0/2] bpf: fix couple of netdevsim issues

The first one is found by the syzkaller and needs to make a proper distinction between offloaded and dev-bound cases.

The second one restores behavior where the offloaded/dev-bound programs with a dead netdev were not correctly skipped during BPF_PROG_GET_NEXT_ID.

Stanislav Fomichev (2):
netdevsim: don't accept device bound programs
bpf: bring back removal of dev-bound id from idr

 drivers/net/netdevsim/bpf.c |  4 ++--
 include/linux/bpf.h         |  2 ++
 kernel/bpf/offload.c        |  3 +++
 kernel/bpf/syscall.c        | 15 +++++++++++----
 4 files changed, 18 insertions(+), 6 deletions(-)
Signature · 1 line
2.42.0.869.gea05f2083d-goog