[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <1473373012.18970.13.camel@edumazet-glaptop3.roam.corp.google.com>
Date: Thu, 08 Sep 2016 15:16:52 -0700
From: Eric Dumazet <eric.dumazet@...il.com>
To: Jojy Varghese <jojy.varghese@...il.com>
Cc: netdev@...r.kernel.org, davem@...emloft.net
Subject: Re: [PATCH] net_namespace: fixed net_device reference leak
On Thu, 2016-09-08 at 15:12 -0700, Jojy Varghese wrote:
> Hi Eric/Lance
>
> Thanks for taking time to look at the patch. The problem in dst.c's
> "dst_ifdown" is that it will never do an actual "dev_put" on the
> loopback net device. This results in the loopback net device to be
> alive even when the dst goes away.
Sure, but the dst themselves should disappear, and thus release their
dst->dev reference.
Something is missing.
loopback device is only used when we remove one device from the system,
but namespace (and loopback device) is still around.
Powered by blists - more mailing lists