mbox series

[bpf-next,0/2] bpf: fix couple of netdevsim issues

Message ID 20231114045453.1816995-1-sdf@google.com (mailing list archive)
Headers show
Series bpf: fix couple of netdevsim issues | expand

Message

Stanislav Fomichev Nov. 14, 2023, 4:54 a.m. UTC
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(-)