Received: by 2002:a25:4158:0:0:0:0:0 with SMTP id o85csp1398659yba; Thu, 9 May 2019 16:12:49 -0700 (PDT) X-Google-Smtp-Source: APXvYqys6aRe63q0fL7RmYfOQRVpLiznSkx7HcN8dY+6+dBvGdwFgwCFVyh4KnqI2fcm8L7kqQhr X-Received: by 2002:aa7:8dc7:: with SMTP id j7mr9061708pfr.82.1557443569741; Thu, 09 May 2019 16:12:49 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1557443569; cv=none; d=google.com; s=arc-20160816; b=Yl8249qKxXDV2ms4wpog1b/FGtNZDqf40YixoCyVo5OKzmsmcSf6cLVrsXPReDVTqX mjmSakBT9NFDZ4lGvE1H3WH7basIBN0L6EsVzu3D3atIFLjlQuhtU6tM/TxzHBtyGyig PxFvNpMWbtNBTMKCq+0DpKPP/FpQazFS6Vn2MgEq8G+Qq+vKMKBkeN1LuffTuliKSZvg ucpuSLVHTre7hbl84rj55E/NO+3uj7JS2wcBc2ae0lrx1o6jq6ogyxELzlS5YrQpW+Jg zWdgzTpcytoLawieLZ8lgbYfWlWRYIWf2apTZxcy/ITONAoPglU8POKi8iYITSzbwSbl m7Gw== 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 :references:in-reply-to:message-id:subject:cc:to:from:date :dkim-signature; bh=otF13VeCQdd7dt8OGygLpuUngOsWT6BUaEZ4Q2r79A4=; b=VMKG58dGQnQrz+4pcXO9AdBZgPUnnSCIuIzC5ofPXkjBw3Qhk8FNu6JxHiWVFRMWnA Si71e7wVIL/T2xKQt8fE5ZRLLt6Zl6KTZwDRHgEvYQNLhlhnblU/eQ7lVbw4ywwMC4uE ZsXnkoig2DqCK105W2fdt+jEzmP2Y/TYKwOHQ8sxlPfU0JJ5KGDt56XZsy5xFc3UXlQo 3Yk9uwkd41tAZo7LVyuZiVOdc3ie1kwGUmTy0F9tJ+yF9OEV4x+oz0rUy3jP5DgLZzu3 T4P5OOPjUakFSGgN/1vWzt5fRKUVttgJWRdruyxJELe//Amne+xL/mYyWw3kbRJTE5R5 rtMw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=AgZ9nGki; 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 q1si4794560pfb.68.2019.05.09.16.12.30; Thu, 09 May 2019 16:12:49 -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=AgZ9nGki; 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 S1726726AbfEIXLh (ORCPT + 99 others); Thu, 9 May 2019 19:11:37 -0400 Received: from mail.kernel.org ([198.145.29.99]:34100 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726682AbfEIXLh (ORCPT ); Thu, 9 May 2019 19:11:37 -0400 Received: from localhost.localdomain (c-73-223-200-170.hsd1.ca.comcast.net [73.223.200.170]) (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 50F642173C; Thu, 9 May 2019 23:11:36 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1557443496; bh=4czGVVwxwttY99MriEH8D5p/ohHXnX9UEsQ9++fXAiw=; h=Date:From:To:Cc:Subject:In-Reply-To:References:From; b=AgZ9nGkinsJeJnmcfS5Jgm3wtmVHuRU5lptN1SIUZM/xc4SVbVTukk0uVJmEYFG63 fMg9LLzPL0e+JcHsSReAaSejpacJiUpDr0BieQ4pJA82YRn7b8Ey8V+LYXI+wAGnu0 Lk1B0ytS5mLdcAT5Yjxpl6AjFwv9CECO4jFRec8Y= Date: Thu, 9 May 2019 16:11:35 -0700 From: Andrew Morton To: Mike Kravetz Cc: yuyufen , linux-mm@kvack.org, linux-kernel@vger.kernel.org, Michal Hocko , Naoya Horiguchi , "Kirill A . Shutemov" , stable@vger.kernel.org Subject: Re: [PATCH] hugetlbfs: always use address space in inode for resv_map pointer Message-Id: <20190509161135.00b542e5b4d0996b5089ea02@linux-foundation.org> In-Reply-To: <5d7dc0d5-7cd3-eb95-a1e7-9c68fe393647@oracle.com> References: <20190416065058.GB11561@dhcp22.suse.cz> <20190419204435.16984-1-mike.kravetz@oracle.com> <5d7dc0d5-7cd3-eb95-a1e7-9c68fe393647@oracle.com> X-Mailer: Sylpheed 3.5.1 (GTK+ 2.24.31; x86_64-pc-linux-gnu) Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Wed, 8 May 2019 13:16:09 -0700 Mike Kravetz wrote: > > I think it is better to add fixes label, like: > > Fixes: 58b6e5e8f1ad ("hugetlbfs: fix memory leak for resv_map") > > > > Since the commit 58b6e5e8f1a has been merged to stable, this patch also be needed. > > https://www.spinics.net/lists/stable/msg298740.html > > It must have been the AI that decided 58b6e5e8f1a needed to go to stable. grr. > Even though this technically does not fix 58b6e5e8f1a, I'm OK with adding > the Fixes: to force this to go to the same stable trees. Why are we bothering with any of this, given that : Luckily, private_data is NULL for address spaces in all such cases : today but, there is no guarantee this will continue. ? Even though 58b6e5e8f1ad was inappropriately backported, the above still holds, so what problem does a backport of "hugetlbfs: always use address space in inode for resv_map pointer" actually solve? And yes, some review of this would be nice