Received: by 2002:ab2:1c04:0:b0:1f7:53ba:1ebe with SMTP id f4csp171738lqg; Fri, 26 Apr 2024 11:53:53 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCX06DMhg3CjZ5KMouWeGr395r9Bl9LlqyDsg78OMU6rnDDBk2ayfE0zGaBXbqRoHrN3t0wygFMRWj2X4xegc0dGZfxFZfXLb05xIr+4yA== X-Google-Smtp-Source: AGHT+IEgjuXglhwcApArM0HQABrspL1YR0jN+VZJRbrWyZ/uNEncNwMtFQzFs2tEngVc198r9a/U X-Received: by 2002:a05:6a00:2446:b0:6f0:c79f:cd7e with SMTP id d6-20020a056a00244600b006f0c79fcd7emr4698257pfj.0.1714157633603; Fri, 26 Apr 2024 11:53:53 -0700 (PDT) Return-Path: Received: from sy.mirrors.kernel.org (sy.mirrors.kernel.org. [147.75.48.161]) by mx.google.com with ESMTPS id a26-20020a62bd1a000000b006e5812351e7si15351647pff.211.2024.04.26.11.53.53 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 26 Apr 2024 11:53:53 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-160588-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.48.161 as permitted sender) client-ip=147.75.48.161; Authentication-Results: mx.google.com; dkim=pass header.i=@oracle.com header.s=corp-2023-11-20 header.b=deGd29Sx; dkim=pass header.i=@oracle.onmicrosoft.com header.s=selector2-oracle-onmicrosoft-com header.b=qGdyAsOG; arc=fail (signature failed); spf=pass (google.com: domain of linux-kernel+bounces-160588-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.48.161 as permitted sender) smtp.mailfrom="linux-kernel+bounces-160588-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=oracle.com Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by sy.mirrors.kernel.org (Postfix) with ESMTPS id EAA22B21EE5 for ; Fri, 26 Apr 2024 18:53:43 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 8C06CBE47; Fri, 26 Apr 2024 18:53:31 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=oracle.com header.i=@oracle.com header.b="deGd29Sx"; dkim=pass (1024-bit key) header.d=oracle.onmicrosoft.com header.i=@oracle.onmicrosoft.com header.b="qGdyAsOG" Received: from mx0a-00069f02.pphosted.com (mx0a-00069f02.pphosted.com [205.220.165.32]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 5553B14A96 for ; Fri, 26 Apr 2024 18:53:28 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=fail smtp.client-ip=205.220.165.32 ARC-Seal:i=2; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1714157610; cv=fail; b=eC2W7xmMW4gB/Sg2H6BIc0y5O5B6Y2FZeq7HXeSdY8q+2AfhP05f5Y1SPgCjDiALrikmjQn0zzmaBGa+GZoQAOodjd8rASMT29iDTK4SidXO7wRbVP8qaEygJYPxyyxxD4tPf651kazpYT2twCKc0pZWvTPCwIp9+CCcp9jtO6c= ARC-Message-Signature:i=2; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1714157610; c=relaxed/simple; bh=sX7PArRSfLUM5sXkcxs6yODVg9SvmfA2ZslCS/TTxmw=; h=Message-ID:Date:Subject:To:Cc:References:From:In-Reply-To: Content-Type:MIME-Version; b=parNFGqrx1+tHEqh9e/IA1v5MTSWE9FletilUzSQvSeVs1tQCHXZZH4I9TZre+zNkc7t0l8SCIz43H4vIqLecLA/YpNrtd0bKMHolWEoEuVfmh1K6WpJGSAB1RIsojV+P3CYR0PXQFzT4BieVjMTnyJfDeLUja+fJwLIcWbdrLU= ARC-Authentication-Results:i=2; smtp.subspace.kernel.org; dmarc=pass (p=quarantine dis=none) header.from=oracle.com; spf=pass smtp.mailfrom=oracle.com; dkim=pass (2048-bit key) header.d=oracle.com header.i=@oracle.com header.b=deGd29Sx; dkim=pass (1024-bit key) header.d=oracle.onmicrosoft.com header.i=@oracle.onmicrosoft.com header.b=qGdyAsOG; arc=fail smtp.client-ip=205.220.165.32 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=quarantine dis=none) header.from=oracle.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=oracle.com Received: from pps.filterd (m0246617.ppops.net [127.0.0.1]) by mx0b-00069f02.pphosted.com (8.17.1.19/8.17.1.19) with ESMTP id 43QIZpKc012453; Fri, 26 Apr 2024 18:53:08 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-11-20; bh=6jUc6kfV2O9qyWLwwBwroiLcGXTNoVj1egJft+xhsPM=; b=deGd29SxxXgNehoBUhfUyYJstPChFsod2dQBcJJq5TkoqBQj9AuFRy/SndwaXnXI7/0n 40Z/Ac7KvwThGSV6PsLWsZwteS9GzFLSqOz0p4Ozrf+o2DvmMD3s19Jf4NBtv4F+B6oW 19HTHC5qMmib7HMXsrBzF3wTslS75Uco01BqS3BGa54VIFT1vbn74tw2nMvBYHzXyL3W p9CgKjdn7qHTRRAgnAW+jkiRUUiKggQfdoOpGxlkuMp2kh773EVRmRRRy5nawxIIIPbd ZNCAoKoRwqo36cn6rppPEaDQHtcN5062CHa85eza7KxUoVbii0zRlzJhNID4e7M3mUPh zg== Received: from phxpaimrmta02.imrmtpd1.prodappphxaev1.oraclevcn.com (phxpaimrmta02.appoci.oracle.com [147.154.114.232]) by mx0b-00069f02.pphosted.com (PPS) with ESMTPS id 3xm68vpn0m-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK); Fri, 26 Apr 2024 18:53:08 +0000 Received: from pps.filterd (phxpaimrmta02.imrmtpd1.prodappphxaev1.oraclevcn.com [127.0.0.1]) by phxpaimrmta02.imrmtpd1.prodappphxaev1.oraclevcn.com (8.17.1.19/8.17.1.19) with ESMTP id 43QH4NB1035787; Fri, 26 Apr 2024 18:53:07 GMT Received: from nam04-dm6-obe.outbound.protection.outlook.com (mail-dm6nam04lp2040.outbound.protection.outlook.com [104.47.73.40]) by phxpaimrmta02.imrmtpd1.prodappphxaev1.oraclevcn.com (PPS) with ESMTPS id 3xm45c0ha1-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK); Fri, 26 Apr 2024 18:53:07 +0000 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=g4kePwLYurFbP87E3V524rhu/b2ew8ujGlRKIJiITyzEXhCXMzKWHuv+ZJMxOn/Q9vxbsrspmJb3OjUyvGIkpYLsFxMDp6T3Pej7tnRmEwyZXq+9kGqMJMRCeUuqqAmS6VaIMTjk7z/9+nv7OeYpwL3b8BScierbFdmNkFTB8n0XYP9OKD3qg4039h25KxUpcpDGy4h3UE/2xbZFUNFgbfvGAgCj1jTA6PFyeKTbtyGPDIHt5eHNstYdBQF90gC7WeuyzfqAiaT97vJwGuKVhsttoJFEHnua1uyMl9JdSTvj+BTW7gd6vB7X8GolfAlPxBXUQTUU6+UYHYD3e22E5A== 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=6jUc6kfV2O9qyWLwwBwroiLcGXTNoVj1egJft+xhsPM=; b=gJZz63oxUfvNoWBq4tMwHcHYgyDjGz2qP9QDJ8WcwdbvJNX5/iYAykzBT/5enTapbxZ3CVpHJL7GKJ+5YbY85ZZRokO0GSNZghIl7D/tsn/Tnc/W0OWW4LmzoXZBcldiynNboq45jxNT7Ukwc1ADWgBHqMc4P2FqZB99RF5Y2Zae2Etql19TCKY5Ug7MQhTML5cXuN8cLdY0cHbCG4WGmt4xkjUjhhAK7e+mKaiA1ZuHHgdOIxhWYzmj2yaEidrfqjA/wcDJ+JUKc8p5GQPlIWglGYJq76wKwop1WSRD3THlGlTBItc1/Ef/3NpF19w/eGvvz3qNAR5yNGKW84pcKA== 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=6jUc6kfV2O9qyWLwwBwroiLcGXTNoVj1egJft+xhsPM=; b=qGdyAsOGloQzgqCilO1ZW+A9WqPuq9/JfCJNUZVcUlXMifwmoNPMZir8CWpJ8N5nt6/EsgTqPix1P1EOnTl1i39zvoEY9H4MZOsk/f/iurLRngjIQ1xPJ0x4/cMwwr1/lmYThHsE/2BUUKSPAKPF27bLHcf1ah+CZDh2I1oWAhk= Received: from CH0PR10MB5113.namprd10.prod.outlook.com (2603:10b6:610:c9::8) by DS0PR10MB6869.namprd10.prod.outlook.com (2603:10b6:8:136::9) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.7519.22; Fri, 26 Apr 2024 18:53:04 +0000 Received: from CH0PR10MB5113.namprd10.prod.outlook.com ([fe80::eab6:6dcc:f05f:5cb2]) by CH0PR10MB5113.namprd10.prod.outlook.com ([fe80::eab6:6dcc:f05f:5cb2%4]) with mapi id 15.20.7519.030; Fri, 26 Apr 2024 18:53:04 +0000 Message-ID: Date: Fri, 26 Apr 2024 11:53:01 -0700 User-Agent: Mozilla Thunderbird Subject: Re: [PATCH] mm/memory-failure: remove shake_page() To: Matthew Wilcox Cc: linux-kernel@vger.kernel.org, linux-mm@kvack.org, akpm@linux-foundation.org, linmiaohe@huawei.com, jane.chu@oracle.com, nao.horiguchi@gmail.com, osalvador@suse.de References: <20240426171511.122887-1-sidhartha.kumar@oracle.com> Content-Language: en-US From: Sidhartha Kumar In-Reply-To: Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit X-ClientProxiedBy: BY5PR04CA0020.namprd04.prod.outlook.com (2603:10b6:a03:1d0::30) To CH0PR10MB5113.namprd10.prod.outlook.com (2603:10b6:610:c9::8) Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: CH0PR10MB5113:EE_|DS0PR10MB6869:EE_ X-MS-Office365-Filtering-Correlation-Id: fc22077a-9358-44a4-d410-08dc66221abd X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0;ARA:13230031|366007|376005|1800799015; X-Microsoft-Antispam-Message-Info: =?utf-8?B?ZEdjTWF6SnV6VFF4bjZOZUdJaDJqVkNFLzNicTUycXBpdnBaWVlZQ0FxRkNM?= =?utf-8?B?eTVQZ3hRVmhpWXI2czBZY2JUT1E2cmR3MWRJZEhBTS9OdUJjVXZiSUhlbFp6?= =?utf-8?B?RWlCTXpraFpoRnhtS2taSmVQQlNoNGgxak5GNnRZUUxyUXMyK0FhQkk5bzMx?= =?utf-8?B?UWd3a3p4cWJrQy9LWjdzdGxCcVNwVDdMekcwY2Q0VGpvWklZc0wvWjdhOUs5?= =?utf-8?B?UTZEQkNneFRqOXE1Tmd0OS9zbkNLOGFzZFBtTFRjaDdFSXU1d29GdHZSc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3Uk9jWUVSZU1nS1laTzRVTXU4VHhM?= =?utf-8?B?dDQxa25GYTJlcjVjN1JFNE42b0M0THBpUGNWVTZqaW9sSjdmdzkxTHZWZ2M0?= =?utf-8?B?M1JzeENENkVacXpITzBqTUIvNFYwZE5xK2ZRVW8vMEJqYVdZRkRTcTZpYUVP?= =?utf-8?B?VUFqc3c5ZFVuRHhHVGUyTXllY3huZFRYQ1VvZEJYSlE4Und3MU1OekxraTRJ?= =?utf-8?B?ck1VUXpDa2FIMDdEd21WTVdhRkVIVmNHL1FMbjduVE04SXlKN1EwMUFNNFRy?= =?utf-8?B?ZWxYMWROT1UrSTJOUTdKNS9RVi80bDBlVnhhN3dPajVCT21FeUVDdGdXVEVi?= =?utf-8?B?RWYvK2FkRzl2VUNmUHlmaDlhNXg3NG90NC81eGlFdEdIU09zVlZubDVjYUdu?= =?utf-8?B?WHFYSUpEQngxZzlsUjMwRHNuc2R5bkFsbTgzckFUTzk2UGR3d0FJelhKYjA4?= =?utf-8?B?MWdLM3dKTGhMT0JISk9CbWR3NzhwNGRmS09FZ3kyZ1ZaOHVVa3lIYUt5UWN6?= =?utf-8?B?d01XazI5S0p6cFNUN1E4Kzg0SWpJbXJSVWt2YW5abVRsaDdQQ3BnRGdnPT0=?= 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:(13230031)(366007)(376005)(1800799015);DIR:OUT;SFP:1101; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: =?utf-8?B?S093YTU5UU9nWGJZMzJCb2ZPallORVdkb1luWWpjOWdwMmxWb00rNjBVYk42?= =?utf-8?B?aDNoSXkvby9BQzJjV2sxZytDKy9sMlJuVGUzWGNZK3MxN0ZBUnoxMnZKMkc4?= =?utf-8?B?YmZoeEJISkdyaGt2bC90Qk80WWxqSVFW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VlRsTDRDeWwreTBrbUVBNCs1ODhQNmZXeXFUZHhkSCs2T205?= =?utf-8?B?K3NkZHVaSUswWTk0czRFUUpZNDVYREJ1TGFWWDk3eW9wSWpVTFJLQ0RUOVhz?= =?utf-8?B?RVRKeE5xWDF2RjNGZG55U1lrZ0NjK3I0MU1IZnN2dXRUdzNPOHh2djc2TWt2?= =?utf-8?B?RFV6ODFaSEFzclZxT21Ramowd3ZWRlZ1WVFHN2l6RUo0YndCMkhVcnpCbGJR?= =?utf-8?Q?Q+3Pr4IURo/1ItRzkBH7BeU=3D?= X-MS-Exchange-AntiSpam-ExternalHop-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-ExternalHop-MessageData-0: jGTsKYyTBnJIBehVKH1exudaYRqRCdwcYRmeW4EjCYi0FqMTDVmGRmfqx3TYvExUCp3gMyIi6S6z4ZEPBc179OLpuibgM7aGAp3W8iPFDFwX4ZtRyj7Y2T2XO1+uk1CvW6Ja2COwQecBC8naLjvHmh5tHPbvnz9uJMUyggCX4O1xPVk/cd7m9mAnlFkPNUCEsyrXvhzLvQ70PupgsM/vBH7mBmaVNa2VZPzq6V1sHewZBQh/+DYcuaDtazSKKIM5HjRQCJqQHnntBjGBA3uV0BexK1S47UrriI2noAuLuwlTjTQraoEjKq3MTwEwBxgSPVQx59t0qvZp9jOQ4diruoyTJtUMowgpulwhAuQeFGiZFTOo3BNWSq24b96MqLyBp8mweCHFFSsYRHzr7/WUCGdg0WyYlmPVAQdzIHwuZUoU/++dDcbV/JRzOVycjZ4l28809OBaOuQfFtj+ZNVV6JTc1uLzOr321Q2wAZwGcg3WmFDMdbZMz8ZtHLAYZsQdRPxKB1S99p8FX8Z2958aSnolw1cfbBWIH2FB3MkB61Zwfz+hmfD3FkTAdacdGb6IrBWQfjBL43MytrDY4PXjxkbvqj+4vmJ4Fz7BuQiqHT4= X-OriginatorOrg: oracle.com X-MS-Exchange-CrossTenant-Network-Message-Id: fc22077a-9358-44a4-d410-08dc66221abd X-MS-Exchange-CrossTenant-AuthSource: CH0PR10MB5113.namprd10.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 26 Apr 2024 18:53:04.5085 (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: 2tOCW0QvDnkY5gkdxdJLp5LclHyHK5n8Ss4ZdBzCLt9ZLr3VoagvxVD6iI24xZg7YL9twf27c+cDUu1roM3vpHkanFqKqp43g1+SMyODmEg= X-MS-Exchange-Transport-CrossTenantHeadersStamped: DS0PR10MB6869 X-Proofpoint-Virus-Version: vendor=baseguard engine=ICAP:2.0.293,Aquarius:18.0.1011,Hydra:6.0.650,FMLib:17.11.176.26 definitions=2024-04-26_16,2024-04-26_02,2023-05-22_02 X-Proofpoint-Spam-Details: rule=notspam policy=default score=0 phishscore=0 mlxlogscore=982 bulkscore=0 mlxscore=0 suspectscore=0 adultscore=0 malwarescore=0 spamscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.12.0-2404010000 definitions=main-2404260129 X-Proofpoint-GUID: qo9WyMshD4RD0p5JkdzNJXx_MP_i2Q5m X-Proofpoint-ORIG-GUID: qo9WyMshD4RD0p5JkdzNJXx_MP_i2Q5m On 4/26/24 11:27 AM, Matthew Wilcox wrote: > On Fri, Apr 26, 2024 at 10:57:31AM -0700, Sidhartha Kumar wrote: >> On 4/26/24 10:34 AM, Matthew Wilcox wrote: >>> On Fri, Apr 26, 2024 at 10:15:11AM -0700, Sidhartha Kumar wrote: >>>> Use a folio in get_any_page() to save 5 calls to compound head and >>>> convert the last user of shake_page() to shake_folio(). This allows us >>>> to remove the shake_page() definition. >>> >>> So I didn't do this before because I wasn't convinced it was safe. >>> We don't have a refcount on the folio, so the page might no longer >>> be part of this folio by the time we get the refcount on the folio. >>> >>> I'd really like to see some argumentation for why this is safe. >> >> If I moved down the folio = page_folio() line to after we verify >> __get_hwpoison_page() has returned 1, which indicates the reference count >> was successfully incremented via foliO_try_get(), that means the folio >> conversion would happen after we have a refcount. In the case we don't call >> __get_hwpoison_page(), that means the MF_COUNT_INCREASED flag is set. This >> means the page has existing users so that path would be safe as well. So I >> think this is safe after moving page_folio() after __get_hwpoison_page(). > > See if you can find a hole in this chain of reasoning ... > > memory_failure() > p = pfn_to_online_page(pfn); > res = try_memory_failure_hugetlb(pfn, flags, &hugetlb); > (not a hugetlb) > if (TestSetPageHWPoison(p)) { > (not already poisoned) > if (!(flags & MF_COUNT_INCREASED)) { > res = get_hwpoison_page(p, flags); > > get_hwpoison_page() > ret = get_any_page(p, flags); > > get_any_page() > folio = page_folio(page) That would be unsafe, the safe way would be if we moved page_folio() after the call to __get_hw_poison() in get_any_page() and there would still be one remaining user of shake_page() that we can't convert. A safe version of this patch would result in a removal of one use of PageHuge() and two uses of put_page(), would that be worth submitting? get_any_page() if(__get_hwpoison_page()) folio = page_folio() /* folio_try_get() returned 1, safe */ > > Because we don't have a reference on the folio at this point (how could > we?), the folio might be split, and now we have a pointer to a folio > which no longer contains the page (assuming we had a hwerror in what > was a tail page at this time).