Received: by 10.192.165.148 with SMTP id m20csp549617imm; Wed, 25 Apr 2018 04:06:16 -0700 (PDT) X-Google-Smtp-Source: AB8JxZq2bWgyB21LUxUgh64FZei3lNYw3T0GVGWTCWx8Mh/EKbytzUftuYipVbSz0BZMQ58smtJL X-Received: by 10.98.198.217 with SMTP id x86mr365336pfk.192.1524654376231; Wed, 25 Apr 2018 04:06:16 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1524654376; cv=none; d=google.com; s=arc-20160816; b=BttvKQTBQuCHbF7iEoXrovltXU+hin2AVca5hHT1nVOxMTedhDeFzt58adMZIAqHQ1 4Vcg62JgOS/gtK3Vig2EcjQGfHpGgPPXPEoBxX9TZIb+kE8YcXIE08u2laIoCNY/6RUv /LlnZc3rePwVDtNWf/J5afoHqQKnprgzEgNKTHuMqLaP1fglr4HAcAk16rTqR70dEcmY vT+G1/iMY5b0v5dcveBZsaB5aUa2dfcHGroJWqRZXprMnFi2JJwp2DNUp0NaWDpm6eYr petcIPToCanXArEGpXzbYOcMkydBR/Zo6CGcdhLCNqPMfbPjCyekxdw2MzQK4Av8E2TD EU6Q== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:mime-version:user-agent:references :in-reply-to:message-id:date:subject:cc:to:from :arc-authentication-results; bh=YsGpDzDyiiLzA5hoVU8xZGetloa5OqYXJQdQYfVe4uk=; b=pcKnOYjxh9GDLdXpAnVmo77ZuWyLw5HxgZLzh4y1uIO3CPIk8SCXxgeEiRxMRP8A/d aTkpPBjXC1rd/Tilsad6tc7aGiZjjPiJu/EjPj7EB30aV0bN9S8fAHcskMacItwo0Ws8 Hl/IFLPRm1pohhSetiAOw0IvFAjXuIBnW9C9aijisMmrs38Sj7Ll4a3iQI37sl7ZDh7U qlg/kVDSdHYCGjmcK0V5jOkdewthAgnjTR/s6mvxSDpdOrKAezm/sW2N1M6hZsrxgKrs coEHY2KTTvFsJQIvUXFNbSaAR9bohzn0sN1x4IEJuQcVVbaiIwa/hlrdTJPPpgEC5EkU XFjA== ARC-Authentication-Results: i=1; mx.google.com; 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 Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id a10si12960331pgq.272.2018.04.25.04.06.01; Wed, 25 Apr 2018 04:06:16 -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; 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1754375AbeDYLDh (ORCPT + 99 others); Wed, 25 Apr 2018 07:03:37 -0400 Received: from mail.linuxfoundation.org ([140.211.169.12]:52622 "EHLO mail.linuxfoundation.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752051AbeDYKmX (ORCPT ); Wed, 25 Apr 2018 06:42:23 -0400 Received: from localhost (LFbn-1-12247-202.w90-92.abo.wanadoo.fr [90.92.61.202]) by mail.linuxfoundation.org (Postfix) with ESMTPSA id 42108480; Wed, 25 Apr 2018 10:42:22 +0000 (UTC) From: Greg Kroah-Hartman To: linux-kernel@vger.kernel.org Cc: Greg Kroah-Hartman , stable@vger.kernel.org, Subash Abhinov Kasiviswanathan , Pablo Neira Ayuso , Sasha Levin Subject: [PATCH 4.14 126/183] netfilter: ipv6: nf_defrag: Kill frag queue on RFC2460 failure Date: Wed, 25 Apr 2018 12:35:46 +0200 Message-Id: <20180425103247.494874862@linuxfoundation.org> X-Mailer: git-send-email 2.17.0 In-Reply-To: <20180425103242.532713678@linuxfoundation.org> References: <20180425103242.532713678@linuxfoundation.org> User-Agent: quilt/0.65 X-stable: review MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 4.14-stable review patch. If anyone has any objections, please let me know. ------------------ 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 Signed-off-by: Greg Kroah-Hartman --- net/ipv6/netfilter/nf_conntrack_reasm.c | 1 + 1 file changed, 1 insertion(+) --- 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 * 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) {