Re: [PATCH] net: tun: release the reference of tun device in tun_recvmsg
From: Eric Dumazet <hidden>
Date: 2013-06-05 15:36:53
From: Eric Dumazet <hidden>
Date: 2013-06-05 15:36:53
On Wed, 2013-06-05 at 17:20 +0200, Arkadiusz Miskiewicz wrote:
O Please push it into stable kernel (3.9) queue, too. Works well here.
Its already in the queue : http://patchwork.ozlabs.org/bundle/davem/stable/?state=*
commit 534c877928a16ae5f9776436a497109639bf67dc
Author: Gao feng [off-list ref]
Date: Sun Jun 2 22:16:21 2013 +0000
ipv6: assign rt6_info to inet6_ifaddr in init_loopback
Commit 25fb6ca4ed9cad72f14f61629b68dc03c0d9713f
"net IPv6 : Fix broken IPv6 routing table after loopback down-up"
forgot to assign rt6_info to the inet6_ifaddr.
When disable the net device, the rt6_info which allocated
in init_loopback will not be destroied in __ipv6_ifa_notify.
This will trigger the waring message below
[23527.916091] unregister_netdevice: waiting for tap0 to become free.
Usage count = 1
Reported-by: Arkadiusz Miskiewicz [off-list ref]
Signed-off-by: Gao feng [off-list ref]
Signed-off-by: David S. Miller [off-list ref]