Received: by 2002:ac0:946b:0:0:0:0:0 with SMTP id j40csp3319416imj; Mon, 11 Feb 2019 18:39:54 -0800 (PST) X-Google-Smtp-Source: AHgI3IY7sddBRnyAzUU0tieoQH4r1tzyAa0vUnk2cb6wRXrBuP5BGA9sbtLiU80+vTKh4QgPfA5+ X-Received: by 2002:a17:902:6508:: with SMTP id b8mr1645177plk.17.1549939194083; Mon, 11 Feb 2019 18:39:54 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1549939194; cv=none; d=google.com; s=arc-20160816; b=O/GmtIsdviN5An8d7Azm387y3xMh+Ks0srg7k/CPqggRBOG3VSULerQLtnLwer8xHc Lq5hTEkpE8e7tNul+CDE98ekQRHF2V+ietVONDdtPiACes8jiFDeuA5LxPB3l5K9mxyo B2n8ZqnFUdvCfQxVeTsc91RpuZpmDUpHaFCJDXUVHdOnntcJrHKX3LNe/32+usgM7T7L jwZdfqUHsvoyWd+LbNss49EeDj9BlpWlkvFx/2TSptiWYhjgFwtBC3mmZDBhnVtn4PL6 PlmVs35QnpzqYYSePF8ztS7se2ka/GSxkan4aIHDuUg8NvzzzkUGcIYBiVLoU8lzaSa+ ALjw== 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 :content-language:in-reply-to:mime-version:user-agent:date :message-id:from:references:cc:to:subject:dkim-signature; bh=O/QX/FWn39V0uFALG2Z67rFs8z8//8DxM3sY6IGq6S0=; b=lCYosnDzKWbBcN5WcQDL940fXg+hcrxmw/nY06kjobLJ2nQtZvWTNlBisUNLAG/3Y4 SPbptBMtkmQaxpq0F4w/a4SIxawf6n6JTwJbxTzGpX5dHUqcnD2JhqgAUOhBFCvTb6Hc +I94/Tt3E5oyBRFUOfxvdX5b2OeZWB2aLVoL5rboSglgiQtLIkl5Br/LoOWYu7VGaRWC jnIX1JWNK4nWhB0jLYcxhAKU9U6Ra/ShYlAg9a8bkDZy7rhES6zH9xhP2ATZWdA7QpA8 C57kCZF63YGWqluVMQKr2BiIEjUyUai7KEyLWp6QRltbN5utJNwjmlScPgIPeI3ajK5P jEdA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@oracle.com header.s=corp-2018-07-02 header.b=K8L1rSpe; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=oracle.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id g1si11513996plo.406.2019.02.11.18.39.38; Mon, 11 Feb 2019 18:39:54 -0800 (PST) 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=@oracle.com header.s=corp-2018-07-02 header.b=K8L1rSpe; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=oracle.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727831AbfBLCjN (ORCPT + 99 others); Mon, 11 Feb 2019 21:39:13 -0500 Received: from userp2130.oracle.com ([156.151.31.86]:56502 "EHLO userp2130.oracle.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727265AbfBLCjM (ORCPT ); Mon, 11 Feb 2019 21:39:12 -0500 Received: from pps.filterd (userp2130.oracle.com [127.0.0.1]) by userp2130.oracle.com (8.16.0.27/8.16.0.27) with SMTP id x1C2YOmK037020; Tue, 12 Feb 2019 02:38:00 GMT DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=oracle.com; h=subject : to : cc : references : from : message-id : date : mime-version : in-reply-to : content-type : content-transfer-encoding; s=corp-2018-07-02; bh=O/QX/FWn39V0uFALG2Z67rFs8z8//8DxM3sY6IGq6S0=; b=K8L1rSpeXRxDKVnaoJkMwbp7BHbh75nLa/9MGsWyHyTHGzPejOqu7jXzwqFflUbEScku 2rYCXN/KEvdAsibQReRg02IZ5twnORZH1XytvHQUsFHxkc5M1MjdzF/9/3Kryt8x8jS6 nV+aL9ov1ItqWJyfH148ubCJG3RjxGj9A6DPCsdPXOZnPMN89RtgM7uoPxfE04IgRlFm FwVxqyNIQLybyMUEkrRQ7RXzrCwhknxvorJ+rjscC/1YghZRbwBxnJ3PRXN5r6n2cqIh /vDO4v8+utWqYiT3AZmUDZMZviQ8tYDeeMIEvymcx6JkO3uJy7ik2Yma1JTrb1ARW1jp GQ== Received: from userv0021.oracle.com (userv0021.oracle.com [156.151.31.71]) by userp2130.oracle.com with ESMTP id 2qhrek9b2y-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK); Tue, 12 Feb 2019 02:38:00 +0000 Received: from userv0122.oracle.com (userv0122.oracle.com [156.151.31.75]) by userv0021.oracle.com (8.14.4/8.14.4) with ESMTP id x1C2c046023466 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK); Tue, 12 Feb 2019 02:38:00 GMT Received: from abhmp0016.oracle.com (abhmp0016.oracle.com [141.146.116.22]) by userv0122.oracle.com (8.14.4/8.14.4) with ESMTP id x1C2bw4d021554; Tue, 12 Feb 2019 02:37:59 GMT Received: from [192.168.1.164] (/50.38.38.67) by default (Oracle Beehive Gateway v4.0) with ESMTP ; Mon, 11 Feb 2019 18:37:58 -0800 Subject: Re: [PATCH] huegtlbfs: fix page leak during migration of file pages To: Naoya Horiguchi Cc: "linux-mm@kvack.org" , "linux-kernel@vger.kernel.org" , Michal Hocko , Andrea Arcangeli , "Kirill A . Shutemov" , Mel Gorman , Davidlohr Bueso , Andrew Morton , "stable@vger.kernel.org" References: <20190130211443.16678-1-mike.kravetz@oracle.com> <917e7673-051b-e475-8711-ed012cff4c44@oracle.com> <20190208023132.GA25778@hori1.linux.bs1.fc.nec.co.jp> <07ce373a-d9ea-f3d3-35cc-5bc181901caf@oracle.com> <20190208073149.GA14423@hori1.linux.bs1.fc.nec.co.jp> <20190212022428.GA12369@hori1.linux.bs1.fc.nec.co.jp> From: Mike Kravetz Message-ID: <803d2349-8911-0b47-bc5b-4f2c6cc3f928@oracle.com> Date: Mon, 11 Feb 2019 18:37:57 -0800 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:60.0) Gecko/20100101 Thunderbird/60.4.0 MIME-Version: 1.0 In-Reply-To: <20190212022428.GA12369@hori1.linux.bs1.fc.nec.co.jp> Content-Type: text/plain; charset=iso-2022-jp Content-Language: en-US Content-Transfer-Encoding: 7bit X-Proofpoint-Virus-Version: vendor=nai engine=5900 definitions=9164 signatures=668683 X-Proofpoint-Spam-Details: rule=notspam policy=default score=0 priorityscore=1501 malwarescore=0 suspectscore=0 phishscore=0 bulkscore=0 spamscore=0 clxscore=1015 lowpriorityscore=0 mlxscore=0 impostorscore=0 mlxlogscore=861 adultscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.0.1-1810050000 definitions=main-1902120017 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 2/11/19 6:24 PM, Naoya Horiguchi wrote: > On Mon, Feb 11, 2019 at 03:06:27PM -0800, Mike Kravetz wrote: >> While looking at this, I think there is another issue. When a hugetlb >> page is migrated, we do not migrate the 'page_huge_active' state of the >> page. That should be moved as the page is migrated. Correct? > > Yes, and I think that putback_active_hugepage(new_hpage) at the last step > of migration sequence handles the copying of 'page_huge_active' state. > Thanks! I missed the putback_active_hugepage that takes care of making the target migration page active. -- Mike Kravetz