diff options
author | Jason Wang <[email protected]> | 2017-12-08 12:02:30 +0800 |
---|---|---|
committer | David S. Miller <[email protected]> | 2017-12-08 10:44:27 -0500 |
commit | 124da8f6118bce3d9aeb5c6f5395ed131141aad5 (patch) | |
tree | 283a91e5edd6c77ff244976cb1d3d479b664cc26 /tools/perf/scripts/python/intel-pt-events.py | |
parent | 66c5c5b5668281a898c7882d64ee22694fdd1d88 (diff) |
tuntap: fix possible deadlock when fail to register netdev
Private destructor could be called when register_netdev() fail with
rtnl lock held. This will lead deadlock in tun_free_netdev() who tries
to hold rtnl_lock. Fixing this by switching to use spinlock to
synchronize.
Fixes: 96f84061620c ("tun: add eBPF based queue selection method")
Reported-by: Eric Dumazet <[email protected]>
Cc: Eric Dumazet <[email protected]>
Cc: Willem de Bruijn <[email protected]>
Signed-off-by: Jason Wang <[email protected]>
Acked-by: Michael S. Tsirkin <[email protected]>
Reviewed-by: Eric Dumazet <[email protected]>
Signed-off-by: David S. Miller <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python/intel-pt-events.py')
0 files changed, 0 insertions, 0 deletions