diff options
author | 2022-06-22 21:20:39 -0700 | |
---|---|---|
committer | 2022-06-24 16:28:08 -0700 | |
commit | 3b9bc84d311104906d2b4995a9a02d7b7ddab2db (patch) | |
tree | 9f8fad5159f00663d624c89a19f827cdc26bc0f4 /tools/perf/scripts/python/export-to-postgresql.py | |
parent | tcp: add a missing nf_reset_ct() in 3WHS handling (diff) | |
download | wireguard-linux-3b9bc84d311104906d2b4995a9a02d7b7ddab2db.tar.xz wireguard-linux-3b9bc84d311104906d2b4995a9a02d7b7ddab2db.zip |
net: tun: unlink NAPI from device on destruction
Syzbot found a race between tun file and device destruction.
NAPIs live in struct tun_file which can get destroyed before
the netdev so we have to del them explicitly. The current
code is missing deleting the NAPI if the queue was detached
first.
Fixes: 943170998b20 ("tun: enable NAPI for TUN/TAP driver")
Reported-by: syzbot+b75c138e9286ac742647@syzkaller.appspotmail.com
Link: https://lore.kernel.org/r/20220623042039.2274708-1-kuba@kernel.org
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
Diffstat (limited to 'tools/perf/scripts/python/export-to-postgresql.py')
0 files changed, 0 insertions, 0 deletions