From: Jason Wang <hidden> Date: 2017-12-08 04:02:41
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>
---
drivers/net/tun.c | 7 ++++---
1 file changed, 4 insertions(+), 3 deletions(-)
From: "Michael S. Tsirkin" <mst@redhat.com> Date: 2017-12-08 04:43:47
On Fri, Dec 08, 2017 at 12:02:30PM +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>
From: Eric Dumazet <hidden> Date: 2017-12-08 05:36:12
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>
---
From: David Miller <davem@davemloft.net> Date: 2017-12-08 15:44:52
From: "Michael S. Tsirkin" <mst@redhat.com>
Date: Fri, 8 Dec 2017 06:43:44 +0200
On Fri, Dec 08, 2017 at 12:02:30PM +0800, Jason Wang wrote:
quoted
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>