Received: by 2002:ab2:6816:0:b0:1f9:5764:f03e with SMTP id t22csp2630396lqo; Mon, 20 May 2024 11:16:20 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCUWsfYK5wLYXGKXaB03G4tSGXqxvZCMcmx2UWGj5VELG7Ox0APdf1yJiXMyl4dy8+f/0wjnp0t3dcUI+7x2PCl+p18eWAKS9GZcddAQzA== X-Google-Smtp-Source: AGHT+IFbcXVjnWdjy0MjxuhsfPBkYal5YA0Pmud7TV8q9q4retGqNa/AOcpir99iX/b3cXZlJCsW X-Received: by 2002:a17:902:9007:b0:1ec:681c:30fa with SMTP id d9443c01a7336-1ef43e23407mr238645565ad.36.1716228979785; Mon, 20 May 2024 11:16:19 -0700 (PDT) Return-Path: Received: from sv.mirrors.kernel.org (sv.mirrors.kernel.org. [2604:1380:45e3:2400::1]) by mx.google.com with ESMTPS id 41be03b00d2f7-63d31db384bsi17889334a12.95.2024.05.20.11.16.19 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 20 May 2024 11:16:19 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-184054-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) client-ip=2604:1380:45e3:2400::1; Authentication-Results: mx.google.com; dkim=pass header.i=@oracle.com header.s=corp-2023-11-20 header.b=K18ukLBQ; dkim=pass header.i=@oracle.onmicrosoft.com header.s=selector2-oracle-onmicrosoft-com header.b=trnL5Bpl; arc=fail (signature failed); spf=pass (google.com: domain of linux-kernel+bounces-184054-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-184054-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 sv.mirrors.kernel.org (Postfix) with ESMTPS id 640D8281798 for ; Mon, 20 May 2024 18:16:19 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 721AB137744; Mon, 20 May 2024 18:16:13 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=oracle.com header.i=@oracle.com header.b="K18ukLBQ"; dkim=pass (1024-bit key) header.d=oracle.onmicrosoft.com header.i=@oracle.onmicrosoft.com header.b="trnL5Bpl" Received: from mx0b-00069f02.pphosted.com (mx0b-00069f02.pphosted.com [205.220.177.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 8072511184 for ; Mon, 20 May 2024 18:16:10 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=fail smtp.client-ip=205.220.177.32 ARC-Seal:i=2; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1716228972; cv=fail; b=K7q96z4NlpwSuy268LVmDGUI7Dpe778xn4DkFVkt4KK+7bV52u0MpCeOgUp/0j3bKRV17kcAs4dBW8YXNvhVKESO0h7Sib8vbXzDkJ+MEocWELD/vawWFVvzoT+XOJJhcVaWWK799Y5bF/cE8GeJPHqZ9+Y33qLQlymPESe/VCE= ARC-Message-Signature:i=2; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1716228972; c=relaxed/simple; bh=rQTOzBZxFvWqMLPxnvwKqmjLqnJgZifPYqJLN/jtNi4=; h=Message-ID:Date:Subject:To:References:From:In-Reply-To: Content-Type:MIME-Version; b=lPHQAbApymZ/zFiBD98FGBQf/UF8PyCuum/Ap7qVxYf+nOoVLK3IIh5sT/vcIOPCNfaNW5Gp2f1G6HPhmDkf6RN+9vM8pMhs1kr9n6ZyEIj2kDrgI6137dmvN6xtpIk9lJEFK6QPjwGTiW6hMgTlSHtSmrFqQ3jn2mU6r9l7gvE= 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=K18ukLBQ; dkim=pass (1024-bit key) header.d=oracle.onmicrosoft.com header.i=@oracle.onmicrosoft.com header.b=trnL5Bpl; arc=fail smtp.client-ip=205.220.177.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 (m0246631.ppops.net [127.0.0.1]) by mx0b-00069f02.pphosted.com (8.17.1.19/8.17.1.19) with ESMTP id 44KH4bPx013169; Mon, 20 May 2024 18:15:57 GMT DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=oracle.com; h=message-id : date : subject : to : references : from : in-reply-to : content-type : content-transfer-encoding : mime-version; s=corp-2023-11-20; bh=bPjX9IjJudyJmUBwZ+9licsLwN0xUHkXUBjm9pfGMCE=; b=K18ukLBQk/gUzjkyA27PEvMkpobrCjBmu3Rsfc/RsFt+CNWL/f5Wm8ItAKwcnU8xCNtL kiVAdNfAXeHIJI+Mh6lHUYsmekGNeKUs9b/9IHc+ycDhS7e3/60oQH6qVOCCEzM4JpY+ bt8LvII+POU271j9RDBWqIBfIFHn/8sPijvJlfQqialG5AELCRBSi7C6N0+HWvcG+1bo GbjRCyQauniNJwqkjwx1l8kIo6adf8o2UnxeiuPSXhpzhPXT5fE5nfBq7ljd3yzRPOlA wmh79Zec6rquTTjgnoIq8GVKuufODCxqA3Qsm6vTMps2ZiCwB1ZSMoLguVVjmUj7OmWH OQ== Received: from phxpaimrmta03.imrmtpd1.prodappphxaev1.oraclevcn.com (phxpaimrmta03.appoci.oracle.com [138.1.37.129]) by mx0b-00069f02.pphosted.com (PPS) with ESMTPS id 3y6k463bp0-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK); Mon, 20 May 2024 18:15:57 +0000 Received: from pps.filterd (phxpaimrmta03.imrmtpd1.prodappphxaev1.oraclevcn.com [127.0.0.1]) by phxpaimrmta03.imrmtpd1.prodappphxaev1.oraclevcn.com (8.17.1.19/8.17.1.19) with ESMTP id 44KHJq8C004962; Mon, 20 May 2024 18:15:56 GMT Received: from nam02-bn1-obe.outbound.protection.outlook.com (mail-bn1nam02lp2040.outbound.protection.outlook.com [104.47.51.40]) by phxpaimrmta03.imrmtpd1.prodappphxaev1.oraclevcn.com (PPS) with ESMTPS id 3y6js6rw4f-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK); Mon, 20 May 2024 18:15:56 +0000 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=HFOVxbiBZc9BLjVqS01n9Tq31vo0Ezl4NnivS2LVoEwvI7oBTWYU3qCTQuPzO5OmcXiw+aM73zg/CGg2x0HKqTsw9wCoc7bHmNZ/b6j1f1ze0lBqrPYqXzUbvGnQ219Ors9Fri791NZWSZhbeNf9YbTpmVr9A25ocvx29d1RSxEtL/l9sB8e1MzD6b0kyYc9edrS7xWq9V2gnK7I+aXwVTWaqbq16jMic9JK4JaCcdikBhzk3FIOChavdVXzvWjWB5TzntHDmZ5okiiUWaWXn9w0KsoTmA0ag0FjLCpdZP7bVUqdWu/DKBNejcNW89k4bVcgiGv18QdWe9NETGX2rw== 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=bPjX9IjJudyJmUBwZ+9licsLwN0xUHkXUBjm9pfGMCE=; b=FMFCvaFVBn3Ceb+/VHIJnntSzRsJ0EwGw7yTOlciBiU3a8Yv8L+37KNdd8p5xaytMnG/ZKqtERVpyrnrbaVyAcpIqHdq5gz9NA6kU6y9vRQNRWjpZ55iObSdslNWGebzUtb2D5vvkRzRPK6O34ONPDE8LekGEhd11LwzRHUEnPNMJEvWFgJ21F40sWoWWSGA7Vw1TIW88kPLGicYGa7TYExH6y/USVNgWoTIz4VTw0r/b89YYHwYEA6SErqzvoT9TvhaFDdiA7XweaOCFzwXE4VliEfRmqiJjv+IvH67PBJHtXYKVw6Mab6bWtb25/hG5mo2kDeea3Ld4dAbTi4Wng== 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=bPjX9IjJudyJmUBwZ+9licsLwN0xUHkXUBjm9pfGMCE=; b=trnL5BplB+Y2zbjMHlLscD23yDPtuBRWNndCcPyvXWq5UJOOT+JD/aFby/t82zGJAxFm3Y5UEXj63RFQypZMcXVzL5UZEXEbhF8scalk+JnyvblbNaD/kd2oBEJtLHzEYGRl/OnBBz/YMmYU8JeHyfQfi6HL6D35T1qzAjHWtM8= Received: from SJ0PR10MB4429.namprd10.prod.outlook.com (2603:10b6:a03:2d1::14) by DM4PR10MB6182.namprd10.prod.outlook.com (2603:10b6:8:89::14) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.7587.35; Mon, 20 May 2024 18:15:53 +0000 Received: from SJ0PR10MB4429.namprd10.prod.outlook.com ([fe80::3db0:ec21:1957:f1b3]) by SJ0PR10MB4429.namprd10.prod.outlook.com ([fe80::3db0:ec21:1957:f1b3%6]) with mapi id 15.20.7587.030; Mon, 20 May 2024 18:15:53 +0000 Message-ID: <632479f9-1abd-4c92-86e4-92d08a9b5b2a@oracle.com> Date: Mon, 20 May 2024 11:15:48 -0700 User-Agent: Mozilla Thunderbird Subject: Re: [PATCH v2 4/5] mm/memory-failure: move hwpoison_filter() higher up To: Miaohe Lin , nao.horiguchi@gmail.com, akpm@linux-foundation.org, osalvador@suse.de, linux-mm@kvack.org, linux-kernel@vger.kernel.org References: <20240510062602.901510-1-jane.chu@oracle.com> <20240510062602.901510-5-jane.chu@oracle.com> <329c33ce-3fb8-436c-2ceb-e6520f0a973a@huawei.com> Content-Language: en-US From: Jane Chu In-Reply-To: <329c33ce-3fb8-436c-2ceb-e6520f0a973a@huawei.com> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 8bit X-ClientProxiedBy: BL0PR0102CA0037.prod.exchangelabs.com (2603:10b6:208:25::14) To SJ0PR10MB4429.namprd10.prod.outlook.com (2603:10b6:a03:2d1::14) 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: SJ0PR10MB4429:EE_|DM4PR10MB6182:EE_ X-MS-Office365-Filtering-Correlation-Id: 3a2f755a-700b-48c8-fd99-08dc78f8e2b6 X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0;ARA:13230031|1800799015|376005|366007; X-Microsoft-Antispam-Message-Info: =?utf-8?B?RktSUC9QZDhZbXplemJ5d1BnNmtJT0pTc2p4YkE1ZG4wQVFFcnYzNktkVUk5?= =?utf-8?B?SE1sank3WkMrbWRWTHNVNkphTzYySllpK3hGTCtBSVNoMzB0TGM1NDdoUnA1?= =?utf-8?B?aW9LZ1g0WFI2eVc0RXlDQ3plRFpRckVsSUtVZ2R1QWlob1JlQ1pvcU13MTU2?= =?utf-8?B?Vk9qU3A3dU5SRHZMRU51R1pTR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utf-8?B?UVNMZmdnb0JZaCt2Sm5JR2x2QndGckZycy9Nb0hZcEJpM1p4Y1FNQ3MzejVw?= =?utf-8?B?ZUU4VS8vR1NrQkJYbE5WOUVuYjJoWHdHS1ljeXpvTExJNXpzSG5OTklqbW5r?= =?utf-8?B?T0tMek12UUNJUU1RUUp1K0FLWTcvRFo0WnV2Y3V0NHBPcmRtS3FIMFYzUC94?= =?utf-8?B?OW8zM1g5SkROeE9BUytyMzhFbCtpMk1FSkxYQUQzQ3ZqWWtKeENaS1NhTlE5?= =?utf-8?B?YlJVV0pxMWZUdE8zTXZhVFg0eEN6cG5PWjZxa1NnT2pvaXFoU1Z2Rzk2aWVJ?= =?utf-8?B?dHNoemQ4RnlIQkZWZlV4VE9USXhDVjBjbmZJV2FYV1NGUURCNllMM2pyTjdD?= =?utf-8?B?eGhpWkRzNGVFMHdua1dYT2tJNGhFNUxoRDhrTGlvMW52cjB4SittRHJOK1F0?= =?utf-8?B?NXl1b1M2MnBPRm1DMjlDTlhIbFpvZy9yTHQ5dVhjRWx6U0xPcU5pUjZRWk9I?= =?utf-8?B?Ujd2TW5VMnh3Qi9YUVh5L2hXdTExK3BxQjBYdk9Ed2IrQUh2alJTcVpNV2Jo?= =?utf-8?B?YlZjMS9VQVpudkdRaHo5c3BUcXIvNEJIRFcxT1V0Y2p1dVMzdHVlSXdyS2F6?= =?utf-8?B?TmNhTHZ0ZWVna05BQ0NWU2ZpaGs2dEFUNkRmaUV0dnBvcWxxT1M1endBPT0=?= X-Forefront-Antispam-Report: CIP:255.255.255.255;CTRY:;LANG:en;SCL:1;SRV:;IPV:NLI;SFV:NSPM;H:SJ0PR10MB4429.namprd10.prod.outlook.com;PTR:;CAT:NONE;SFS:(13230031)(1800799015)(376005)(366007);DIR:OUT;SFP:1101; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: =?utf-8?B?OEg2ZGwrckFaNmZLNFB1d0JFV0ZWb2pyYWNoZW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3F9A= X-OriginatorOrg: oracle.com X-MS-Exchange-CrossTenant-Network-Message-Id: 3a2f755a-700b-48c8-fd99-08dc78f8e2b6 X-MS-Exchange-CrossTenant-AuthSource: SJ0PR10MB4429.namprd10.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 20 May 2024 18:15:53.5769 (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: /+/zs2XtEPGShhI6HhI7HrNzjnKuXN2Il9NSC6kSvyevyXcC9+kkeGogidilsdRjrrK0A5wXhiZ7w7TMzNZarQ== X-MS-Exchange-Transport-CrossTenantHeadersStamped: DM4PR10MB6182 X-Proofpoint-Virus-Version: vendor=baseguard engine=ICAP:2.0.293,Aquarius:18.0.1039,Hydra:6.0.650,FMLib:17.12.28.16 definitions=2024-05-20_09,2024-05-17_03,2024-05-17_01 X-Proofpoint-Spam-Details: rule=notspam policy=default score=0 malwarescore=0 phishscore=0 suspectscore=0 mlxscore=0 adultscore=0 mlxlogscore=999 spamscore=0 bulkscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.12.0-2405010000 definitions=main-2405200145 X-Proofpoint-ORIG-GUID: 7bNCTu2iCBgayjgq6-64XlTqDofveJ-1 X-Proofpoint-GUID: 7bNCTu2iCBgayjgq6-64XlTqDofveJ-1 On 5/11/2024 1:29 AM, Miaohe Lin wrote: > On 2024/5/10 14:26, Jane Chu wrote: >> Move hwpoison_filter() higher up as there is no need to spend a lot >> cycles only to find out later that the page is supposed to be skipped >> for hwpoison handling. >> >> Signed-off-by: Jane Chu >> --- >> mm/memory-failure.c | 15 +++++++-------- >> 1 file changed, 7 insertions(+), 8 deletions(-) >> >> diff --git a/mm/memory-failure.c b/mm/memory-failure.c >> index 62133c10fb51..2fa884d8b5a3 100644 >> --- a/mm/memory-failure.c >> +++ b/mm/memory-failure.c >> @@ -2236,6 +2236,13 @@ int memory_failure(unsigned long pfn, int flags) >> goto unlock_mutex; >> } >> >> + if (hwpoison_filter(p)) { >> + if (flags & MF_COUNT_INCREASED) >> + put_page(p); >> + res = -EOPNOTSUPP; >> + goto unlock_mutex; >> + } > It might not be a good idea to do hwpoison_filter() here. We don't hold extra page refcnt > yet, so the page state will be really unstable. Or am I miss something? I agree with you. It  looks like hwpoison_filter_flags() in particular needs a stable page in order to retrieve a wholesome KPF_ flags set that at any time, although the flags could change immediately afterwards, they won't be torn flags. For that, it looks like the folio should be locked as well. thanks! -jane > Thanks. > .