[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-Id: <20140116.174014.415638698308506562.davem@davemloft.net>
Date: Thu, 16 Jan 2014 17:40:14 -0800 (PST)
From: David Miller <davem@...emloft.net>
To: eric.dumazet@...il.com
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
From: Eric Dumazet <eric.dumazet@...il.com>
Date: Thu, 16 Jan 2014 17:32:30 -0800
> 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.
Ok, if we ever start using DST_NOCACHE in ipv6 we will have to modify
ipv6 tunnels as they cache similarly.
--
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