Re: [PATCH net] ipv6: release rt6->rt6i_idev properly during ifdown

2017-08-14 Thread David Miller
From: Wei Wang Date: Mon, 14 Aug 2017 10:44:59 -0700 > From: Wei Wang > > When a dst is created by addrconf_dst_alloc() for a host route or an > anycast route, dst->dev points to loopback dev while rt6->rt6i_idev > points to a real device. > When the real device goes down, the current cleanup c

Re: [PATCH net] ipv6: release rt6->rt6i_idev properly during ifdown

2017-08-14 Thread David Ahern
On 8/14/17 11:44 AM, Wei Wang wrote: > From: Wei Wang > > When a dst is created by addrconf_dst_alloc() for a host route or an > anycast route, dst->dev points to loopback dev while rt6->rt6i_idev > points to a real device. > When the real device goes down, the current cleanup code only checks fo

[PATCH net] ipv6: release rt6->rt6i_idev properly during ifdown

2017-08-14 Thread Wei Wang
From: Wei Wang When a dst is created by addrconf_dst_alloc() for a host route or an anycast route, dst->dev points to loopback dev while rt6->rt6i_idev points to a real device. When the real device goes down, the current cleanup code only checks for dst->dev and assumes rt6->rt6i_idev->dev is the