From mboxrd@z Thu Jan 1 00:00:00 1970 From: David Miller Subject: Re: [BUG] ipv6: all routes share same inetpeer Date: Tue, 19 Jul 2011 11:59:29 -0700 (PDT) Message-ID: <20110719.115929.106510307852361614.davem@davemloft.net> References: <20110719.103724.1461298517132188126.davem@davemloft.net> <1311099638.3113.2.camel@edumazet-laptop> <1311101870.3113.6.camel@edumazet-laptop> Mime-Version: 1.0 Content-Type: Text/Plain; charset=iso-8859-1 Content-Transfer-Encoding: QUOTED-PRINTABLE Cc: netdev@vger.kernel.org To: eric.dumazet@gmail.com Return-path: Received: from shards.monkeyblade.net ([198.137.202.13]:43112 "EHLO shards.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751350Ab1GSS7c convert rfc822-to-8bit (ORCPT ); Tue, 19 Jul 2011 14:59:32 -0400 In-Reply-To: <1311101870.3113.6.camel@edumazet-laptop> Sender: netdev-owner@vger.kernel.org List-ID: =46rom: Eric Dumazet Date: Tue, 19 Jul 2011 20:57:50 +0200 > Le mardi 19 juillet 2011 =E0 20:20 +0200, Eric Dumazet a =E9crit : >> Le mardi 19 juillet 2011 =E0 10:37 -0700, David Miller a =E9crit : >> > From: Eric Dumazet >> > Date: Tue, 19 Jul 2011 19:23:49 +0200 >> >=20 >> > > Maybe you can find the bug before me ? >> >=20 >> > I think when we add the route we cow the metrics almost immediatel= y. >> > The daddr is, unfortunately, fully prefixed at that point. >>=20 >> Yes, we shall provide a second ip6_rt_copy() argument, with the >> destination address. >>=20 >=20 > Hmm, or maybe just change the dst_copy_metrics(&rt->dst, &ort->dst); > call done from ip6_rt_copy(), to avoid doing the COW if not really > needed ? This is ok if it handles the case where ort's metrics point to writable inetpeer memory.