Received: by 2002:a05:6358:9144:b0:117:f937:c515 with SMTP id r4csp1444805rwr; Thu, 27 Apr 2023 18:36:28 -0700 (PDT) X-Google-Smtp-Source: ACHHUZ4AgEt4pBQCFZNhjH/Ha0OTygpzD22Lr98yV6lUp7+9o8NBIZDNurGl/l3lK1/3EEse0ar6 X-Received: by 2002:a17:90b:1957:b0:246:a89e:dd84 with SMTP id nk23-20020a17090b195700b00246a89edd84mr3401969pjb.40.1682645787753; Thu, 27 Apr 2023 18:36:27 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1682645787; cv=pass; d=google.com; s=arc-20160816; b=nGGmJByB+6qK2K4UxVpTgNF0vm4AwWkHkYaRA630TmjwlM4YVEvUI0HktiYyGaGUEP y0/hZPlttvD9xSyb839CJbjYQ1ReGLpXNhRUg6qU+fS2/j6YF8aSZCg/x1kMv2Q3YMpZ CVMMRsLLAHJAiURJ4xAMz2yIE8p9AEdJ+YGLBZfwUx2uUIaaXif1zPAn8LZsTOArU+Yw JKrNITVlNpXJ1Wd0EUbP7EipvNHY4yMq2e4NrZGtw8kuelz8485uhKKAz30BPj7rex8O avG2Tro4iSl37VvTNl/0gJsAVCSbtY7ZPmYg8zbsEN42i8sTJBm/ikRGhjJJbFFQ3+ls AgfQ== 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=HAjUXV03FOrY7msA/h6KQKsunQFYhVPwkdYV9hKvrFE=; b=rHRgFXCG6uweXRYbhayGUCZMZHqsaMKU/pnC2gfkto3VXm80YVTu5k1y7P7QykFC5J 6sjsFvIfqlg2eyNryylsYh2H7qjYNJ4i2eC9TPJ+W2tA6glFAxJf6vNdHdTl5pxE+zPA rGMy+g7+LMjNKfVNuhcshQ0XiUuPDoAuxalRmlYcwy8GKq56c7dzD6TjX2L23xmEQMLM IHRoDQ5QfgdaTGdpo+UG/WPuIKx78dhRNAHxjy/HGIyZUrxOgJrA3Mcm7h78vleXO2p0 aEryNMwS1blQAGn0HZNuP3nOKbNdPYalwXi//o4kdtFFZPg7GQDsyH3GZj06bDqx6vu2 mqgA== ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@oracle.com header.s=corp-2023-03-30 header.b=J19iJA34; dkim=pass header.i=@oracle.onmicrosoft.com header.s=selector2-oracle-onmicrosoft-com header.b=eusv2AFl; 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 t145-20020a635f97000000b00517ac1a9a63si19576059pgb.129.2023.04.27.18.36.11; Thu, 27 Apr 2023 18:36:27 -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=J19iJA34; dkim=pass header.i=@oracle.onmicrosoft.com header.s=selector2-oracle-onmicrosoft-com header.b=eusv2AFl; 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 S1344334AbjD1B0i (ORCPT + 99 others); Thu, 27 Apr 2023 21:26:38 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:53312 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229971AbjD1B0g (ORCPT ); Thu, 27 Apr 2023 21:26:36 -0400 Received: from mx0b-00069f02.pphosted.com (mx0b-00069f02.pphosted.com [205.220.177.32]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 9E86F26A2; Thu, 27 Apr 2023 18:26:34 -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 33RKPE8r019966; Fri, 28 Apr 2023 01:26:18 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=HAjUXV03FOrY7msA/h6KQKsunQFYhVPwkdYV9hKvrFE=; b=J19iJA34MK3EjsmKmvr5Jo27P3SxuTcIReqect1IFYOTkmovQSpWqZIc8nEabtnINLkV V3f85beMKu+BcJYNwQNyWTOLaqqUmPe99PrWqEsz7BSGHj1PsJG+eTdUkf8MrzL+FZZE wys/o6zHATfo2Fvz0IQ6S3qnnLJu2WYF1HDaN47kI1F9fnUQK6Qj25tF8OiGUxIFQYJ7 OZzXuuIH7rC2SlrFQP0uYB0PkovVgxoOMkIL4qvpytht4wOvTLIbHitTtwjRjBzbFl3f 6rfjF3O1Lv80HzIljT2YdpjCKr4uP/lJyrqyx+iQd0WwQREFLoq6Ly6vTz6BHpF1J6Cu mw== Received: from phxpaimrmta02.imrmtpd1.prodappphxaev1.oraclevcn.com (phxpaimrmta02.appoci.oracle.com [147.154.114.232]) by mx0b-00069f02.pphosted.com (PPS) with ESMTPS id 3q46c4dafb-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK); Fri, 28 Apr 2023 01:26:18 +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 33RNULFO032545; Fri, 28 Apr 2023 01:26:17 GMT Received: from nam10-mw2-obe.outbound.protection.outlook.com (mail-mw2nam10lp2103.outbound.protection.outlook.com [104.47.55.103]) by phxpaimrmta02.imrmtpd1.prodappphxaev1.oraclevcn.com (PPS) with ESMTPS id 3q461ab8k6-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK); Fri, 28 Apr 2023 01:26:17 +0000 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=BPh7yxyhm+rhaTFe8TgqJ+XEJLodFS6LpqJc9NaN1RFQHH4Jukd1pve8bAvf8OAjWlTdDOZfkmK36leTrWbYlL3aQ6Pg2CFJ3fpXotofUpwyEFwIkwG7FQtbQzrT9kG5ceSJrsgLrMdBld7jH+aNvfpwAKqgOdsb9k9qEwNmLTUtf1Op33En+HIJjAhNTJr11iFPUdOTcKuYShxz9SXWsPo9uub3EVJjEBBlwS4ILDEdtkXnLljR9XltMgvrEbIYQmbUJb9Za/3328o8cNqEX0zZk2FuU2FKDfhopbuCbj0dEPvYNbta/sCJBzNp665sAZLPTO462ftszFJlRkPyiw== 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=HAjUXV03FOrY7msA/h6KQKsunQFYhVPwkdYV9hKvrFE=; b=Q0wlHodFs/MA9DiK66bEMByXqBH9KhMGeR4jTNP2GrEcRjxQ0insZSnaC6f1ZzPFwWnveLHPCVYXjdTWi6l/h3qMsxjPKnwN6Wn0/AyRBWpVBM5Fn80dZEThesjo6gWoKlW8Wc9YDo6eirqCMqd97lAsedv23WpcWIdOWEr1KCy8RsbOZQi7Xzp3GeGjS332+lzzBkWdRfYjOTBk0JvpJ7d205Kt59mDBaG/Tw6QOvXZHRulyHPQzpkcJKYpLDhcmKY3BE0+jY65HCSn0vuFSzirAcGQoca7Vt9HS310z0mnj9phD7mWVEmO7WJdDtcDgGdIGf4wlBp4xGGrSwclOQ== 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=HAjUXV03FOrY7msA/h6KQKsunQFYhVPwkdYV9hKvrFE=; b=eusv2AFlhRY6VfJOdMKOb2JkpMy3XFStUCPQIxP5IeNKGczRc5YpyDoiiLBh/UUGxMttjLZlyYVzYLm1OVj0qFMCAmYLNsFFBRj65pEhGJZzA85DtycnTBl1gsxuIT09mmlkrMm92vFO8E6vzrVIfjGdyZhAfXT6OAd7tTkWjHg= Received: from CO1PR10MB4418.namprd10.prod.outlook.com (2603:10b6:303:94::9) by CO1PR10MB4708.namprd10.prod.outlook.com (2603:10b6:303:90::9) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.6340.22; Fri, 28 Apr 2023 01:26:15 +0000 Received: from CO1PR10MB4418.namprd10.prod.outlook.com ([fe80::97b3:818c:4f87:7b29]) by CO1PR10MB4418.namprd10.prod.outlook.com ([fe80::97b3:818c:4f87:7b29%6]) with mapi id 15.20.6319.034; Fri, 28 Apr 2023 01:26:15 +0000 Message-ID: Date: Thu, 27 Apr 2023 18:26:11 -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 To: Matthew Wilcox Cc: Dan Williams , vishal.l.verma@intel.com, dave.jiang@intel.com, ira.weiny@intel.com, 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> <644aeadcba13b_2028294c9@dwillia2-xfh.jf.intel.com.notmuch> From: Jane Chu In-Reply-To: Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit X-ClientProxiedBy: SN6PR08CA0032.namprd08.prod.outlook.com (2603:10b6:805:66::45) To CO1PR10MB4418.namprd10.prod.outlook.com (2603:10b6:303:94::9) MIME-Version: 1.0 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: CO1PR10MB4418:EE_|CO1PR10MB4708:EE_ X-MS-Office365-Filtering-Correlation-Id: 85cf892f-191e-4805-45f1-08db47878f31 X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: QPZHNOhOeMAWRe6vatdIE4qdN6si1fLDesIudT5boHtgChuWorgu+rIkddmdu7mmVi8mMaVvDzZUGb+2D0p0Edp4zlMYW8lUJwozVwFk4jIgAenab6qFPtz1PYrHX5bxNBCCexB+x2Dq1u1L602s5yCUIbOQZmEP0uhJqkDA9OEoRP8Qoy7xXyN2aSAP3k0A3EiTiVpcdnUvzz4rIbCv9cWhyd412wi+ccrLATMFwdao+tSQese3sN1w2fAglLIi/q8P5WdyTvx5zXpFftwWy72pVmcYJZUTafMy0M6yNQJ+kgjviYRXhXTqU/Y5fbRBil7KU4rqczeYqB127J9yFCMfJT2NW5Y6KT5G4n/srSRYgYbaDANuVMqYeqp29RgKQ762MP/k7I7KOT0NKttRgmCJX28SeAWhhe6Ml1G7K57kgW3VuofP2I9KCjDfsqkcj1d+0AWe7o3RYq121dPJLhJ5wNnkKCuJ6cJSKGNJ9YC96aoObNeESWKgcwCe2Y5fB7ypxwf3xqLPt51nMkd4JouXTkPjD/orcJo4b03IK6N21RPqB+9NioCiM/oFDjXV9KxdI9RGFNv61qK2p0gfTykEnES7n9BjqNo5DyaF4AcAuBVMXGup6buQvj8HqjraPtVnGycN9K1Oya7H7tECWg== X-Forefront-Antispam-Report: CIP:255.255.255.255;CTRY:;LANG:en;SCL:1;SRV:;IPV:NLI;SFV:NSPM;H:CO1PR10MB4418.namprd10.prod.outlook.com;PTR:;CAT:NONE;SFS:(13230028)(396003)(136003)(346002)(376002)(366004)(39860400002)(451199021)(86362001)(53546011)(41300700001)(26005)(66899021)(6506007)(6512007)(31696002)(2906002)(5660300002)(8676002)(8936002)(36756003)(44832011)(7416002)(83380400001)(38100700002)(478600001)(6486002)(186003)(6666004)(31686004)(66476007)(66556008)(6916009)(4326008)(316002)(66946007)(2616005)(43740500002)(45980500001);DIR:OUT;SFP:1101; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: =?utf-8?B?bUl6UUFOeGpLU1VrNEdHYnJiTjhLenR2NFlMU3J0R0FYQVgvUUlYWld1N2ps?= =?utf-8?B?RUhObVIzYlZOeWYzbFpkK2lOeU82Z3F1YUE5eGFiRXRDdEdCcFg0MU8rWFJt?= =?utf-8?B?UWp4Tm9Lcmh4aW1mUmdTSjIyOTJhcklhU2JXSFJ4ZzRLSWJZVG5qU2phOS9L?= =?utf-8?B?R1d6d245K05oT3FZUDl3eDRDZ1FNcDdWSTlneC9iWWc2eSt4RVU3V0g4YSsz?= =?utf-8?B?OG5LbFdYTjlEcGtQN3Q0eXIyZFQ0d3NpbG42bjJwK1dreWxlM01LSm9xcHFS?= =?utf-8?B?cXpYb2JxMU9IM2ljZU9XZUhId2hGWkFHMFl4UnFFRGtnclZnQUJWVC9TT2Zw?= =?utf-8?B?bGQrc3dMR1hNT25oUVpqa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Q1Wk9GMnp2TjllNi9FTjZVTkpjK0FGeFNTdWY4ckJKSUh0MEhsUzdQ?= =?utf-8?B?WHhXKzNhZnZDc1NoNTNLY1pCMFlCbEdpOGZtc3JWOXQxN0dNb2hTQ1R6c3NY?= =?utf-8?B?ZkZqSUlIc2JzSXdzMXVDSXZQdmFoaTdxcUdQMklsMlZxNVExaFljelRYMnpR?= =?utf-8?B?K0pMd3gxYTVsRktSa1EzcngwemZUQW5hYmhZenlIeTNCL2prK2Nydm52aXZF?= =?utf-8?B?bkMveWNzdFFRL1N0R3pFcVhpVHNaYVhpQXlmQU9hNWhpT2RXQlZrajBoYUtu?= =?utf-8?B?QmtGaVdKM1FqRFZReW0rUys5MFp3aEE5cE43cWNlcFI5cGhDc2dTUEdSbzNu?= =?utf-8?B?ZUVieGJrcWJpNTQzTmppUFA3bDE3djFkaWZqbnZQTFVqVUYwdU9RSTk5NFl2?= =?utf-8?Q?+b99IevJdg1MH/G?= X-OriginatorOrg: oracle.com X-MS-Exchange-CrossTenant-Network-Message-Id: 85cf892f-191e-4805-45f1-08db47878f31 X-MS-Exchange-CrossTenant-AuthSource: CO1PR10MB4418.namprd10.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 28 Apr 2023 01:26:15.4162 (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: BmwiIct5g84bmigS8NZZ/qBqoYUUb5uCgvm0pQ8aXt173Yk/isPtpc9gJXxhvfrrt3RYQ1HOAx1gQ4L6aFyWuQ== X-MS-Exchange-Transport-CrossTenantHeadersStamped: CO1PR10MB4708 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-28_01,2023-04-27_01,2023-02-09_01 X-Proofpoint-Spam-Details: rule=notspam policy=default score=0 spamscore=0 mlxscore=0 phishscore=0 mlxlogscore=999 adultscore=0 suspectscore=0 malwarescore=0 bulkscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.12.0-2303200000 definitions=main-2304280009 X-Proofpoint-GUID: DSs5TWfjfKlEWcOsc1DIM5X6KVmryN8E X-Proofpoint-ORIG-GUID: DSs5TWfjfKlEWcOsc1DIM5X6KVmryN8E X-Spam-Status: No, score=-4.2 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, URIBL_BLOCKED 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 4/27/2023 4:48 PM, Matthew Wilcox wrote: > On Thu, Apr 27, 2023 at 04:36:58PM -0700, Jane Chu wrote: >>> This change results in EHWPOISON leaking to usersapce in the case of >>> read(2), that's not a return code that block I/O applications have ever >>> had to contend with before. Just as badblocks cause EIO to be returned, >>> so should poisoned cachelines for pmem. >> >> The read(2) man page (https://man.archlinux.org/man/read.2) says >> "On error, -1 is returned, and errno is set to indicate the error. In this >> case, it is left unspecified whether the file position (if any) changes." >> >> If read(2) users haven't dealt with EHWPOISON before, they may discover that >> with pmem backed dax file, it's possible. > > I don't think they should. While syscalls are allowed to return errnos > other than the ones listed in POSIX, I don't think this is a worthwhile > difference. We should be abstracting from the user that this is pmem > rather than spinning rust or nand. So we should convert the EHWPOISON > to EIO as Dan suggests. Got it, I'll add errno conversion in the respin. thanks, -jane