Received: by 2002:ac0:a5a6:0:0:0:0:0 with SMTP id m35-v6csp724354imm; Thu, 13 Sep 2018 06:52:17 -0700 (PDT) X-Google-Smtp-Source: ANB0VdaN+NYxsRp7i2/kzzd5X6ZeWdKkATagiYw7MB/IsEqiQLP4MT6I92mhQDl/cPTMBlTSDZwd X-Received: by 2002:a63:67c3:: with SMTP id b186-v6mr7244088pgc.5.1536846737002; Thu, 13 Sep 2018 06:52:17 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1536846736; cv=none; d=google.com; s=arc-20160816; b=Epjs/AMX6SpCaXxn4aQgHvnos6p3UHi3u19dSfkELa8ArcCNH06m2iwCsDVbg0ZFq8 SJ3oqvoZCYE6sYOdg3LKsd7EYPkg/uBAtuLdfUBnyq7KMCdMXzkZ8MRlsTk9eTPPpugH WjM/fFb3XtxKhOMnLXwRryZaHIGyhWkijH6zltDpVtL1hQ92GQ5jxXbNbWDeY+Q4DnQ4 KmuL3B2dSFj+LPYGr3rs7bdnS+n4r92hV9puS8hAI21o5DbU+/E1rK0WNqfc0YwC2dYE LGmM9HxNjSyU6LWjHAeo2iPM5zs0T6wSX3T6iyAdKTqNApckvGDEVKHh8N5p6D4Bmc4b +lQA== 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; bh=LZhEsaE1JKGJbt1V2jGUoNjlau9JyhfEZNJguf8jAL4=; b=Soub93NRgK7/6osUFZrst+3OAGqvS6le7QQTLxOGF+NjhuabgG+spNy1R+woqLrdwz 3X6j2KMjMVnFGUKt4LHXaoaR95sJBrW2AsrtfUek9p2Yo51RvcJBtYslI/IM+c+ip7Rs ttfCrJ+t0STERz5Rm160GFL54JbnkyHODbH9QD+bYrDnf8xdhY625zFVR0PmIIypZyGc 0+JV3crQAzA9GUfIKE9WVeULK4N0j7+basimZl5npYDccIP1NRWSm0Qm3RpXoaQMCeZG 3I1dsljfzpasv+rxjRYXCxU2hb/mL+acJCFYufoF48rpH6kr6HG10v0YhsLYir7hTE9w Yp5A== 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 d27-v6si4096114pgd.223.2018.09.13.06.52.02; Thu, 13 Sep 2018 06:52: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 S1730847AbeIMTBL (ORCPT + 99 others); Thu, 13 Sep 2018 15:01:11 -0400 Received: from mail.linuxfoundation.org ([140.211.169.12]:33316 "EHLO mail.linuxfoundation.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1730173AbeIMTBK (ORCPT ); Thu, 13 Sep 2018 15:01:10 -0400 Received: from localhost (ip-213-127-77-73.ip.prioritytelecom.net [213.127.77.73]) by mail.linuxfoundation.org (Postfix) with ESMTPSA id A5B7ED10; Thu, 13 Sep 2018 13:51:35 +0000 (UTC) From: Greg Kroah-Hartman To: linux-kernel@vger.kernel.org Cc: Greg Kroah-Hartman , stable@vger.kernel.org, David Ahern , "David S. Miller" Subject: [PATCH 4.18 026/197] net/ipv6: Put lwtstate when destroying fib6_info Date: Thu, 13 Sep 2018 15:29:35 +0200 Message-Id: <20180913131842.605187854@linuxfoundation.org> X-Mailer: git-send-email 2.19.0 In-Reply-To: <20180913131841.568116777@linuxfoundation.org> References: <20180913131841.568116777@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. ------------------ From: David Ahern [ Upstream commit 80f1a0f4e0cd4bfc8a74fc1c39843a6e7b206b95 ] Prior to the introduction of fib6_info lwtstate was managed by the dst code. With fib6_info releasing lwtstate needs to be done when the struct is freed. Fixes: 93531c674315 ("net/ipv6: separate handling of FIB entries from dst based routes") Signed-off-by: David Ahern Signed-off-by: David S. Miller Signed-off-by: Greg Kroah-Hartman --- net/ipv6/ip6_fib.c | 2 ++ 1 file changed, 2 insertions(+) --- a/net/ipv6/ip6_fib.c +++ b/net/ipv6/ip6_fib.c @@ -198,6 +198,8 @@ void fib6_info_destroy_rcu(struct rcu_he } } + lwtstate_put(f6i->fib6_nh.nh_lwtstate); + if (f6i->fib6_nh.nh_dev) dev_put(f6i->fib6_nh.nh_dev);