WSL2-Linux-Kernel/net/xdp
Björn Töpel cee271678d xsk: do not call synchronize_net() under RCU read lock
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: fbfc504a24 ("bpf: introduce new bpf AF_XDP map type BPF_MAP_TYPE_XSKMAP")
Reported-by: Eric Dumazet <eric.dumazet@gmail.com>
Signed-off-by: Björn Töpel <bjorn.topel@intel.com>
Acked-by: Song Liu <songliubraving@fb.com>
Signed-off-by: Daniel Borkmann <daniel@iogearbox.net>
2018-10-11 10:19:01 +02:00
..
Kconfig
Makefile xsk: remove newline at end of file 2018-05-18 16:07:02 +02:00
xdp_umem.c xsk: fix return value of xdp_umem_assign_dev() 2018-08-21 22:06:53 +02:00
xdp_umem.h xsk: wire upp Tx zero-copy functions 2018-06-05 15:48:34 +02:00
xdp_umem_props.h xsk: new descriptor addressing scheme 2018-06-04 17:21:02 +02:00
xsk.c xsk: do not call synchronize_net() under RCU read lock 2018-10-11 10:19:01 +02:00
xsk_queue.c xsk: new descriptor addressing scheme 2018-06-04 17:21:02 +02:00
xsk_queue.h xsk: fix poll/POLLIN premature returns 2018-07-26 02:53:10 +02:00