Received: by 2002:ac0:98c7:0:0:0:0:0 with SMTP id g7-v6csp2457316imd; Fri, 2 Nov 2018 11:44:07 -0700 (PDT) X-Google-Smtp-Source: AJdET5fjaaJxl5qleSz5LqpZNVIERQX1/uGXoMXCn6ucZV3fSeK+vaUxtmdCDfayPV0E82FWXbyO X-Received: by 2002:a17:902:61:: with SMTP id 88-v6mr12919375pla.189.1541184247822; Fri, 02 Nov 2018 11:44:07 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1541184247; cv=none; d=google.com; s=arc-20160816; b=oxNnM0wkTB0eyVeGhKszw3YGrgfVSwo/8h3XEGr2KTnzXsLMlfdVxrXv2UQrDS70sD +JxukMu3a1lJOQSAuD3jIuft3E/LHZEP6fs09JCl3KyUCeaQh9odZ/CQJSPk4JgUJo/k 0sDMhiWGFOenpoA9tIYCoVN0cO+34BoqhieWkSZkMRmN9RcKauqTmbs+lzE+gZ+u3nvR isW7IJlNQD/5btsWUMEq49AAo2OvBZz8pGvtCnAo97GuVawOZIh7ajNrok1WP26rVK1U BeMf7X5zdDqU66g2Q00vpgQvER7rKTTsQXfBbMyxQ48HfY/h7AuI1mgwTNIcb6QTv86a 3CKQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :user-agent:references:in-reply-to:message-id:date:subject:cc:to :from:dkim-signature; bh=mn1FBsXCx5C1K2r91rP/2VWJfCJ8wcxzsd7UiPhC6Po=; b=e12SugMm2euuKkr6zC6kDoQZ4FG/6H9twy1VyCC7a/g7QBNXAXMFVQ+maTp+OHbkxs RNu74RrXYIwj7j+Es7SBh4VnGBL+RfFC8+0A6MMolO7gz/V3N1m7hPcM37eTRhEpyRkN 31lazfjrfThZPHPA9eG3oTvl5308ESOpPE2dESj36j7s4f76FBzBIG1paPybFyMcBsvw vvl8odGz6JSdiEyqM0eAyi1Xq3d2ewxLj+AV9R7FX0aoeJn9ltj9FKt58E2mDybtgMek bIRxFEEKcUCx+Q5qfh3/VORduoJ86VspIoTYuz27+vnHhtAzvb0Ckz5dHDD50TTm6H8/ IlZw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=HGcGXyc6; 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 q4-v6si35108310pgj.417.2018.11.02.11.43.53; Fri, 02 Nov 2018 11:44: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=@kernel.org header.s=default header.b=HGcGXyc6; 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 S1729886AbeKCDvG (ORCPT + 99 others); Fri, 2 Nov 2018 23:51:06 -0400 Received: from mail.kernel.org ([198.145.29.99]:46270 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1729437AbeKCDvF (ORCPT ); Fri, 2 Nov 2018 23:51:05 -0400 Received: from localhost (5356596B.cm-6-7b.dynamic.ziggo.nl [83.86.89.107]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPSA id 10DC420847; Fri, 2 Nov 2018 18:42:51 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1541184172; bh=0N7dQpqoLN0dFViOBTAf7xjALSJuiPXsO7syvGjSRC0=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=HGcGXyc6wIkOdn1sEkQFSCcTZSxhASgeK2pV89NEGIZCtw/YwzHLmZYfsl9DpLtwm JjPLoy3XsI4NCYRmRrreHkpA3du1wXzJ+2Wh9+WoyN+gLr2bffj3WF3iBgD7stEdxF L+PzVx+lfygfYLcoPogXOEZNUqAVuk+YTorhbe6A= From: Greg Kroah-Hartman To: linux-kernel@vger.kernel.org Cc: Greg Kroah-Hartman , stable@vger.kernel.org, Sasha Levin Subject: [PATCH 4.18 101/150] Revert "netfilter: ipv6: nf_defrag: drop skb dst before queueing" Date: Fri, 2 Nov 2018 19:34:23 +0100 Message-Id: <20181102182910.388676447@linuxfoundation.org> X-Mailer: git-send-email 2.19.1 In-Reply-To: <20181102182902.250560510@linuxfoundation.org> References: <20181102182902.250560510@linuxfoundation.org> User-Agent: quilt/0.65 X-stable: review MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 4.18-stable review patch. If anyone has any objections, please let me know. ------------------ This reverts commit 84379c9afe011020e797e3f50a662b08a6355dcf. >From Florian Westphal : It causes kernel crash for locally generated ipv6 fragments when netfilter ipv6 defragmentation is used. The faulty commit is not essential for -stable, it only delays netns teardown for longer than needed when that netns still has ipv6 frags queued. Much better than crash :-/ Signed-off-by: Sasha Levin --- net/ipv6/netfilter/nf_conntrack_reasm.c | 2 -- 1 file changed, 2 deletions(-) diff --git a/net/ipv6/netfilter/nf_conntrack_reasm.c b/net/ipv6/netfilter/nf_conntrack_reasm.c index e4d9e6976d3c..a452d99c9f52 100644 --- a/net/ipv6/netfilter/nf_conntrack_reasm.c +++ b/net/ipv6/netfilter/nf_conntrack_reasm.c @@ -585,8 +585,6 @@ int nf_ct_frag6_gather(struct net *net, struct sk_buff *skb, u32 user) fq->q.meat == fq->q.len && nf_ct_frag6_reasm(fq, skb, dev)) ret = 0; - else - skb_dst_drop(skb); out_unlock: spin_unlock_bh(&fq->q.lock); -- 2.17.1