Received: by 2002:a25:d7c1:0:0:0:0:0 with SMTP id o184csp2236263ybg; Sun, 27 Oct 2019 14:05:22 -0700 (PDT) X-Google-Smtp-Source: APXvYqw3NpCHpgvfPlurhsySjMlqmFQ09BaW1xcoa9XCrOx/ThXKS+2XY2voz5285FGGiKULYe3y X-Received: by 2002:a50:e713:: with SMTP id a19mr6527978edn.220.1572210322626; Sun, 27 Oct 2019 14:05:22 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1572210322; cv=none; d=google.com; s=arc-20160816; b=wdfkUsxolBYSSSo70KlRtJEjyYCuzS9zJhtA1P70j0BVK1HQDwE/tLanV1jrTzrxt0 o3qSXPecgqlhdQXrdwRlnTBv7MVCkb/YCOEPUCGb81phUnJWkbTVFvnsXQid5RxOqolp 7DDjyMuwjjgl0SJgpMDUzl76Cl30bdWvvD3fxfyPgVAgzhAuHwf3Fj2mtQonlZLhGJUm 9EIa7AN8FKKy4bP4SCejY/NFCGL0UUci+YoxUweDhwHc5YTfIjj++dpQiqhxy0i9Yrt0 F3RnfPX2FZjbQH7DtVWS0yL0fKf0PUVmKDwF+mFKQ4U0Um6qkYFTDwwG5ko6X/oDQ0iA gnQw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:in-reply-to :content-disposition:mime-version:references:message-id:subject:cc :to:from:date:dkim-signature; bh=Dt4Ox/59RzV0rfuSrJ1Lkt7hckyHt5nS860/wz1lKhs=; b=aKevunUxBu3Z+W17+kgUt8pf6DT0N36Y1Smel1pcAye3FD9PpqvmK/2NllG4+k8Nf6 0A9eoewieLd70SlfxDhT4trwF2WvCoNGjqTEJt7pzPID9JKwFDpfG3me+jinx68J7csX maL4UhEXsEu+qy7SKi1vtQBbW9rTEGr7whGrtIvjRhoW4lnzvqmnFJeNs3ebc4m6mJLq AH7TA93KypfYYVaM6MzFygneaO7S+PJiYCVJhlXd0vn/fH8ZF0HitIW8LtcbsaFTNhf8 vyJwjkviSTOWZtjdP3Lcad+GspxMitl9VhW6p0m8qkxbI9vjW4b1WzfZ9cMpKO2Ykkwf eBLg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=agxvakRk; 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 c53si5536551eda.396.2019.10.27.14.04.59; Sun, 27 Oct 2019 14:05:22 -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=agxvakRk; 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 S1727644AbfJ0UFv (ORCPT + 99 others); Sun, 27 Oct 2019 16:05:51 -0400 Received: from mail.kernel.org ([198.145.29.99]:43522 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727235AbfJ0UFv (ORCPT ); Sun, 27 Oct 2019 16:05:51 -0400 Received: from localhost (100.50.158.77.rev.sfr.net [77.158.50.100]) (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 7B71E2070B; Sun, 27 Oct 2019 20:05:49 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1572206750; bh=CUyR3fuoRdKrJf9nZf1t8S4z237j7l+D00ncfqIoSsU=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=agxvakRkTOgijn/qKghHaoBmSxLV42tfG+3mDaEYBQaWHZAkmKod8SYfXy4MpEWo6 Dprkv23dHk6aJ3UmcpP4M8lhhTvS7xXEaYUcPvmJap/tZyHGkHa2Inqt5Kicypqv4d meAoiKQjcdHD9W3YcUkXv7dyo7Dh3OrLSJTGPLUs= Date: Sun, 27 Oct 2019 21:05:47 +0100 From: Greg KH To: maowenan Cc: Ajay Kaher , davem@davemloft.net, kuznet@ms2.inr.ac.ru, jmorris@namei.org, yoshfuji@linux-ipv6.org, kaber@trash.net, netdev@vger.kernel.org, linux-kernel@vger.kernel.org, stable@vger.kernel.org, srivatsab@vmware.com, srivatsa@csail.mit.edu, amakhalov@vmware.com, srinidhir@vmware.com, bvikas@vmware.com, anishs@vmware.com, vsirnapalli@vmware.com, srostedt@vmware.com Subject: Re: [PATCH 4.9.y] Revert "net: sit: fix memory leak in sit_init_net()" Message-ID: <20191027200547.GB2588299@kroah.com> References: <1571216634-44834-1-git-send-email-akaher@vmware.com> <20191016183027.GC801860@kroah.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.12.2 (2019-09-21) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Fri, Oct 18, 2019 at 09:48:05AM +0800, maowenan wrote: > > > On 2019/10/17 2:30, Greg KH wrote: > > On Wed, Oct 16, 2019 at 02:33:54PM +0530, Ajay Kaher wrote: > >> This reverts commit 375d6d454a95ebacb9c6eb0b715da05a4458ffef which is > >> commit 07f12b26e21ab359261bf75cfcb424fdc7daeb6d upstream. > >> > >> Unnecessarily calling free_netdev() from sit_init_net(). > >> ipip6_dev_free() of 4.9.y called free_netdev(), so no need > >> to call again after ipip6_dev_free(). > >> > >> Cc: Mao Wenan > >> Cc: David S. Miller > >> Cc: Greg Kroah-Hartman > >> Signed-off-by: Ajay Kaher > >> --- > >> net/ipv6/sit.c | 1 - > >> 1 file changed, 1 deletion(-) > >> > >> diff --git a/net/ipv6/sit.c b/net/ipv6/sit.c > >> index 47ca2a2..16eba7b 100644 > >> --- a/net/ipv6/sit.c > >> +++ b/net/ipv6/sit.c > >> @@ -1856,7 +1856,6 @@ static int __net_init sit_init_net(struct net *net) > >> > >> err_reg_dev: > >> ipip6_dev_free(sitn->fb_tunnel_dev); > >> - free_netdev(sitn->fb_tunnel_dev); > >> err_alloc_dev: > >> return err; > >> } > >> -- > >> 2.7.4 > >> > > > > Mao, are you ok with this change? > > > > thanks, > > > > greg k-h > > > > Greg, ipip6_dev_free has already called free_netdev in stable 4.9. > > Reviewed-by: Mao Wenan Thanks, now queued up. greg k-h