Thread (4 messages) 4 messages, 4 authors, 2017-12-08

Re: [PATCH net-next V2] tuntap: fix possible deadlock when fail to register netdev

flat view

From: Eric Dumazet <hidden>
Date: 2017-12-08 05:36:12
Also in: lkml

On Fri, 2017-12-08 at 12:02 +0800, Jason Wang wrote:
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 <redacted>
Cc: Eric Dumazet <redacted>
Cc: Willem de Bruijn <willemb@google.com>
Signed-off-by: Jason Wang <redacted>
---
Reviewed-by: Eric Dumazet <redacted>

Thanks.
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help