aboutsummaryrefslogtreecommitdiff
path: root/tools/perf/scripts/python/stackcollapse.py
diff options
context:
space:
mode:
authorBjörn Töpel <[email protected]>2018-10-08 19:40:16 +0200
committerDaniel Borkmann <[email protected]>2018-10-11 10:19:01 +0200
commitcee271678d0e3177a25d0fcb2fa5e051d48e4262 (patch)
treeb63781801b81ccc68cda0d24417764e90ec138c1 /tools/perf/scripts/python/stackcollapse.py
parent262f9d811c7608f1e74258ceecfe1fa213bdf912 (diff)
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: fbfc504a24f5 ("bpf: introduce new bpf AF_XDP map type BPF_MAP_TYPE_XSKMAP") Reported-by: Eric Dumazet <[email protected]> Signed-off-by: Björn Töpel <[email protected]> Acked-by: Song Liu <[email protected]> Signed-off-by: Daniel Borkmann <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python/stackcollapse.py')
0 files changed, 0 insertions, 0 deletions