On 10/08/2018 07:40 PM, Björn Töpel wrote: > From: Björn Töpel <bjorn.to...@intel.com> > > The XSKMAP update and delete functions called synchronize_net(), which > can sleep. It is not allowed to sleep during an RCU read section. > > Instead we need to make sure that the sock sk_destruct (xsk_destruct) > function is asynchronously called after an RCU grace period. Setting > the SOCK_RCU_FREE flag for XDP sockets takes care of this. > > Fixes: fbfc504a24f5 ("bpf: introduce new bpf AF_XDP map type > BPF_MAP_TYPE_XSKMAP") > Reported-by: Eric Dumazet <eric.duma...@gmail.com> > Signed-off-by: Björn Töpel <bjorn.to...@intel.com>
Applied to bpf, thanks everyone!