Received: by 2002:a05:6a10:1a4d:0:0:0:0 with SMTP id nk13csp2302856pxb; Wed, 9 Feb 2022 15:38:00 -0800 (PST) X-Google-Smtp-Source: ABdhPJzaOdHKExeMfqmLJ9dWX/vRgopp1Sw97LUl30PfoN90C55bS0jnuChlX60CMJZOYbiGe3gv X-Received: by 2002:a62:848c:: with SMTP id k134mr4801971pfd.86.1644449880419; Wed, 09 Feb 2022 15:38:00 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1644449880; cv=pass; d=google.com; s=arc-20160816; b=J2KJoli6yUvodc/svtml034Pcc0ZatmH9k1wE9o5kkUojuUyoBdB89QaN6oYp9fHvn K2YrR+WktK6VT+b5roaPFI6LRGgsg7i1+M8kqj+hAZBM715y6EgaOr3ooSJIrXePhW7U sfQB4SGvYbKoLmhr/hEZa8iSEcq0mYY87teapq+jeZBdBJxM+wscr77i5aTfzaibMUSo didI5k9Hkg3LakcYSZtVge6J26ncoGoUZk8DZkFwKcAegE0KaUKCFkwPfw8fyGcbt6I1 FMeJQvbH9kSKKzCuw+RJOUwS0HucIMVSfnylgr2nIe2rADs6Jm93kTDrorW9X1EtSljU DCDg== 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=2wEZGqccgO46V5UuIaQxxSYUIrbHGm7xRYNusUCLIN0=; b=Bi6VufsvmIcZwF5k7o1zGVdkP3bTO0HmlUgqDYiO49xy8yCVNbdnJXULqA0isTcAjW Rd0zjoqwYFYuLoDxosRFhB5du3vGZMYUWRevSrARxXQtCUvWvWr/wU6GE3SCjQaS4jVl OAiOuuWqIh0txtu02bxFsyoXckpqU6g7YcmWZqZEgQSewsalqIH+/e7g1F6ygmzvlIIt DVrDv6hm0a5ncHRJ0RiieamJQ3tGSiu4rs47bRTOWBpd/Kx3ljLozn39myDt6jU6NNef 720qZQaeAt/PG7/7ISaO9kxiOb6J3mNoVrgCIhEGe4PS7IjjbgAkETP51+37fcYRq2Xa wbWw== ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@oracle.com header.s=corp-2021-07-09 header.b=rGXb7dY7; dkim=pass header.i=@oracle.onmicrosoft.com header.s=selector2-oracle-onmicrosoft-com header.b=q+mw+onA; arc=pass (i=1); spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:18 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 lindbergh.monkeyblade.net (lindbergh.monkeyblade.net. [2620:137:e000::1:18]) by mx.google.com with ESMTPS id m6si769377pfd.187.2022.02.09.15.38.00 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 09 Feb 2022 15:38:00 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:18 as permitted sender) client-ip=2620:137:e000::1:18; Authentication-Results: mx.google.com; dkim=pass header.i=@oracle.com header.s=corp-2021-07-09 header.b=rGXb7dY7; dkim=pass header.i=@oracle.onmicrosoft.com header.s=selector2-oracle-onmicrosoft-com header.b=q+mw+onA; arc=pass (i=1); spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=oracle.com Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id 89C8BE08B9B6; Wed, 9 Feb 2022 15:23:56 -0800 (PST) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S235215AbiBIWOx (ORCPT + 99 others); Wed, 9 Feb 2022 17:14:53 -0500 Received: from gmail-smtp-in.l.google.com ([23.128.96.19]:38904 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S235126AbiBIWOw (ORCPT ); Wed, 9 Feb 2022 17:14:52 -0500 Received: from mx0a-00069f02.pphosted.com (mx0a-00069f02.pphosted.com [205.220.165.32]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id CD99BE00FA61 for ; Wed, 9 Feb 2022 14:14:47 -0800 (PST) Received: from pps.filterd (m0246617.ppops.net [127.0.0.1]) by mx0b-00069f02.pphosted.com (8.16.1.2/8.16.1.2) with SMTP id 219HBlMv008856; Wed, 9 Feb 2022 18:59:28 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-2021-07-09; bh=2wEZGqccgO46V5UuIaQxxSYUIrbHGm7xRYNusUCLIN0=; b=rGXb7dY7maGD2mxpUInzSJ5B9mTdT1Buuqzh+JmSjDVEXlfMM5NliaDm4hO4dIgdVFyQ qCavJaxlE7NHakGZEE/PNzZemJ9ZKme5AzvW4Hd1jixFiaDHh5mey97gns6YzIiR1ATl oMObJcSOQcuXqlbxvbB7pZWUdDnofFZslZxiMQmduToEPt7GYvmMkl39xS9dcMCWBnTV ckXMxJHKWHxkcnJm9NZpvi0ILplcUlhvy/3Kt3F+4ebuEIaTBH+jmfhbgb/c+9kJhKs/ dGAIFVquqbzc7siJ3Jx+Wz+7bsu6G2VOcAfnqDBkUqzKEB1wfrFSoqw29WAHd+E6AUAC Cw== Received: from userp3020.oracle.com (userp3020.oracle.com [156.151.31.79]) by mx0b-00069f02.pphosted.com with ESMTP id 3e3fpgnp9g-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK); Wed, 09 Feb 2022 18:59:28 +0000 Received: from pps.filterd (userp3020.oracle.com [127.0.0.1]) by userp3020.oracle.com (8.16.1.2/8.16.1.2) with SMTP id 219IwO5G174656; Wed, 9 Feb 2022 18:59:27 GMT Received: from nam11-co1-obe.outbound.protection.outlook.com (mail-co1nam11lp2175.outbound.protection.outlook.com [104.47.56.175]) by userp3020.oracle.com with ESMTP id 3e1jptk33v-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK); Wed, 09 Feb 2022 18:59:27 +0000 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=PKFNDPwaRMLL+jxfJwxScjDXg6QMoC2rhM99tDH4Z+opsVm8IGQgge0N53hAm98xZ5MU5gZlfJKFxpzDw6g+wg3QokPrTcamc+Tuin0TabarB+HSelsw8NKW33sQJI5SGsCNsWrtCy0Y1K2d67LgLRJeSRn8NmByPHvRaPfh+zZyvq7u32qsWgEQFy3zkAvU07JPdrp04lCofBbdLLKrd4/m3yAQZ4InSSX3A3VYWJt+m5NVf18NkwPPu47ULJd641MzIY4dj1/KQrDb8baqmpOQrJMKveEuGOEDuURJ4CzcszZCCBdBvI2E9m91fr4zqQYWOgXfDe4STUwm/HHF8Q== 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=2wEZGqccgO46V5UuIaQxxSYUIrbHGm7xRYNusUCLIN0=; b=JAM6f2sltBCFG+1y2rIhqtMvhSSJHr7Jsw7gfwuoo9wleSDfiJWv3BhcjNJT/3lbv8WG8eNe+iuRCCiGrFRrXCO7lvu1+i4b7Tyzb8VVa4hkukSXSpKEGGYvLOtJG1bH2s1k7ccBZ2Wu4x5mU0BNbMJTsXq2jv43nEZl4T1P0PjLxhvke+jMhfdqH7JB8uSCYHCdok4mbm6IFslJmqKTGjvbQiRvIagFhGtWh7vMr0fwhCA4FUJpgE/dGjlkyfrA7t7loYOckZ5Bx0vrgru5NSV2LLPpdUzojG5ECu+X08cvZjYYwwvtIyz7zMzt+i0UICVA71u7LbaKDBwL7Iekmg== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=none; dmarc=none; dkim=none; 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=2wEZGqccgO46V5UuIaQxxSYUIrbHGm7xRYNusUCLIN0=; b=q+mw+onAFYwSCafO0spCuyg7I5yIChwRv5q843O+HVryjkmQb0Brju2LKWvX8tkZwU1hxB6gkHd/npnUxrSV42ZdzUSsNUf0VlBN4oHheoio8HWAX2deAMVW5LMzyf1EPOSp0POm4EzVs+8TtFVpGmF/vM0mb9rWJK+XhzZljFc= Received: from BY5PR10MB4196.namprd10.prod.outlook.com (2603:10b6:a03:20d::23) by BYAPR10MB2885.namprd10.prod.outlook.com (2603:10b6:a03:82::13) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.4951.18; Wed, 9 Feb 2022 18:59:23 +0000 Received: from BY5PR10MB4196.namprd10.prod.outlook.com ([fe80::11f6:860e:575a:e6f1]) by BY5PR10MB4196.namprd10.prod.outlook.com ([fe80::11f6:860e:575a:e6f1%5]) with mapi id 15.20.4951.021; Wed, 9 Feb 2022 18:59:23 +0000 Message-ID: Date: Wed, 9 Feb 2022 10:59:20 -0800 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:91.0) Gecko/20100101 Thunderbird/91.5.0 Subject: Re: [PATCH v4 4/5] mm: hugetlb: fix missing cache flush in hugetlb_mcopy_atomic_pte() Content-Language: en-US To: Muchun Song , akpm@linux-foundation.org, zi.yan@cs.rutgers.edu, kirill.shutemov@linux.intel.com, rientjes@google.com, lars.persson@axis.com, ziy@nvidia.com Cc: linux-mm@kvack.org, linux-kernel@vger.kernel.org, duanxiongchun@bytedance.com, fam.zheng@bytedance.com References: <20220208073617.70342-1-songmuchun@bytedance.com> <20220208073617.70342-5-songmuchun@bytedance.com> From: Mike Kravetz In-Reply-To: <20220208073617.70342-5-songmuchun@bytedance.com> Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit X-ClientProxiedBy: CO1PR15CA0106.namprd15.prod.outlook.com (2603:10b6:101:21::26) To BY5PR10MB4196.namprd10.prod.outlook.com (2603:10b6:a03:20d::23) MIME-Version: 1.0 X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-Correlation-Id: d40aaa40-6b74-4277-8a9f-08d9ebfe4941 X-MS-TrafficTypeDiagnostic: BYAPR10MB2885:EE_ X-Microsoft-Antispam-PRVS: X-MS-Oob-TLC-OOBClassifiers: OLM:4502; X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: rhTDrFok67JqXZcKel6YsPZTkVcPmMpzkUv4RynF77ZrTyzYLTtPQVUTVIOp+isfiQ2AR3qW0B002qGrJ4Xkj1nMIGXCf8snPAsYUDMsuXr7sW3UVn83mX+ERE5iHyuKhnqAl2yIW10pzyhplCU/CkizUgt5HOvACTzBaXPf959lLMdHdmBUhOZlUdzm9Oc41WVDZOlGSP6Rlu6nhPjoztwdXbYfGjhk2pYNZAdttxJeSi4f0KSkS0FMaayzy34bbIHfAn4nadsiauA+onsNhr7pbJJE+tpY9FbAFx5pFJv6Q0igKq0KGRZCmmmrKmFLyQlBiZp0okRJW9O83pgwSZvc5Mr0eldTnBh4nJwYjpdjPsk3WEQyTP4/QxVtL0Ii8BgMZyDqIrdFrzoKv2iu5gFIEcqapolCSgwdG4eMlLaDw08yujQgGP4I3xy2bSx4DAn4ra9iEHwyhFvCgGSIJY56t0ghdC4b2Mg9KxUBr3wjeR3g8Ly6KF07LoAwihs30pkV5WAF4mrInqu8EnRp3HqiKTtJUpStU+M1B1P0qJqFWmYTQxdpbmZj4Xj3eqANeIQgonL1vyG2UAoD3uVR6N+Z2PqbOcjzMiYNotZuvSqYvqdJuoUNPNb4IVTyWQQWR9umI6xCcdvWsH4Eyd7xJcdJq2ETGzXV04JU1oGLlUTAG2IuNpIxwuN5jyc26+huZchSgglSwGRxISyMXQDnWErLnJeIzomVBM/J+KU83dkdgQUqjg8JBVsYoOXJouzeF5219rAPNJO0hfopvojqLA== X-Forefront-Antispam-Report: CIP:255.255.255.255;CTRY:;LANG:en;SCL:1;SRV:;IPV:NLI;SFV:NSPM;H:BY5PR10MB4196.namprd10.prod.outlook.com;PTR:;CAT:NONE;SFS:(13230001)(366004)(44832011)(7416002)(4326008)(6486002)(66946007)(8936002)(86362001)(31696002)(83380400001)(316002)(8676002)(66556008)(4744005)(508600001)(5660300002)(66476007)(186003)(53546011)(26005)(38100700002)(31686004)(36756003)(38350700002)(2616005)(52116002)(6506007)(2906002)(6512007)(45980500001)(43740500002);DIR:OUT;SFP:1101; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: =?utf-8?B?WnJhSFpDN2pHMGhhYXVSNEpDbDh5NUFmUFdKM2R1Ty9ZWlUyZ2RicktBaUdr?= =?utf-8?B?bTdGUTRuRk1hYmpTMGRTWHp3alVkTlhxWjNORlNJTDZQZkloanJmWERrUVZn?= =?utf-8?B?RnRlR1lxdUdxUDFwek8xd3hiazMwTTgzNEQyNkIvTUtmM09YOTY3cGs5bVZj?= =?utf-8?B?bi8yVnBtbXA1T1p4aitLTzcvWE1YLzFvZWdrVWxTYStCT3lFclhZVy9uZXR6?= =?utf-8?B?am5QdHhUZWk3bFdoZXNsYUZ5TDJpcXkwOVlTRjN4UnM1bnk5TEVTMlYxcjRP?= =?utf-8?B?OHNKNm11NDBJZ3k3M2ZXd0Y3SmlZSU0wbnVjWUN3RUxQZk91LytYODJnejUy?= =?utf-8?B?TU9YSG9JQmtLZmtsY3daOUQ1WjBFTllYL3BGekRpSUx2NEFFOV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tg/OOIgWA=3D?= X-OriginatorOrg: oracle.com X-MS-Exchange-CrossTenant-Network-Message-Id: d40aaa40-6b74-4277-8a9f-08d9ebfe4941 X-MS-Exchange-CrossTenant-AuthSource: BY5PR10MB4196.namprd10.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 09 Feb 2022 18:59:23.5388 (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: xUilNjv1dUD5qQ0BVsUy1le4TpJiPXJRGfO9+oXSuvrTSkG96fqfQMGxkAIQep+cZL5jNXyBu36pQP/K7L+I1w== X-MS-Exchange-Transport-CrossTenantHeadersStamped: BYAPR10MB2885 X-Proofpoint-Virus-Version: vendor=nai engine=6300 definitions=10253 signatures=673431 X-Proofpoint-Spam-Details: rule=notspam policy=default score=0 mlxlogscore=999 mlxscore=0 bulkscore=0 malwarescore=0 suspectscore=0 phishscore=0 adultscore=0 spamscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.12.0-2201110000 definitions=main-2202090100 X-Proofpoint-GUID: D4lFvOQ9tOo2MREcfTtCUHnPSEGxYQUm X-Proofpoint-ORIG-GUID: D4lFvOQ9tOo2MREcfTtCUHnPSEGxYQUm X-Spam-Status: No, score=-2.0 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS, MAILING_LIST_MULTI,NICE_REPLY_A,RDNS_NONE,SPF_HELO_NONE, T_SCC_BODY_TEXT_LINE autolearn=no 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 2/7/22 23:36, Muchun Song wrote: > folio_copy() will copy the data from one page to the target page, then > the target page will be mapped to the user space address, which might > have an alias issue with the kernel address used to copy the data from > the page to. There are 2 ways to fix this issue. > > 1) insert flush_dcache_page() after folio_copy(). > 2) replace folio_copy() with copy_user_huge_page() which already > considers the cache maintenance. > > We chose 2) way to fix the issue since architectures can optimize this > situation. > > Fixes: 8cc5fcbb5be8 ("mm, hugetlb: fix racy resv_huge_pages underflow on UFFDIO_COPY") > Signed-off-by: Muchun Song > --- > mm/hugetlb.c | 3 ++- > 1 file changed, 2 insertions(+), 1 deletion(-) Thanks! This will also make backports easier. Reviewed-by: Mike Kravetz -- Mike Kravetz