Messages in this thread | | | Subject | Re: [PATCH net-next V2] tuntap: fix possible deadlock when fail to register netdev | From | Eric Dumazet <> | Date | Thu, 07 Dec 2017 21:36:06 -0800 |
| |
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 <eric.dumazet@gmail.com> > Cc: Eric Dumazet <eric.dumazet@gmail.com> > Cc: Willem de Bruijn <willemb@google.com> > Signed-off-by: Jason Wang <jasowang@redhat.com> > ---
Reviewed-by: Eric Dumazet <edumazet@google.com>
Thanks.
| |