Received: by 10.213.65.68 with SMTP id h4csp2121503imn; Sun, 8 Apr 2018 20:14:06 -0700 (PDT) X-Google-Smtp-Source: AIpwx4/Rs0YDUjYEk2RWOa3maIzuieBA9Hgc/9FRHJxTYoZKKCFFmm6QL9thQyY8fBaRYtv3pXZg X-Received: by 10.167.130.151 with SMTP id s23mr28031158pfm.106.1523243646081; Sun, 08 Apr 2018 20:14:06 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1523243646; cv=none; d=google.com; s=arc-20160816; b=jT6fS7EEfZBuoVI309Fy+aoWtgm2SlDckgevuTJBEf06HgKlJWfDANMa+DzS/DfOHv BhLGzbELYVd6lZUKBABAFGDQJ6CeZVo7oARYOflJhbQLIWdfIsLYH8ZnVEvqqTHhinUI zIcwBwVcXYndMbsUVlSn+Vnx6f6DIIYSdW0yoU8NjvlzB2fQFbbyNQwV0Bil4GbtDUPY PI8hqULyJb3qrBWugqdO6GMjqpx5nb4oxQDuuqLslWNn+HIb2WFwWCORa0a4UDhkW38z 4zqN0HQd8EY3zMXkyOkNB5X6++K/cl4XrHc79bKykl5PNnRFcfWo1sqsU8uc3u9sJ1Aa 0JfA== 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=McpGHOlV65NQrr9XiwCAlyRs7FF2BW0DUTfi+58imOo=; b=r9Y+VBJw7LlUTVU7eaLA6m7WQsiLBt088hWf4ZcZXXOZZ2TyArDXEFlRQ1jvXrWzql +VsdZJZyJZf7Z62GIa+tq0JbUHzC0gtHRW3HtQQCMZXVAFp65KMBS00qnDIq7xBFNelw GocMhfCYG4q5SJiBfz6jLmldGF/LIm9uJo1kR1kBIOJsvViu69ESWc9eTLVfnBGEXV27 kBUBtBMLC8+ZVTx1P07Vo0Sw5156ImvEYdRcbu7LkcVrYDyZNuW/jvk0Uv3nYjYpSHrY ElcJ1+mMVsN9EE9vF2qjjdAeHechauJgopv92hKu5C4Llk289s8EbzaCa+PcJmM33Z/1 u8jg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@microsoft.com header.s=selector1 header.b=bGuklzVq; 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 g124si9339105pgc.163.2018.04.08.20.13.29; Sun, 08 Apr 2018 20:14:06 -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=bGuklzVq; 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 S1752297AbeDIDC3 (ORCPT + 99 others); Sun, 8 Apr 2018 23:02:29 -0400 Received: from mail-sn1nam02on0138.outbound.protection.outlook.com ([104.47.36.138]:39392 "EHLO NAM02-SN1-obe.outbound.protection.outlook.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1754290AbeDIAZY (ORCPT ); Sun, 8 Apr 2018 20:25:24 -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=McpGHOlV65NQrr9XiwCAlyRs7FF2BW0DUTfi+58imOo=; b=bGuklzVqMq4evcL7eXaDKHj+FsE5huAlirRg5he/domCp2e68Ti+iYIV6p7A018rFlJTWvLyp5BiAdbxvbGs8ARTNFSqj8KGagJCHB/ltyZ48CfyrSDqC3axeQO3d59Y8sPaPTKPs6jxCP+Z2IVbiGuJDDC9zw9SxiK9PhHd4EE= Received: from DM5PR2101MB1032.namprd21.prod.outlook.com (52.132.128.13) by DM5PR2101MB0983.namprd21.prod.outlook.com (52.132.133.29) 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:25:21 +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:25:21 +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.14 115/161] netfilter: ipv6: nf_defrag: Kill frag queue on RFC2460 failure Thread-Topic: [PATCH AUTOSEL for 4.14 115/161] netfilter: ipv6: nf_defrag: Kill frag queue on RFC2460 failure Thread-Index: AQHTz5iyTXKsLF7xiEmj58hRjJnsVw== Date: Mon, 9 Apr 2018 00:21:26 +0000 Message-ID: <20180409001936.162706-115-alexander.levin@microsoft.com> References: <20180409001936.162706-1-alexander.levin@microsoft.com> In-Reply-To: <20180409001936.162706-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;DM5PR2101MB0983;7:xkF9+w4fFwK07zjViedlWKRkMenZzj66gLyfsbnQIQAvsookMRId/s0WE5V7Yv2PqEFGodYZ8+YtG4Mf1+Jw5W1w0tPoyq8H3IqjfJs8iPHM15ycNzpEKFbH8yXgV24Ph4IBXH5i1hOJiBhraD31+dCQ6OK5bah+FM4sCqegLmhar+8U4lOEKc2f7BhW5wFN2wkj/NiJpBL4s1KJE6gQNTj9fSXgUW3Y9Dn/8y0LpaPQENY4KvET5zgWmg1NFEkN;20:9NcsdQFLn8Ew5vQcq6uKaJhyx9ipyL/PEYeby56ANyXIyg5Ni7RPmBjECfDtxOLfqdSUecX11z8uiAAokC+n6vluSc8sqX/9m4eqFj3bc5YaJK4EyghZZGlu9sjexL3JOFydS55PnRJmfAQ4qPXwP79kesGAlhYSAsEn++hCZP4= x-ms-office365-filtering-ht: Tenant X-MS-Office365-Filtering-Correlation-Id: 79d3a9e1-a395-4a14-215c-08d59db06173 x-microsoft-antispam: UriScan:;BCL:0;PCL:0;RULEID:(7020095)(4652020)(48565401081)(5600026)(4604075)(3008032)(4534165)(4627221)(201703031133081)(201702281549075)(2017052603328)(7193020);SRVR:DM5PR2101MB0983; x-ms-traffictypediagnostic: DM5PR2101MB0983: 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)(8121501046)(5005006)(93006095)(93001095)(3231221)(944501327)(52105095)(3002001)(10201501046)(6055026)(61426038)(61427038)(6041310)(20161123562045)(201703131423095)(201702281528075)(20161123555045)(201703061421075)(201703061406153)(20161123558120)(20161123564045)(20161123560045)(6072148)(201708071742011);SRVR:DM5PR2101MB0983;BCL:0;PCL:0;RULEID:;SRVR:DM5PR2101MB0983; x-forefront-prvs: 0637FCE711 x-forefront-antispam-report: SFV:NSPM;SFS:(10019020)(396003)(39860400002)(346002)(376002)(39380400002)(366004)(199004)(189003)(478600001)(59450400001)(72206003)(10290500003)(3846002)(102836004)(6506007)(6116002)(25786009)(6436002)(66066001)(99286004)(54906003)(86612001)(105586002)(53936002)(76176011)(316002)(486006)(7736002)(22452003)(3660700001)(86362001)(97736004)(106356001)(8936002)(110136005)(5660300001)(11346002)(446003)(81166006)(81156014)(2906002)(8676002)(2900100001)(1076002)(476003)(2616005)(10090500001)(6486002)(107886003)(36756003)(4326008)(2501003)(68736007)(186003)(305945005)(3280700002)(5250100002)(6512007)(26005)(14454004)(22906009)(217873001);DIR:OUT;SFP:1102;SCL:1;SRVR:DM5PR2101MB0983;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: zFMCqTEp1Ik+ODrhs97+Qy5HE5vhSKnN5pslw5Nf8iuCudPVMeS03uzP72Dj47PUuPDQjdRDQ984phvKKDPVs3u0Johstt5PFKhrBCH9pV3QSrJY+BltHDaInEBUmuhlzkEODTR1GGsa+iiKdi5B+WgermisD9h+FJJGVVduUGePKlty72s6vanVKjQ8MCBW6eT2hMb9mzUv6GZP3nxv/LhqF4jCG1Z8D79nYFg0yMCNtX1E6LHGkG38rEDnMsCE/FiWBrLKcl1+OIqskGOeCfCwaVZWfEoWoH3TF6SjZNiSvu8mMOSvglrkv78jaWC75SZMSgd5AdujDtZvwESPVI4ZSCFSa6A3e7FS+X8VJoDXDp3WyWQVwXXVFZteJI8Z3HjHo6nqbozNAZdWutP78yscooy4raa+dcFh7EyF0Gg= 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: 79d3a9e1-a395-4a14-215c-08d59db06173 X-MS-Exchange-CrossTenant-originalarrivaltime: 09 Apr 2018 00:21:26.9718 (UTC) X-MS-Exchange-CrossTenant-fromentityheader: Hosted X-MS-Exchange-CrossTenant-id: 72f988bf-86f1-41af-91ab-2d7cd011db47 X-MS-Exchange-Transport-CrossTenantHeadersStamped: DM5PR2101MB0983 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 5edfe66a3d7a..64ec23388450 100644 --- a/net/ipv6/netfilter/nf_conntrack_reasm.c +++ b/net/ipv6/netfilter/nf_conntrack_reasm.c @@ -263,6 +263,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