The following fixes, UAPI updates, and small improvement, i. XDP needs to be called inside RCU with preempt disabled.
ii. Not strictly a bug fix but we have an attach command in the sockmap UAPI already to avoid having a single kernel released with only the attach and not the detach I'm pushing this into net branch. Its early in the RC cycle so I think this is OK (not ideal but better than supporting a UAPI with a missing detach forever). iii. Final patch replace cpu_relax with cond_resched in devmap. --- John Fastabend (3): net: rcu lock and preempt disable missing around generic xdp bpf: add support for sockmap detach programs bpf: devmap, use cond_resched instead of cpu_relax include/linux/bpf.h | 8 ++--- kernel/bpf/devmap.c | 2 + kernel/bpf/sockmap.c | 2 + kernel/bpf/syscall.c | 27 ++++++++++------ net/core/dev.c | 25 ++++++++++----- tools/testing/selftests/bpf/test_maps.c | 51 ++++++++++++++++++++++++++++++- 6 files changed, 89 insertions(+), 26 deletions(-) -- Signature