Received: by 2002:a05:6358:53a8:b0:117:f937:c515 with SMTP id z40csp5819855rwe; Tue, 18 Apr 2023 12:02:28 -0700 (PDT) X-Google-Smtp-Source: AKy350a8ncntdny84DuGC4ynC9M5Kmd4V4X/KmKbQ+VHdM8nhbSTmolxDebMeqC1saQHeXDlJ0XS X-Received: by 2002:a17:90b:3141:b0:247:3e32:ed5b with SMTP id ip1-20020a17090b314100b002473e32ed5bmr546179pjb.28.1681844548372; Tue, 18 Apr 2023 12:02:28 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1681844548; cv=pass; d=google.com; s=arc-20160816; b=oclRlyF2WDAoF5edCsa7Dt54mbz8h50nBo/iQkqwLcGqmvtSmvu/Dxc+mQuPG+nLK5 rzD0W06ahP6k4jFr8qRbZjdqe7FEXCb1y4c9+dDurJCH7WBhei1RvazxG0BTgAahCOcA /WwAf2gw8eseKfoY6SeZ4tI24h9LuikdGGg0yfQ3GCiucJsU3pNfStZw6yQ/+W52Tp19 4PqtidJFtLnwiIVmntQjreTQR+RXd77VM7noaEU3u2G0xMh+oqZH5Gu9cwMo3+ZrZqcW syHjRVchDeTrkuKUKFF/502Ihnq/hKuxhoUoRbiRi/g2p5H8GogdWh+kPhs0vr93xzfn TqIg== 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:references:to:from:content-language:subject:user-agent :date:message-id:dkim-signature:dkim-signature; bh=jNFY104MjzIZPzqlHigvrVcLMLCmAtHWmHuWCMtQFGY=; b=IIHysmzbvofc9Q/0OV65P6LdVtFJsUzggDLlSn4DqcLd8P3/AdFlTA1XEK2zaKeoTu 5GSxRQi7OVUNuz+xu+PXpUGviK1wvRp1UA3uMjGi3OIbtslX60PGtH3daIgVFNbF2Wf0 FZ0jwn9x56Jf/2gMqJ78WkRac8Q2d4xH75eOaJADTRJZ2ZKLKOvnpLOvL9wIVoYibnQ/ 8kSp1MyykCO6GSJSlZC4Xo82A8M0mMXlr83JNxZXBi1eCgqaGweDvDXBjhvXMvxnqx2m OcyainiJrUBK18U4VMjXAYRqZ+oScX1lPcQriqF1fgo9t3GTzBX8tV1GB0bhEmS22oaj LkYQ== ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@oracle.com header.s=corp-2023-03-30 header.b=qBNSSx6o; dkim=pass header.i=@oracle.onmicrosoft.com header.s=selector2-oracle-onmicrosoft-com header.b=BxHgxkQy; 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 u11-20020a6540cb000000b00513f070aa97si14162184pgp.832.2023.04.18.12.02.08; Tue, 18 Apr 2023 12:02:28 -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=qBNSSx6o; dkim=pass header.i=@oracle.onmicrosoft.com header.s=selector2-oracle-onmicrosoft-com header.b=BxHgxkQy; 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 S232660AbjDRS4P (ORCPT + 99 others); Tue, 18 Apr 2023 14:56:15 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:42502 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229564AbjDRS4N (ORCPT ); Tue, 18 Apr 2023 14:56:13 -0400 Received: from mx0b-00069f02.pphosted.com (mx0b-00069f02.pphosted.com [205.220.177.32]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 8109C6E8E; Tue, 18 Apr 2023 11:56:12 -0700 (PDT) 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 33IEwv1u016678; Tue, 18 Apr 2023 18:55:47 GMT DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=oracle.com; h=message-id : date : subject : from : to : references : in-reply-to : content-type : content-transfer-encoding : mime-version; s=corp-2023-03-30; bh=jNFY104MjzIZPzqlHigvrVcLMLCmAtHWmHuWCMtQFGY=; b=qBNSSx6oUXQdgozl6WpJFcCsrCYp6Zy8t6h7c1f87CLoPbZdLDUh27Ub7CpZECKd0+Ie kj7J/3l9YbWTcKEBbQVaE0f87yH7EkWUOwlnaiHoNA9NQq6JLLp9WeGymf2ifjvdiMY8 XGFpG0T5KYIc9BRvJzyBbXl7XQHs7/Fe2iwDJM2uNbflaXB74qECJP63N3aAjxdctypT 9V8E3ZRC2pDGlvgi3TthZR01M0cIUNYYdTtb93Up/lP2lPGMOLfYovcILYCmvUNwcK+D uWe4KcPH37lrnXAl86G/Oep+ukcRrmpZq4D7ohxu4bI6wBi03IRbxz+9iZxqSi2kE5f5 5g== Received: from iadpaimrmta02.imrmtpd1.prodappiadaev1.oraclevcn.com (iadpaimrmta02.appoci.oracle.com [147.154.18.20]) by mx0b-00069f02.pphosted.com (PPS) with ESMTPS id 3pyjq46hm0-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK); Tue, 18 Apr 2023 18:55:46 +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 33IIrm7N015628; Tue, 18 Apr 2023 18:55:46 GMT Received: from nam11-bn8-obe.outbound.protection.outlook.com (mail-bn8nam11lp2169.outbound.protection.outlook.com [104.47.58.169]) by iadpaimrmta02.imrmtpd1.prodappiadaev1.oraclevcn.com (PPS) with ESMTPS id 3pyjcbya5d-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK); Tue, 18 Apr 2023 18:55:46 +0000 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=XluRJXtdV6Xts8enY3qTHeEpKC7Rqeqq64WYpi6n/T/Pkal5bzWjfJQ45UHR+dOPUXFJT6UWE8RTxnSkJ2Ge0gMsUh1JN2WuvlqvRu8x13hQ0/AxgA+RVHissD+XyUAdtWtE+Sp8jHzdAu257dtrWWzFrOZtY08ybFS4GDc53zoTAK8E38RmmmJz1YMyq/8Fx9fjnQiwTq77/bvj+hrma6U5pgcPFZVA8ylsd/d+7V9tPP98wE8I8dVQR9V+9YSa3Sn2QrOQqJTuKQHm7eZ5URtKSWWT6sslU5kVvuPY802Jvz9mlkfmGnCWeIEmZQPifcW77SiCnVLxWZ2xryB76w== 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=jNFY104MjzIZPzqlHigvrVcLMLCmAtHWmHuWCMtQFGY=; b=NbaUMfTEEEKpFFjq6ZlbmRg/tYOEUcSMtWokl0vCNdLC+O8z9w4WGn1qhjBNfW++Brbqv1BdaFWdHQlCVgItvd4LXYjY/TRYjCXFdGo8en9sqjRRyLov2rbc2ySWK2msGWY7X8NFbTWJLQsR5JUoUt8QAhXouoJFdaQWF5n+mt5M/DHOQGVmX2wdwXDpurF26BY+Rwwqc9gSnAnGYLZrGz9bF9g6vIXXBJjbZn9fkjFKCiqQ5qaIbNgRiRWOR/E5XM1LwDEj6MzlquXy7LOqXb5sWWawPeSe9C21a0PdgARe6G/avt7dnW9RaZLPn6uMdrBrprnQqQ8aOZa9I1Bw+A== 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=jNFY104MjzIZPzqlHigvrVcLMLCmAtHWmHuWCMtQFGY=; b=BxHgxkQyBxQSjLFmoQR/faM2R/SJN8EGEAO1bUVscQZTZvB17gfJb13/p5vKkZ/f5HI2VUTeisv1oM6DkAi30jDhjjVB7T+WBh5PaxL+YuldfwCsEWaU9ZgfhkpWTihxWRJ6+OK+nn1NzcAgQhrLrnKS5jYRRVHRvf0K0kIU4ww= Received: from SJ0PR10MB4429.namprd10.prod.outlook.com (2603:10b6:a03:2d1::14) by IA1PR10MB6146.namprd10.prod.outlook.com (2603:10b6:208:3aa::11) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.6298.45; Tue, 18 Apr 2023 18:55:44 +0000 Received: from SJ0PR10MB4429.namprd10.prod.outlook.com ([fe80::256d:125b:8053:eeb9]) by SJ0PR10MB4429.namprd10.prod.outlook.com ([fe80::256d:125b:8053:eeb9%5]) with mapi id 15.20.6298.045; Tue, 18 Apr 2023 18:55:44 +0000 Message-ID: Date: Tue, 18 Apr 2023 11:55:40 -0700 User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:102.0) Gecko/20100101 Thunderbird/102.9.1 Subject: Re: [PATCH v2] dax: enable dax fault handler to report VM_FAULT_HWPOISON Content-Language: en-US From: Jane Chu To: dan.j.williams@intel.com, vishal.l.verma@intel.com, dave.jiang@intel.com, ira.weiny@intel.com, willy@infradead.org, viro@zeniv.linux.org.uk, brauner@kernel.org, nvdimm@lists.linux.dev, linux-kernel@vger.kernel.org, linux-fsdevel@vger.kernel.org References: <20230406230127.716716-1-jane.chu@oracle.com> In-Reply-To: <20230406230127.716716-1-jane.chu@oracle.com> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit X-ClientProxiedBy: SA9PR11CA0002.namprd11.prod.outlook.com (2603:10b6:806:6e::7) To SJ0PR10MB4429.namprd10.prod.outlook.com (2603:10b6:a03:2d1::14) MIME-Version: 1.0 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: SJ0PR10MB4429:EE_|IA1PR10MB6146:EE_ X-MS-Office365-Filtering-Correlation-Id: e216d809-d3b7-4062-27cc-08db403e8356 X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: AKNa0hJGlP0jhdXf25PzKiH/SfvGMFYPwcC6iv3/doKcacv8LA0wv1kO51lFVf09EygPDwap9TNeZ6HMvqryX8hFZ5YqxaQsJAagpKNlHMKi+tMzXIZGcGszHL+fUtiq+d4PMLMrMyEqtoM1KIzIORFSLWGYYke0kQTnmUV8uRDp4hQslzGTLrPmeqHgUUbtDjgH10xT2K+GplTCtWPhJ7fBHGy6oWaSB6gbpPulnKh8CtPEV0rsGxE8n+/9OL8ghUi9GBrcWGacuAmDzXd2WeG9BuOpQj7jWxezqbF7Y3gg56MpntQHxD/OwGterdXaRMfkqW8tCRcVqubUsTzf0kWgtqQvw+g0o91h0JeOf2GbDkAw1Hn4AdN01jIm5Ss+g9Wgj8fwNT1XHIEYK5l3/rkG0p25+4cHCVuWxa95iZnd4ztlOGyDP/7M8gl4OryCjzDODQRd5/eLN1gUtFtoCO0CWSda3+aXajmc6wjOSyh8/aq9uFNH09qCp9KnYIUKp+htjqoiQOseE7wf2LOBDglzPXSHr+kG0WYUz3Y6Td1HF9GOsBcUvEUoDMLQsw6z4XzBaz55XqlbXtKuhN05xMRgwfdA/SbOJ9Uvc0nO+13NBO/NxFZAqEujsjVfLESQ+qfhyI7GVNKHvnsJYSSvhlDUOpGDYuheBNO8Vd+jo94= 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:(13230028)(376002)(39860400002)(366004)(136003)(396003)(346002)(451199021)(2616005)(31686004)(38100700002)(6486002)(6666004)(83380400001)(186003)(6506007)(26005)(53546011)(6512007)(66556008)(478600001)(44832011)(7416002)(66946007)(66476007)(41300700001)(921005)(316002)(5660300002)(36756003)(86362001)(2906002)(31696002)(8676002)(8936002)(43740500002)(45980500001);DIR:OUT;SFP:1101; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: =?utf-8?B?dW8zM0ZCcEZFV3Z5c1JhWlpPdWhiWVdCd25zMitPZk1kNnBFeFFOL2FnU1ky?= =?utf-8?B?ajltVG5sN3c0WGFDU294dklLempaeVU4ZW5rdWtISHhoSDJkZEJnaVE3VUxU?= =?utf-8?B?QVM2WHVaLzJKSzJRWjhTcE9FeFh5MVV3cmxOdkhzMG9NaDFrVk1PUXR4KzVU?= =?utf-8?B?Uk5sZ2k5RkYvVVl5OHUrcDVPYzArQk5lTXV3eCt0cytEN1dPdHR3YVNpa0Ny?= =?utf-8?B?cDYyb1kzTEhNMFlwZHBkNENFbHZBK2ZXVFNad3NLQzNXcDZaalowbnNuZldB?= =?utf-8?B?NzJuSlVlMDVvbzVwY2JhRzJxRWpOMDJmWVUwdTgyaEhKY3grZ3BhOE5yL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lIyRjdVb1BKRjJFSE5nQjkvejVseG5JZlUyYm8w?= =?utf-8?B?U2hoNUY3blZIa09TRXJjQXgvN1RiaXVJLzVpQXk5NS9yZVN1NlAzckZCMTVz?= =?utf-8?B?dWJCS2J2cVlZYy9XajhYWFBucTgrZWV6K1RhN2hGRVFjaGN0alVzU25pMFlI?= =?utf-8?B?THJ6YU1Nd1pOMjI2eW9OSlJsT0JqL0FkUXVsUG51V0VYV2YrMFFaSTF4SXlr?= =?utf-8?B?Ty80RzA4ODhCb2xCcjUram54ZmUydE80cVZINUQ4RzFOVTZvQ2pjaVIzZnJu?= =?utf-8?B?b1JNYnZUbnYvRXh0cHZ5MSsxVUROSXFSVExKMUhwREtMU1EwRmxsaU5QMWpC?= =?utf-8?B?NmJtVHVpZk5VVkw5ZXRmM3RFQ0tVN0JBa2tFeUp1ZDVMSGxlY0JrRnNib1kz?= =?utf-8?B?RmUzZmNZenJtNGFlZFdxOFErZzBSVHk4M2lkc2JGcWxjYmNiTUExeHZBUDlP?= =?utf-8?Q?J6cub2JC7umScFd?= X-OriginatorOrg: oracle.com X-MS-Exchange-CrossTenant-Network-Message-Id: e216d809-d3b7-4062-27cc-08db403e8356 X-MS-Exchange-CrossTenant-AuthSource: SJ0PR10MB4429.namprd10.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 18 Apr 2023 18:55:44.0866 (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: h+URBYqVc/GCJvzfjCTIQ/iKnEM+YjRfQpV5ClCcB0AWaGqsLMJlrxiK7tCtkv9fT5aUXGuNcs9q/TkqsIlTaA== X-MS-Exchange-Transport-CrossTenantHeadersStamped: IA1PR10MB6146 X-Proofpoint-Virus-Version: vendor=baseguard engine=ICAP:2.0.254,Aquarius:18.0.942,Hydra:6.0.573,FMLib:17.11.170.22 definitions=2023-04-18_13,2023-04-18_01,2023-02-09_01 X-Proofpoint-Spam-Details: rule=notspam policy=default score=0 mlxlogscore=999 adultscore=0 phishscore=0 malwarescore=0 spamscore=0 bulkscore=0 suspectscore=0 mlxscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.12.0-2303200000 definitions=main-2304180155 X-Proofpoint-GUID: RU0yuzjikxjNi2ra7nPGadR7wXQ43Ydu X-Proofpoint-ORIG-GUID: RU0yuzjikxjNi2ra7nPGadR7wXQ43Ydu X-Spam-Status: No, score=-5.4 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_H2,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 Ping, any comment? thanks, -jane On 4/6/2023 4:01 PM, Jane Chu wrote: > When dax fault handler fails to provision the fault page due to > hwpoison, it returns VM_FAULT_SIGBUS which lead to a sigbus delivered > to userspace with .si_code BUS_ADRERR. Channel dax backend driver's > detection on hwpoison to the filesystem to provide the precise reason > for the fault. > > Signed-off-by: Jane Chu > --- > drivers/nvdimm/pmem.c | 2 +- > fs/dax.c | 2 +- > include/linux/mm.h | 2 ++ > 3 files changed, 4 insertions(+), 2 deletions(-) > > diff --git a/drivers/nvdimm/pmem.c b/drivers/nvdimm/pmem.c > index ceea55f621cc..46e094e56159 100644 > --- a/drivers/nvdimm/pmem.c > +++ b/drivers/nvdimm/pmem.c > @@ -260,7 +260,7 @@ __weak long __pmem_direct_access(struct pmem_device *pmem, pgoff_t pgoff, > long actual_nr; > > if (mode != DAX_RECOVERY_WRITE) > - return -EIO; > + return -EHWPOISON; > > /* > * Set the recovery stride is set to kernel page size because > diff --git a/fs/dax.c b/fs/dax.c > index 3e457a16c7d1..c93191cd4802 100644 > --- a/fs/dax.c > +++ b/fs/dax.c > @@ -1456,7 +1456,7 @@ static loff_t dax_iomap_iter(const struct iomap_iter *iomi, > > map_len = dax_direct_access(dax_dev, pgoff, PHYS_PFN(size), > DAX_ACCESS, &kaddr, NULL); > - if (map_len == -EIO && iov_iter_rw(iter) == WRITE) { > + if (map_len == -EHWPOISON && iov_iter_rw(iter) == WRITE) { > map_len = dax_direct_access(dax_dev, pgoff, > PHYS_PFN(size), DAX_RECOVERY_WRITE, > &kaddr, NULL); > diff --git a/include/linux/mm.h b/include/linux/mm.h > index 1f79667824eb..e4c974587659 100644 > --- a/include/linux/mm.h > +++ b/include/linux/mm.h > @@ -3217,6 +3217,8 @@ static inline vm_fault_t vmf_error(int err) > { > if (err == -ENOMEM) > return VM_FAULT_OOM; > + else if (err == -EHWPOISON) > + return VM_FAULT_HWPOISON; > return VM_FAULT_SIGBUS; > } >