Received: by 10.213.65.68 with SMTP id h4csp2197508imn; Sun, 8 Apr 2018 22:16:07 -0700 (PDT) X-Google-Smtp-Source: AIpwx49uAmNj+avp8u2p+jhIqUNKuwLj7hN4u4mSUTnSnNWO7No/rxuIxCxYk2lJjKo8v0leR6LA X-Received: by 2002:a17:902:2884:: with SMTP id f4-v6mr36833019plb.153.1523250967319; Sun, 08 Apr 2018 22:16:07 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1523250967; cv=none; d=google.com; s=arc-20160816; b=F+eOe62gWJtF/cLOusu3puFQuR6T1jfDYUULaz5HJRqfzNZaOjcHGqTv0y9imHOuG4 TlnO7D0M/L1OSEa/12m4H5TpHpAVcrAeMipifxesLfEzM3lrBGbs9GhSeM4BWN7jmPWf rNwyXQLLl/J24ULc4rbAH9XPp31i3Ip0uR8TtrchCeS2vokW+4NBmcXg3aL1BuWZW1ej mut3n0ydsmuwONrIpzjHn0ecRe05vq6vfH0YD+Kgw+wqT+Jyd6vT7SOXaH10xAZnjXoU +BP9GkBJmeZ4lGCtpVJQonp07UZcVOV/t5rkqG1jxrVRQVFq/X6wf2N6+DPKA1zhyjYY ZJPQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:mime-version:content-transfer-encoding :spamdiagnosticmetadata:spamdiagnosticoutput:content-language :accept-language:in-reply-to:references:message-id:date:thread-index :thread-topic:subject:cc:to:from:dkim-signature :arc-authentication-results; bh=IgJZWeeM0KMzhzvORsLO0cXFd9I+5mqcItz8aCFHL5c=; b=lD5BR2iFVP5HG7K2pi6SXHb2fhZH0aRawUwl6iHsof43SyIVaSROBrEcbtdSY/fxzX VNGIwwWKgpn+SoMSrZTljHuQho+Bml1zyHdsN3Kl2C8pYwYu7b1HgZsidosRrz30eeV4 yLidaRRQuC8Zn6/f7L0z2JVpjFFOp2IP5V5r2Uc5R6eEBJrM74n99yy2uOkTMWIj6Uc2 mNOAYXca/a/pIx8DJChrj4n7kn8vEN0jmRO++cPis9WBKHtB5KEL74dnMTFi7Wh0ovYX wgQc0Cd6guOZTWAGtjtu0kqV+kMmjx5SEsHzikU7DhrVvm8o6vSadgseQX3EIrc1rSBH l0sQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@microsoft.com header.s=selector1 header.b=SKN8nFyp; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=microsoft.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id l27si12229890pfi.365.2018.04.08.22.15.30; Sun, 08 Apr 2018 22:16:07 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@microsoft.com header.s=selector1 header.b=SKN8nFyp; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=microsoft.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1754276AbeDIAUh (ORCPT + 99 others); Sun, 8 Apr 2018 20:20:37 -0400 Received: from mail-cys01nam02on0118.outbound.protection.outlook.com ([104.47.37.118]:44776 "EHLO NAM02-CY1-obe.outbound.protection.outlook.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1754230AbeDIAUa (ORCPT ); Sun, 8 Apr 2018 20:20:30 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=selector1; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version; bh=IgJZWeeM0KMzhzvORsLO0cXFd9I+5mqcItz8aCFHL5c=; b=SKN8nFypPly/3W2g9es00IVFpLqPbnIP4s4w2gNFYxdkGBetuPvJnJ5X67dK0UHInBtDo2GyFkGauCUU3mfO90oHf4zozzeGJW+HgA0L8UWVrZASOSLQMOhVAcNIsAHIC47mSKY9jQVHwz+2rzE5Hib9imE/AZyj76ZIO8kOjhw= Received: from DM5PR2101MB1032.namprd21.prod.outlook.com (52.132.128.13) by DM5PR2101MB1110.namprd21.prod.outlook.com (52.132.131.167) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.696.0; Mon, 9 Apr 2018 00:20:16 +0000 Received: from DM5PR2101MB1032.namprd21.prod.outlook.com ([fe80::8109:aef0:a777:7059]) by DM5PR2101MB1032.namprd21.prod.outlook.com ([fe80::8109:aef0:a777:7059%2]) with mapi id 15.20.0696.003; Mon, 9 Apr 2018 00:20:16 +0000 From: Sasha Levin To: "stable@vger.kernel.org" , "linux-kernel@vger.kernel.org" CC: Subash Abhinov Kasiviswanathan , Pablo Neira Ayuso , Sasha Levin Subject: [PATCH AUTOSEL for 4.15 138/189] netfilter: ipv6: nf_defrag: Kill frag queue on RFC2460 failure Thread-Topic: [PATCH AUTOSEL for 4.15 138/189] netfilter: ipv6: nf_defrag: Kill frag queue on RFC2460 failure Thread-Index: AQHTz5hOKfUXpWAQlkC3GPtCp6HoPg== Date: Mon, 9 Apr 2018 00:18:38 +0000 Message-ID: <20180409001637.162453-138-alexander.levin@microsoft.com> References: <20180409001637.162453-1-alexander.levin@microsoft.com> In-Reply-To: <20180409001637.162453-1-alexander.levin@microsoft.com> Accept-Language: en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: x-originating-ip: [52.168.54.252] x-ms-publictraffictype: Email x-microsoft-exchange-diagnostics: 1;DM5PR2101MB1110;7:x03UMo3z/AWoBIsVnhA64fiWUaokpyW+WEJx0KiZRvKDkHqQHqmZPgTMt/+wiKX4adCNagiHrOastyjjHFNb3Rxki2wgxmeMrG22x2BAZqhFM6bocYRD4OeIMREeQLqqn1/BnlyshUjUnIRcKMUbcA4wX0Kx7fkKM1FjNHdUps7PdF5/V5x+AD3HXixx9MjimkY2RnkXM6/Xm9QGUAiKaeujnMy542Q8LLXHwE4ZEvnIWcw6Yj71Ba8XNgFVR3TQ;20:coGW0cIB6/CtxojLL6brdg8dPQ8i/vnifRuUPxeexCWCkPz8YP613TaRKZCAz4GE511XnmSDSFxoEGuk7E9l4c4mPeyMFPm1WkmNiH2P21/C0Eo3s8EqlCaGIaRupLJ9DgrGooUb6O1RJeLWe5i7CBM91UUr9FZBoh2Bywfr/34= x-ms-office365-filtering-ht: Tenant X-MS-Office365-Filtering-Correlation-Id: 468d81de-6790-4272-d9d2-08d59dafab75 x-microsoft-antispam: UriScan:;BCL:0;PCL:0;RULEID:(7020095)(4652020)(48565401081)(5600026)(4604075)(3008032)(4534165)(4627221)(201703031133081)(201702281549075)(2017052603328)(7193020);SRVR:DM5PR2101MB1110; x-ms-traffictypediagnostic: DM5PR2101MB1110: authentication-results: spf=none (sender IP is ) smtp.mailfrom=Alexander.Levin@microsoft.com; x-microsoft-antispam-prvs: x-exchange-antispam-report-test: UriScan:(28532068793085)(89211679590171); x-exchange-antispam-report-cfa-test: BCL:0;PCL:0;RULEID:(8211001083)(61425038)(6040522)(2401047)(5005006)(8121501046)(93006095)(93001095)(3231221)(944501327)(52105095)(3002001)(10201501046)(6055026)(61426038)(61427038)(6041310)(20161123558120)(20161123562045)(20161123560045)(201703131423095)(201702281528075)(20161123555045)(201703061421075)(201703061406153)(20161123564045)(6072148)(201708071742011);SRVR:DM5PR2101MB1110;BCL:0;PCL:0;RULEID:;SRVR:DM5PR2101MB1110; x-forefront-prvs: 0637FCE711 x-forefront-antispam-report: SFV:NSPM;SFS:(10019020)(376002)(366004)(346002)(396003)(39380400002)(39860400002)(199004)(189003)(5660300001)(478600001)(86612001)(3846002)(6116002)(106356001)(6486002)(72206003)(25786009)(10290500003)(8936002)(6436002)(76176011)(2616005)(6506007)(2900100001)(97736004)(486006)(26005)(36756003)(10090500001)(81166006)(8676002)(81156014)(59450400001)(102836004)(2906002)(99286004)(11346002)(476003)(3660700001)(66066001)(6512007)(86362001)(53936002)(105586002)(186003)(5250100002)(14454004)(22452003)(6666003)(2501003)(446003)(7736002)(316002)(1076002)(110136005)(3280700002)(54906003)(68736007)(107886003)(4326008)(305945005)(22906009)(217873001);DIR:OUT;SFP:1102;SCL:1;SRVR:DM5PR2101MB1110;H:DM5PR2101MB1032.namprd21.prod.outlook.com;FPR:;SPF:None;LANG:en;PTR:InfoNoRecords;A:1;MX:1; received-spf: None (protection.outlook.com: microsoft.com does not designate permitted sender hosts) x-microsoft-antispam-message-info: Ud99WMmCuQjpZRgnEo5xJ/TSYWFbpaHxbo2X0w/S0tA7FBDbAOoUoxjfmX0P1/GBB3dax9H8xpWAvoiq8C7V9tA+zFXjAdqwed3jTaguEmsedhVRR0s0cIz31C/ccm/i5Q/+DloIjQSFz1UgvwPz2WlpY+I8Et3rJIvmDDs4rOn6nDhJ1R56zOOGxloG0kH6LyIOTTT5C/I8eAmli8gKu28HixKlMfYyjanHeSQWtn4pcHYwnyMnmt3ARfTHN9B6DwMthEt+GGX8JK1A05L1NYf39a2DaShui84ypr0Yby7nw2ixDsbqFn2Rsjx3pgtkslCABlhccGBDn1HmAYd5u2yXfUdGu/n6YEOtGzsrqwcMkGjsKJM2qWOl+ksTavpsj6qjqrHPKO/yHShJfaGTzNN6K+VzrNfZI5pQFehCaQw= spamdiagnosticoutput: 1:99 spamdiagnosticmetadata: NSPM Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 X-OriginatorOrg: microsoft.com X-MS-Exchange-CrossTenant-Network-Message-Id: 468d81de-6790-4272-d9d2-08d59dafab75 X-MS-Exchange-CrossTenant-originalarrivaltime: 09 Apr 2018 00:18:38.5972 (UTC) X-MS-Exchange-CrossTenant-fromentityheader: Hosted X-MS-Exchange-CrossTenant-id: 72f988bf-86f1-41af-91ab-2d7cd011db47 X-MS-Exchange-Transport-CrossTenantHeadersStamped: DM5PR2101MB1110 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: Subash Abhinov Kasiviswanathan [ Upstream commit ea23d5e3bf340e413b8e05c13da233c99c64142b ] Failures were seen in ICMPv6 fragmentation timeout tests if they were run after the RFC2460 failure tests. Kernel was not sending out the ICMPv6 fragment reassembly time exceeded packet after the fragmentation reassembly timeout of 1 minute had elapsed. This happened because the frag queue was not released if an error in IPv6 fragmentation header was detected by RFC2460. Fixes: 83f1999caeb1 ("netfilter: ipv6: nf_defrag: Pass on packets to stack = per RFC2460") Signed-off-by: Subash Abhinov Kasiviswanathan Signed-off-by: Pablo Neira Ayuso Signed-off-by: Sasha Levin --- net/ipv6/netfilter/nf_conntrack_reasm.c | 1 + 1 file changed, 1 insertion(+) diff --git a/net/ipv6/netfilter/nf_conntrack_reasm.c b/net/ipv6/netfilter/n= f_conntrack_reasm.c index ce53dcfda88a..b84ce3e6d728 100644 --- a/net/ipv6/netfilter/nf_conntrack_reasm.c +++ b/net/ipv6/netfilter/nf_conntrack_reasm.c @@ -264,6 +264,7 @@ static int nf_ct_frag6_queue(struct frag_queue *fq, str= uct sk_buff *skb, * this case. -DaveM */ pr_debug("end of fragment not rounded to 8 bytes.\n"); + inet_frag_kill(&fq->q, &nf_frags); return -EPROTO; } if (end > fq->q.len) { --=20 2.15.1