Received: by 2002:a05:6358:3188:b0:123:57c1:9b43 with SMTP id q8csp7501828rwd; Tue, 6 Jun 2023 11:37:34 -0700 (PDT) X-Google-Smtp-Source: ACHHUZ7pAYAr/veksARd4EhTiliut7qQ5pgg3PpnXm3vxark/PVO6yd1v0JGwEUfZeGTxbbE8SkM X-Received: by 2002:ac8:5812:0:b0:3f9:b5e3:8f18 with SMTP id g18-20020ac85812000000b003f9b5e38f18mr803386qtg.24.1686076654332; Tue, 06 Jun 2023 11:37:34 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1686076654; cv=pass; d=google.com; s=arc-20160816; b=EJQfn2iZlYPsvnEzckFj1j+34X60sOv6QajHbsuCGFGRjOBNLsbtgPKjXJ8uVYJwnt KlzqbOlJxoMorl27Kk54HrQ7e5QuTRc+TQBV2lzRIEkMAkxnHkGr41X6/ZKvr60VAyZ/ Ioa6wCAMc6pcsOP/KnuPq5iqQ84Tx8pP9aQ/D6rZcCqI0hRx1zOXoRAkB2Rz5K3OBdYl E2HuJIIR8emSgZ2bq00NdQ8dchKhIvk1nE9OfuKem22tRqIn5d/+1pwYy/Pc6XUpQsWq /0cVpsUGvFHC0JIzefnHj7MkYKWE+DN/kmN0JeMJEjBgVtt8tUu6GEI+sW1yk0N+lmGM fpyg== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:mime-version:content-transfer-encoding :in-reply-to:from:references:cc:to:content-language:subject :user-agent:date:message-id:dkim-signature:dkim-signature; bh=rLbYlpzeM+w77x/KrQxj6kkLuK+nTPW9fbuOvhzi/bU=; b=QDgoV3tK8ijsdLi8w6cp9pczZGgVsUEhrKVXb8TB0K+oMm0Z55m9fGQ49+IBMo4X18 esR8zkAe3nbSw1Yv5QPNDoJqt2mPauipZ3NolDAb4pMRyFQfw4jspU1i98f/pWajvv0R LjiqgXwAhhzLSMmZwiItIHw3HBqhHbL7f+DvXWLtA4xeCCJz0bgd4IIVY69OfwdbUpau uEuJFAPNjkq1GGF1H1m9V6iV+eW8jtjPb4wWGgfyfsJPEbrgWbRIKJf8BiC+4bbys7k3 XlXZIowtBWu20bilgFrwrJVMCe0X+my3/SPVLKezDxbl18B0dlsBOXHUU4rNI8MPnxM+ zGxA== ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@oracle.com header.s=corp-2023-03-30 header.b="gbp7P1u/"; dkim=pass header.i=@oracle.onmicrosoft.com header.s=selector2-oracle-onmicrosoft-com header.b=xmwF3XPG; arc=pass (i=1 spf=pass spfdomain=oracle.com dkim=pass dkdomain=oracle.com dmarc=pass fromdomain=oracle.com); spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 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 out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id 9-20020ac85749000000b003f6bece648dsi657204qtx.659.2023.06.06.11.37.20; Tue, 06 Jun 2023 11:37:34 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@oracle.com header.s=corp-2023-03-30 header.b="gbp7P1u/"; dkim=pass header.i=@oracle.onmicrosoft.com header.s=selector2-oracle-onmicrosoft-com header.b=xmwF3XPG; arc=pass (i=1 spf=pass spfdomain=oracle.com dkim=pass dkdomain=oracle.com dmarc=pass fromdomain=oracle.com); spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 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 S234770AbjFFSN1 (ORCPT + 99 others); Tue, 6 Jun 2023 14:13:27 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:33878 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232042AbjFFSN0 (ORCPT ); Tue, 6 Jun 2023 14:13:26 -0400 Received: from mx0b-00069f02.pphosted.com (mx0b-00069f02.pphosted.com [205.220.177.32]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id B526DE43; Tue, 6 Jun 2023 11:13:25 -0700 (PDT) Received: from pps.filterd (m0246630.ppops.net [127.0.0.1]) by mx0b-00069f02.pphosted.com (8.17.1.19/8.17.1.19) with ESMTP id 356DDsP6022042; Tue, 6 Jun 2023 18:13:11 GMT DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=oracle.com; h=message-id : date : subject : to : cc : references : from : in-reply-to : content-type : content-transfer-encoding : mime-version; s=corp-2023-03-30; bh=rLbYlpzeM+w77x/KrQxj6kkLuK+nTPW9fbuOvhzi/bU=; b=gbp7P1u/57jmff5iRvD4Ac5O5jtGVGquxRw9qhvg7CUQs1LTFYkrB+IyWpAKnwwsm7Zj GAp+grP+hoYdS14zmBun/tpXulcmAX/mM/Vhg4BdnSV25Kc52oZAqN4mQCEhQHCipREJ PZ+M8bTller7PHKDkfO734vLaZlFjhOLGaiA/ypkBe3lipssNTgXxKd/nXRG4veENMHP PqcsbW5FwYGrxo+7zuu/Ubfngp9Vm80bMLFcqHcl3urarVnJeo3M6tJUJAXJyfY668WP aUjH45DnxGBLhLsz2OelsSIA0OS96EODGTExrsE3763sL0NM6jvYjlcnodX54Z96gvSk Gg== Received: from iadpaimrmta02.imrmtpd1.prodappiadaev1.oraclevcn.com (iadpaimrmta02.appoci.oracle.com [147.154.18.20]) by mx0b-00069f02.pphosted.com (PPS) with ESMTPS id 3qyx2n5y4j-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK); Tue, 06 Jun 2023 18:13:11 +0000 Received: from pps.filterd (iadpaimrmta02.imrmtpd1.prodappiadaev1.oraclevcn.com [127.0.0.1]) by iadpaimrmta02.imrmtpd1.prodappiadaev1.oraclevcn.com (8.17.1.19/8.17.1.19) with ESMTP id 356I0FTx010502; Tue, 6 Jun 2023 18:13:11 GMT Received: from nam02-bn1-obe.outbound.protection.outlook.com (mail-bn1nam02lp2045.outbound.protection.outlook.com [104.47.51.45]) by iadpaimrmta02.imrmtpd1.prodappiadaev1.oraclevcn.com (PPS) with ESMTPS id 3r0tqdaa15-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK); Tue, 06 Jun 2023 18:13:10 +0000 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=ifhtDYtv85y2jJBLFVgVQf+4xy2SIuPnjBXgV41zxKyqa20lcPxkuIU/OtXR2Efb1i8ooy7LoeHNZunGCTwtLS+aVd4GSuAXiP40qdDy0AQLCQ6yOPRPfIqxFQOUUiOyxCRQcUq6H8GfTobw2vxXyNCrgWCoP3MImM4W1MVGsuSLHQNxaH/DQTM8+ElNuWwdoKfFRMoPcZdujD41kmKQ8K7n/TKApVqn3483+g69ljgnBYipogVySLslS1ImWv9dX+UgdWTanAH5TgmG0SiPmNkpB3K2jodYZYSUmBqegJNisGP8iyIy16tSPyr2vfcKEdQMmU9W1t7YFc7/9dSV1Q== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector9901; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-AntiSpam-MessageData-ChunkCount:X-MS-Exchange-AntiSpam-MessageData-0:X-MS-Exchange-AntiSpam-MessageData-1; bh=rLbYlpzeM+w77x/KrQxj6kkLuK+nTPW9fbuOvhzi/bU=; b=K0QCLO+nHv5/5WoaB+5uhKQ9dt+ensjKOCf7iCNOKeNVuHwFdSkHQJmtcC50wHPTbndJI7YB+O4JPUjq1JceCSggYeX/iu0pCvfBs7QXhwRy68/CJE3A/I8pY6QFZtW3k/ihWLfZ03dsO4GeeHEPL5I4nS9nNSYpgY4Kcl1oGmxngKd09nds4Fh8Pq2y3f6qOMF8FtmRGuFxMRmc6RbFX425iaVLaNFsXLoePy9z8xyzED+EAogqkoxvjd28AZbVa/WkE6cQKfaVY82hRtyo8subXaaDSVmm3ZgTWSobqwuDbUbxmJaAqDYtOhUA8PhVel0ng/yVNT07VB3p/90Oeg== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=oracle.com; dmarc=pass action=none header.from=oracle.com; dkim=pass header.d=oracle.com; arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=oracle.onmicrosoft.com; s=selector2-oracle-onmicrosoft-com; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=rLbYlpzeM+w77x/KrQxj6kkLuK+nTPW9fbuOvhzi/bU=; b=xmwF3XPG1fflbtU3JE3pYsK0wZhC/vA9AgwUIiXv0jvlZZBDdB3EskrmeZX5bYM7TSTRVFJpJsi+FPRNJsNkJeQDQRzHEfTDZQr7BK1rk/6W2BhTWrK5vpWD699IDxkbPBCIK5V0bbuTdET8gX9tqbSbyThzouwSxh2inhBf5So= Received: from CH0PR10MB5113.namprd10.prod.outlook.com (2603:10b6:610:c9::8) by CY8PR10MB6753.namprd10.prod.outlook.com (2603:10b6:930:94::19) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.6455.32; Tue, 6 Jun 2023 18:13:09 +0000 Received: from CH0PR10MB5113.namprd10.prod.outlook.com ([fe80::d9c0:689a:147b:ced5]) by CH0PR10MB5113.namprd10.prod.outlook.com ([fe80::d9c0:689a:147b:ced5%4]) with mapi id 15.20.6455.030; Tue, 6 Jun 2023 18:13:08 +0000 Message-ID: Date: Tue, 6 Jun 2023 11:13:05 -0700 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:102.0) Gecko/20100101 Thunderbird/102.11.0 Subject: Re: [PATCH 6.3.y] mm/hugetlb: revert use of page_cache_next_miss() Content-Language: en-US To: Greg KH Cc: stable@vger.kernel.org, linux-kernel@vger.kernel.org, songmuchun@bytedance.com, mike.kravetz@oracle.com, Ackerley Tng References: <20230606172022.128441-1-sidhartha.kumar@oracle.com> <2023060650-overlying-skiing-191d@gregkh> From: Sidhartha Kumar In-Reply-To: <2023060650-overlying-skiing-191d@gregkh> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit X-ClientProxiedBy: BY3PR05CA0044.namprd05.prod.outlook.com (2603:10b6:a03:39b::19) To CH0PR10MB5113.namprd10.prod.outlook.com (2603:10b6:610:c9::8) MIME-Version: 1.0 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: CH0PR10MB5113:EE_|CY8PR10MB6753:EE_ X-MS-Office365-Filtering-Correlation-Id: 31f2a02a-2053-43c2-394b-08db66b9ae6c X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: oF+rO8AL3lTfcFx5DlvvKtP5MNhjqI78u5FmJVwzy8jelwlXq/DRRakPpMxNC4kT3SjjBwTtyQP3q6rxAhiFI0DMg9bcCgYwGZitUNsSZDv0Jn6mufu2XVOc6CZJAjyVuldm7G9itIkIQm2nTqaKITEb/zM+uSgvabCVc/3CTmwyvn7ew3e+qnTx3D+iaFoeQObO0EHW4KyvWiTxH3PXmWWn6TmzkOh4p0w9WNJsvzt4Q5sXBd+AppHMobjiY3w1RVRgRZ/A6UsuDZj8RPJdm6oMnf6vSWGNzu6ocJthoB3BxMy1OdLjQDVWg0g97E/MyBdEpr7ejcuoWabZuT08xr6XPgLVrB3ExQaEgYxj8NrbBMi6mLH91G2GkcjbKm8spX17YELb68w+emKih7G1dtAQpIJsMYJ5t6zNzFckV7BYC1YvZea0A1VDri/ou5gUWpAGecpD4wIrPC8B9oV/V1yui1vwhGy2qr8Jc2aw7DB/pXb0okdHdUW7maj3PAdru1M4nO9n3sNZzOXohyGow3psa/rp9iMIUNE1rwKGAaTCKjl8udJFuetiiP+asPXa56O1eF/+mXvPJgzS/k99XxQfZEaaaq8249ZY/bn2ji+MC6gLKvl++cnb/FYZWoZEuCJ8DBoqs3bamtJZ+VD9XQ== X-Forefront-Antispam-Report: CIP:255.255.255.255;CTRY:;LANG:en;SCL:1;SRV:;IPV:NLI;SFV:NSPM;H:CH0PR10MB5113.namprd10.prod.outlook.com;PTR:;CAT:NONE;SFS:(13230028)(39860400002)(136003)(346002)(366004)(376002)(396003)(451199021)(83380400001)(186003)(2906002)(2616005)(31696002)(86362001)(36756003)(38100700002)(966005)(6486002)(316002)(41300700001)(6666004)(6506007)(5660300002)(8676002)(8936002)(478600001)(66476007)(6916009)(66556008)(66946007)(31686004)(4326008)(53546011)(6512007)(26005)(44832011)(45980500001)(43740500002);DIR:OUT;SFP:1101; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: =?utf-8?B?OFB2SmpIYUpQTk16dFBZTlRpaTllMkN6amxTNFNoV001RHAwUEpLdk92L0Z2?= =?utf-8?B?bVB3MFprdHJaN0h4VmRPL2d6c1IxdkxtYWFzSXJsNUJmYVNYS0tLZlhzOThQ?= =?utf-8?B?NEsvV24zNnFhQXV2ZTJIZGtNWmRIaWIzRUQ5T3d6cGpja2dLOUE1b3YvMDJW?= =?utf-8?B?bXJrQUZsaWdNYW5EVTlDNHNnUXE3cUN1WHd4aWhBK2Q1TW83UURLSUM3RklY?= =?utf-8?B?ZlRZQTVEcHVCTEFHbHMzSDBzY1Fpc2s3QkY0K1JPSUdOMjhaTWlxc2NmL2tF?= =?utf-8?B?eS9yMHVDWWp5S1BwVlN2QW1SKzBJNHppcHVHS3M3RWpsUW9SZWlNazZIakRv?= =?utf-8?B?VTlUSDgwbTlQVjYvQ0g0VTB1N1hIcWVjMkF4SjRDVGNSeHQyRzIrRzhEK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==?= X-MS-Exchange-AntiSpam-ExternalHop-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-ExternalHop-MessageData-0: uhDFeniWCkxtNu9HSAkPxHytRO6p5bTIu1C4GYiFOF+G5nGZzqUbdku30yB0Vcga2chVx+hwXthf6aqcfISuAu/aJp1c6aO8DGunSxgrt8EtIaqepTWvQvVdiN338feGlVlZV7dOvj7R8b3V/jLy9dXbdWdiJtfXdxMI6kpLTaVOseRewMhy503utnXdzmn9bquN30OCqXH+Md4k+ele2bZxzBqbJ1QALStGntM1ECo0/r/qBX/M2t6EtR5rQJQ4f/CMZ+WrSmlVQF1QtMO/VTi8zFkHJA7uO7TpXFo6cKt//91URtEfFYTzbq+U1zGB/XsmsUZ7HA8VMycjwAtUK2Iz3ryVML4rtQeP7xphb6VTHzO/PiYqbmRxVFENCtednfYf41wArK8mghsgCtfz0xiX1AQdneWNcqJIbeczERGh4M4yElpjtfHQhhGMHew3SIxt6qoJMpmdH3gr0BWM345or+jBHHTmrtQCUYJcGV7bmEgb8M9Fb1d1eP7nKgm4ZT5UPbePUWpqNRkecF3v2/EAgfv2QcDf+/DlxEAHB3sTr4xLURa78w3JigdKQXrhMCCBGaW1LAFDx6KhJsn80XUtN4GOSN/K8xmm4XCD4RcENDVnpjlKZIwEe5mBChKEassljVRHNTyfKaGeS5swJAEMz8BxeqL+Sc2oXePzlTku42KHER4skqnxzVKo+0IZQzNyl/MqDMa5axl1N51RjmjzNFBSAJc8WHS0p9yjcEAhc5KMB59KQHe9lrE+1Oou+x4FNEjEdeEUrK2rlk6S9LfHVamoIOGziE6f0/1amdzp6xGcfXprOCAlLrkGTbt3VAWQome4NeGivXb8Vx+GIKQsqMKqtqjJhwKMklOBUx4= X-OriginatorOrg: oracle.com X-MS-Exchange-CrossTenant-Network-Message-Id: 31f2a02a-2053-43c2-394b-08db66b9ae6c X-MS-Exchange-CrossTenant-AuthSource: CH0PR10MB5113.namprd10.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 06 Jun 2023 18:13:08.5957 (UTC) X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-CrossTenant-Id: 4e2c6054-71cb-48f1-bd6c-3a9705aca71b X-MS-Exchange-CrossTenant-MailboxType: HOSTED X-MS-Exchange-CrossTenant-UserPrincipalName: nKJzFMEw9ho7n4jC8F475abnth7IHYya3E6WPA5RvfjxrY+nFaY37SjZshD2sVZkzW/6jpy4Qtg236slaQZZx8RK0Kb4g9i5JQ/RoTmBp9k= X-MS-Exchange-Transport-CrossTenantHeadersStamped: CY8PR10MB6753 X-Proofpoint-Virus-Version: vendor=baseguard engine=ICAP:2.0.254,Aquarius:18.0.957,Hydra:6.0.573,FMLib:17.11.176.26 definitions=2023-06-06_13,2023-06-06_02,2023-05-22_02 X-Proofpoint-Spam-Details: rule=notspam policy=default score=0 adultscore=0 malwarescore=0 bulkscore=0 suspectscore=0 mlxlogscore=999 spamscore=0 mlxscore=0 phishscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.12.0-2304280000 definitions=main-2306060156 X-Proofpoint-GUID: 8HDdJ0i-UhehNs9EirqiAu7IYersV76l X-Proofpoint-ORIG-GUID: 8HDdJ0i-UhehNs9EirqiAu7IYersV76l X-Spam-Status: No, score=-2.9 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,NICE_REPLY_A,RCVD_IN_DNSWL_LOW, RCVD_IN_MSPIKE_H5,RCVD_IN_MSPIKE_WL,SPF_HELO_NONE,SPF_NONE, T_SCC_BODY_TEXT_LINE autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 6/6/23 10:38 AM, Greg KH wrote: > On Tue, Jun 06, 2023 at 10:20:22AM -0700, Sidhartha Kumar wrote: >> As reported by Ackerley[1], the use of page_cache_next_miss() in >> hugetlbfs_fallocate() introduces a bug where a second fallocate() call to >> same offset fails with -EEXIST. Revert this change and go back to the >> previous method of using get from the page cache and then dropping the >> reference on success. >> >> hugetlbfs_pagecache_present() was also refactored to use >> page_cache_next_miss(), revert the usage there as well. >> >> User visible impacts include hugetlb fallocate incorrectly returning >> EEXIST if pages are already present in the file. In addition, hugetlb >> pages will not be included in core dumps if they need to be brought in via >> GUP. userfaultfd UFFDIO_COPY also uses this code and will not notice pages >> already present in the cache. It may try to allocate a new page and >> potentially return ENOMEM as opposed to EEXIST. >> >> Fixes: d0ce0e47b323 ("mm/hugetlb: convert hugetlb fault paths to use alloc_hugetlb_folio()") >> Cc: #v6.3 >> Reported-by: Ackerley Tng >> Signed-off-by: Sidhartha Kumar >> Reviewed-by: Mike Kravetz >> >> [1] https://lore.kernel.org/linux-mm/cover.1683069252.git.ackerleytng@google.com/ >> --- >> >> This revert is the safest way to fix 6.3. The upstream fix will either >> fix page_cache_next_miss() itself or use Ackerley's patch to introduce a >> new function to check if a page is present in the page cache. Both >> directions are currently under review so we can use this safe and simple >> fix for 6.3 > > Is there any specific reason why we don't just wait for the fix for > Linus's tree before applying this one, or applying the real fix instead? I missed Andrew's message stating he would prefer the real fix[1]. Sorry for the noise, Sidhartha Kumar [1] https://lore.kernel.org/lkml/20230603022209.GA114055@monkey/T/#mea6c8a015dbea5f9c2be88b9791996f4be6c2de8 > > thanks, > > greg k-h