Received: by 10.213.65.68 with SMTP id h4csp2117116imn; Sun, 8 Apr 2018 20:08:06 -0700 (PDT) X-Google-Smtp-Source: AIpwx4/fcW9/o5JH7ApMao+FYuuJuO0MP0a2IexgYrymeF/MyFvSjyOY4uMvmAw9mVpa0U5sB2tY X-Received: by 2002:a17:902:143:: with SMTP id 61-v6mr37329927plb.345.1523243286902; Sun, 08 Apr 2018 20:08:06 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1523243286; cv=none; d=google.com; s=arc-20160816; b=1GzXYXTs4bCpiCx6IeLMbF7GZYnxoy2PwhDznXQipu+BOGXV8oajVZWiyR6TtvAs1e /S+XnQkf8fYeM2LoY2vnAcRL6e2F3BnIXc5rBbceP5sOEMy+hFJFs2enR2CXFUWHFpor +f5a7Kj0cEQ6lq+N4E3QeL8WmU1I+wqoxqBJzQBHsb0rNxXmesuwnmyxNctlCjsrfNUs +JF/gb4GsZ+EyvV6qn+f2+jtI+2o8XK9402Z9KDjU/hYUuepqNxeCz6Z4ozYpb4r2Ife nsGe/36nE2SqYQd5GJ0TzufeUuaRQZ8OQDa7srpyRCy3t9u0wcFuqDXV7IGjtyn0xwtl xj4w== 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=yfZJA5XRo73+J4P4IeOUMrVQprJBtKRY691arowSMiu6/ZOxX5vSXaPiBKU0OYaIQB HRTanS/8Ww3vRKRQ8CTbXjAnX4XWFj0KriU3hwjskRveUU8R8lyoZfcig3NTset2xAmj 1uPDO6rMbm8e1pbM8DNS8Rkrf8IdRHUXncsKI62VnnWOdMkYSzsIttFycdPkk8Ci7olN phtKUCCKELlMiTPhhfLzvCyzkj7r6WsZqJr81wbL3E5KrgLnPWx+HfvD0EhQdKZG0WBp MfVxe3Ygwq6UCKX0/wriy2uDTRgeT+eGb+s1yy4AjmgB8rOPWLHXWz5vK8RjMyAk5oz/ v6sw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@microsoft.com header.s=selector1 header.b=ezbPHEwd; 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 v6si10387758pgq.227.2018.04.08.20.07.29; Sun, 08 Apr 2018 20:08: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=ezbPHEwd; 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 S1756660AbeDIBrZ (ORCPT + 99 others); Sun, 8 Apr 2018 21:47:25 -0400 Received: from mail-bl2nam02on0114.outbound.protection.outlook.com ([104.47.38.114]:2685 "EHLO NAM02-BL2-obe.outbound.protection.outlook.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S932332AbeDIAeF (ORCPT ); Sun, 8 Apr 2018 20:34:05 -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=ezbPHEwdzBJCVDA7q2pUgCYnO/X7lnnMRNoueJNBZUdIv2f2XLT0GoD6zsL0GZr9TTIAWauxmwHLa5dtTRlGfjUnZrAwvszOvikLshs6UgpC+1XB0xSzJmxp8GmYmJW8QmB4ksKgz13zwbA62xtlZ7+c2EeJLLq3uMI/i4j/FyI= Received: from DM5PR2101MB1032.namprd21.prod.outlook.com (52.132.128.13) by DM5PR2101MB0984.namprd21.prod.outlook.com (52.132.133.30) 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:34:01 +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:34:01 +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.9 267/293] netfilter: ipv6: nf_defrag: Kill frag queue on RFC2460 failure Thread-Topic: [PATCH AUTOSEL for 4.9 267/293] netfilter: ipv6: nf_defrag: Kill frag queue on RFC2460 failure Thread-Index: AQHTz5ljRGpaOlc0K0u4sS2txGW0KA== Date: Mon, 9 Apr 2018 00:26:23 +0000 Message-ID: <20180409002239.163177-267-alexander.levin@microsoft.com> References: <20180409002239.163177-1-alexander.levin@microsoft.com> In-Reply-To: <20180409002239.163177-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;DM5PR2101MB0984;7:bIKADZ1zU+yiGhpu/quHyEkTCL2Y8joti2OvNMV3KKLgjJH1Cyq6zbGel0aA562C42kNk3aqhGLei5sPXTWRz9cq/RYwPh0EzeNij7XJAuqNg4qq06nzDgjL8nizsRh60BQvrmdY4KUksYXsow9OtB3C03kGCsbR5bIav3H67GtGsWs4CrO78TY6la2vG3Ynzk6koHd6y/emLD0daB0hNKcD20+gLEOqiPrdU9kajnBiZBVvWR0s2Zx4GnFYLAN5;20:Yp5Xuz9ZqJ+iAVFXoc9nPAE6xSmgPirVCGa8jFm4m7Vd+3A9SrQA0kaI5UuuPCD8LLKYbvrAIwXQpG803NztEW560WTe8jbMeuvUnyJNzrpJYWoApb0226tZwZkL0sCsRJfmxjT2FDeXlXkKNiAl0Suhh+HuBYSC0786dhFoIFU= x-ms-office365-filtering-ht: Tenant X-MS-Office365-Filtering-Correlation-Id: 3052fef7-857e-4171-c437-08d59db1972f x-microsoft-antispam: UriScan:;BCL:0;PCL:0;RULEID:(7020095)(4652020)(48565401081)(5600026)(4604075)(3008032)(4534165)(4627221)(201703031133081)(201702281549075)(2017052603328)(7193020);SRVR:DM5PR2101MB0984; x-ms-traffictypediagnostic: DM5PR2101MB0984: 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:DM5PR2101MB0984;BCL:0;PCL:0;RULEID:;SRVR:DM5PR2101MB0984; x-forefront-prvs: 0637FCE711 x-forefront-antispam-report: SFV:NSPM;SFS:(10019020)(396003)(39860400002)(366004)(39380400002)(346002)(376002)(199004)(189003)(26005)(99286004)(2906002)(14454004)(97736004)(59450400001)(8676002)(81156014)(81166006)(8936002)(6512007)(106356001)(76176011)(186003)(3280700002)(10090500001)(36756003)(6506007)(66066001)(3660700001)(72206003)(478600001)(6666003)(53936002)(2900100001)(105586002)(102836004)(2501003)(110136005)(54906003)(5250100002)(486006)(1076002)(25786009)(6116002)(6436002)(11346002)(6486002)(22452003)(4326008)(446003)(7736002)(86362001)(305945005)(2616005)(476003)(68736007)(3846002)(86612001)(5660300001)(10290500003)(107886003)(316002)(22906009)(217873001);DIR:OUT;SFP:1102;SCL:1;SRVR:DM5PR2101MB0984;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: 0fw8CG3KH8GoRNNGmIWkMkjMfIPMckuSRFeQG8ot2pDZb9Hd/VL4k9EWNKF8JZRcDJBhwZOJMBK8e+HwN7lm1slbRZqGxZEsax8kVxsIEoAiQwaEbukPBHFCBQaeX8+wuVux4Ie4o4G/57L+ympvugFn/TB0x3gxDegAxemHPtojYff4oVYYvRqsxQS5HNsQyvVXA7dg7TazoaelBPobMFPIunfl9Lxm2xCWFSvaVE75vR1YsJaGpZlgTYw5g0NVbwO5hQpKcB+b/AeOSXM2x8TDfUbjsAiibuVx90/X1+W1+RIRFSzquiLSixOFedf9pDfLG6tDBvsSJT3JBfeA+wHtTeTMeJWn64NFitIetnlasDDMTr0cC2CuhQNfRJ0bmoXhbe0Bku9QNnJmtQH1c+3yAGQV/TGPZblo1bpl7/8= 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: 3052fef7-857e-4171-c437-08d59db1972f X-MS-Exchange-CrossTenant-originalarrivaltime: 09 Apr 2018 00:26:23.8007 (UTC) X-MS-Exchange-CrossTenant-fromentityheader: Hosted X-MS-Exchange-CrossTenant-id: 72f988bf-86f1-41af-91ab-2d7cd011db47 X-MS-Exchange-Transport-CrossTenantHeadersStamped: DM5PR2101MB0984 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