Return-Path: Received: from mail-sn1nam02on0106.outbound.protection.outlook.com ([104.47.36.106]:8901 "EHLO NAM02-SN1-obe.outbound.protection.outlook.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1753195AbeARVEn (ORCPT ); Thu, 18 Jan 2018 16:04:43 -0500 From: Sasha Levin To: "stable@vger.kernel.org" , "stable-commits@vger.kernel.org" CC: Hangbin Liu , "David S . Miller" , Sasha Levin Subject: [added to the 4.1 stable tree] sit: update frag_off info Date: Thu, 18 Jan 2018 21:01:13 +0000 Message-ID: <20180118205908.3220-206-alexander.levin@microsoft.com> References: <20180118205908.3220-1-alexander.levin@microsoft.com> In-Reply-To: <20180118205908.3220-1-alexander.levin@microsoft.com> Content-Language: en-US Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 Sender: stable-owner@vger.kernel.org List-ID: From: Hangbin Liu This patch has been added to the stable tree. If you have any objections, please let us know. =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D [ Upstream commit f859b4af1c52493ec21173ccc73d0b60029b5b88 ] After parsing the sit netlink change info, we forget to update frag_off in ipip6_tunnel_update(). Fix it by assigning frag_off with new value. Reported-by: Jianlin Shi Signed-off-by: Hangbin Liu Acked-by: Nicolas Dichtel Signed-off-by: David S. Miller Signed-off-by: Sasha Levin --- net/ipv6/sit.c | 1 + 1 file changed, 1 insertion(+) diff --git a/net/ipv6/sit.c b/net/ipv6/sit.c index 85c4b2fff504..295502b261a8 100644 --- a/net/ipv6/sit.c +++ b/net/ipv6/sit.c @@ -1092,6 +1092,7 @@ static void ipip6_tunnel_update(struct ip_tunnel *t, = struct ip_tunnel_parm *p) ipip6_tunnel_link(sitn, t); t->parms.iph.ttl =3D p->iph.ttl; t->parms.iph.tos =3D p->iph.tos; + t->parms.iph.frag_off =3D p->iph.frag_off; if (t->parms.link !=3D p->link) { t->parms.link =3D p->link; ipip6_tunnel_bind_dev(t->dev); --=20 2.11.0