Received: by 2002:a05:6a10:22f:0:0:0:0 with SMTP id 15csp1254138pxk; Fri, 25 Sep 2020 09:55:17 -0700 (PDT) X-Google-Smtp-Source: ABdhPJztaYJpOA1wLxo4/vGAaWNTidZTnEPA+eBYOsbvrufabk42hVgmNsvTfFqsJ0VE5rZ1JWVd X-Received: by 2002:a17:906:6d92:: with SMTP id h18mr3502586ejt.405.1601052917176; Fri, 25 Sep 2020 09:55:17 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1601052917; cv=none; d=google.com; s=arc-20160816; b=iFYcgKlt54/T5mjzE2G+vP/0NnubddVwACozvTy6q9CzACWR3RqomqsiR+Ju3BYlZC yR2iAUmKqqAPsrbvNF9Q3LQV6FWzXwwcJ3/RRuVcCzs8P+vDYUBTLM9GOch70PZLkudK SPAxUlHyp6FltB28EOEkykipAg2WLMYQgZbxDGJJId2a3LDvT/IbpLs36AIADk94lZWi taQKPWRNzfTPaKndzko7fRZ8OMKZaCXvbszaZA0gwmFIClQzBXqen+dQgmAwYBg2uHBF 3rxFEOpNsGzzQOl5m3BwmhRqEQzGp8xEALXR8BuhHCMihvccRgthq6/+WiWTdYgRX6dv oCWQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:user-agent:in-reply-to:content-disposition :mime-version:references:message-id:subject:cc:to:from:date; bh=mFtvnusAK/LtknxzIf+25tmUojz/etgppum9V4ehFpM=; b=cJVtbAOfoCTTk/0XOY0EPl4QX8zSG8AeUsuniVqK98i2aOQORC6mSyXINF7biqm1PP ASLYnX97AUkIxFeJCXhgns0ECI0QVr7o0ZwBl58worwbig4IxBDpFDFoZDIR+Vz6m1tT ugRkXZ7fzc7Q26IxPnUbCXAkEFCoo6YZ8ydwouIAlb+8abRuAL7hRrHxitbgdUdRhis0 1nLHzqNlT4/0J9sMhTcZLuXbRxjm+UddvWsajhfcFT+t9LXLUinVa7NiAjE2KpB8SpVc JRzMxGSRgZjL9bFY70xsclrUXrVK2wuHp2J0QFfLFHkPoePpF1SXFnjC5m/AJbBxUZP5 CHcw== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id q5si2209829eji.118.2020.09.25.09.54.53; Fri, 25 Sep 2020 09:55:17 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728487AbgIYQvk (ORCPT + 99 others); Fri, 25 Sep 2020 12:51:40 -0400 Received: from jabberwock.ucw.cz ([46.255.230.98]:34594 "EHLO jabberwock.ucw.cz" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726368AbgIYQvk (ORCPT ); Fri, 25 Sep 2020 12:51:40 -0400 Received: by jabberwock.ucw.cz (Postfix, from userid 1017) id 419F51C0C4A; Fri, 25 Sep 2020 18:51:35 +0200 (CEST) Date: Fri, 25 Sep 2020 18:51:34 +0200 From: Pavel Machek To: Greg Kroah-Hartman Cc: linux-kernel@vger.kernel.org, stable@vger.kernel.org, Kfir Itzhak , David Ahern , "David S. Miller" Subject: Re: [PATCH 4.19 23/37] ipv4: Update exception handling for multipath routes via same device Message-ID: <20200925165134.GA7253@duo.ucw.cz> References: <20200925124720.972208530@linuxfoundation.org> <20200925124724.448531559@linuxfoundation.org> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="Qxx1br4bt0+wmkIi" Content-Disposition: inline In-Reply-To: <20200925124724.448531559@linuxfoundation.org> User-Agent: Mutt/1.10.1 (2018-07-13) Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org --Qxx1br4bt0+wmkIi Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable Hi! > [ Upstream commit 2fbc6e89b2f1403189e624cabaf73e189c5e50c6 ] >=20 > Kfir reported that pmtu exceptions are not created properly for > deployments where multipath routes use the same device. This is mismerged (in a way that does not affect functionality): > @@ -779,6 +779,8 @@ static void __ip_do_redirect(struct rtab > if (fib_lookup(net, fl4, &res, 0) =3D=3D 0) { > struct fib_nh *nh =3D &FIB_RES_NH(res); > =20 > + fib_select_path(net, &res, fl4, skb); > + nh =3D &FIB_RES_NH(res); > update_or_create_fnhe(nh, fl4->daddr, new_gw, > 0, false, nh is assigned value that is never used. Mainline patch removes the assignment (but variable has different type). 4.19 should delete the assignment, too. Best regards, Pavel Signed-off-by: Pavel Machek (CIP) diff --git a/net/ipv4/route.c b/net/ipv4/route.c index f60e28418ece..84de87b7eedc 100644 --- a/net/ipv4/route.c +++ b/net/ipv4/route.c @@ -777,7 +777,7 @@ static void __ip_do_redirect(struct rtable *rt, struct = sk_buff *skb, struct flow neigh_event_send(n, NULL); } else { if (fib_lookup(net, fl4, &res, 0) =3D=3D 0) { - struct fib_nh *nh =3D &FIB_RES_NH(res); + struct fib_nh *nh; =20 fib_select_path(net, &res, fl4, skb); nh =3D &FIB_RES_NH(res); --=20 (english) http://www.livejournal.com/~pavelmachek (cesky, pictures) http://atrey.karlin.mff.cuni.cz/~pavel/picture/horses/blo= g.html --Qxx1br4bt0+wmkIi Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iF0EABECAB0WIQRPfPO7r0eAhk010v0w5/Bqldv68gUCX24gFgAKCRAw5/Bqldv6 8oJ8AJ9aaZ5VFjdoC1MlzVWNOHLPXUSxxwCgvL0JSbW+WA9qbi47KAD6yNkrwig= =zt7i -----END PGP SIGNATURE----- --Qxx1br4bt0+wmkIi--