]> git.baikalelectronics.ru Git - kernel.git/commit
net: tun: stop NAPI when detaching queues
authorJakub Kicinski <kuba@kernel.org>
Thu, 23 Jun 2022 04:21:05 +0000 (21:21 -0700)
committerJakub Kicinski <kuba@kernel.org>
Tue, 28 Jun 2022 04:48:01 +0000 (21:48 -0700)
commit683dbac653492316d1e2132b4842313b6b9fdfc1
treebc8d41e3129bde5e8b32ece7541095b7b566db47
parent2fffb8759d2d179ee2369f50369839f33dc6b17c
net: tun: stop NAPI when detaching queues

While looking at a syzbot report I noticed the NAPI only gets
disabled before it's deleted. I think that user can detach
the queue before destroying the device and the NAPI will never
be stopped.

Fixes: 84ce86528b97 ("tun: enable NAPI for TUN/TAP driver")
Acked-by: Petar Penkov <ppenkov@aviatrix.com>
Link: https://lore.kernel.org/r/20220623042105.2274812-1-kuba@kernel.org
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
drivers/net/tun.c