[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <1389922350.31367.447.camel@edumazet-glaptop2.roam.corp.google.com>
Date: Thu, 16 Jan 2014 17:32:30 -0800
From: Eric Dumazet <eric.dumazet@...il.com>
To: David Miller <davem@...emloft.net>
Cc: netdev@...r.kernel.org, therbert@...gle.com, maze@...gle.com,
cwang@...pensource.com
Subject: Re: [PATCH net-next] ipv4: fix a dst leak in tunnels
On Thu, 2014-01-16 at 17:13 -0800, David Miller wrote:
> Why do we have to handle DST_NOCACHE specially? We hold a reference
> and dst_release() knows what to do with DST_NOCACHE routes.
>
> Or is it semantically undesirable for tunnels to cache these routes?
> If so, why do we leave sockets caching DST_NOCACHE routes just fine?
If DST_NOCACHE is set on a dst, this dst cannot be used by rcu users,
because dst_release() will immediately free the dst, without rcu grace
period.
--
To unsubscribe from this list: send the line "unsubscribe netdev" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Powered by blists - more mailing lists