Received: by 2002:ab2:6816:0:b0:1f9:5764:f03e with SMTP id t22csp3104160lqo; Tue, 21 May 2024 07:05:59 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCWrMcLQ70o/7g9/Xc8W7qZLcFAHUxsWHsPiMaaBb+J41HtSI0gkkGoHapXrYXG53bJC8+6e1LhMVGbQ3WwEXaoZxG9f6XmYYnvuXg2goA== X-Google-Smtp-Source: AGHT+IH50FzwZj7iqh6PJfIW0zs2ey3Pcpy2L+tmTDbEa2luVk0fmcDkAvXvw1rCSWIGKC7oNYLB X-Received: by 2002:a50:aac7:0:b0:56b:fd17:3522 with SMTP id 4fb4d7f45d1cf-5734d5cf8cfmr22437281a12.14.1716300358881; Tue, 21 May 2024 07:05:58 -0700 (PDT) Return-Path: Received: from am.mirrors.kernel.org (am.mirrors.kernel.org. [2604:1380:4601:e00::3]) by mx.google.com with ESMTPS id 4fb4d7f45d1cf-574e4dd9548si8795270a12.360.2024.05.21.07.05.58 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 21 May 2024 07:05:58 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-nfs+bounces-3309-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) client-ip=2604:1380:4601:e00::3; Authentication-Results: mx.google.com; dkim=pass header.i=@oracle.com header.s=corp-2023-11-20 header.b=XTaXatcu; dkim=pass header.i=@oracle.onmicrosoft.com header.s=selector2-oracle-onmicrosoft-com header.b=D9D2nOCK; arc=fail (signature failed); spf=pass (google.com: domain of linux-nfs+bounces-3309-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) smtp.mailfrom="linux-nfs+bounces-3309-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 am.mirrors.kernel.org (Postfix) with ESMTPS id A1AB61F249B7 for ; Tue, 21 May 2024 14:05:06 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 706EE7F466; Tue, 21 May 2024 14:03:25 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=oracle.com header.i=@oracle.com header.b="XTaXatcu"; dkim=pass (1024-bit key) header.d=oracle.onmicrosoft.com header.i=@oracle.onmicrosoft.com header.b="D9D2nOCK" X-Original-To: linux-nfs@vger.kernel.org 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 AD6A57F47B for ; Tue, 21 May 2024 14:03:23 +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=1716300205; cv=fail; b=Sl0hMcK1s4seXxXa+UpOCxyoPXfh0s+IFkThgn2PGObsn/b6VjTc/kK0TIvnCghPl2EuYV0gaC91H6pjZHmy4Y/6NxDi/IUa/GeLJKP6ah+RNGNbcnjs9bUcqi1moPasN0ZT4P3HBXFZ12Ju2KM4W8wFKXukp7VaG4rCuiY+VjE= ARC-Message-Signature:i=2; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1716300205; c=relaxed/simple; bh=a7BD0dI6VtFWmCIU4IZ4DmHxWYSNSrYAZ5Chfp2ubCI=; h=Date:From:To:Cc:Subject:Message-ID:References:Content-Type: Content-Disposition:In-Reply-To:MIME-Version; b=RgKZMF1GK1P69tCvGeDe9c4iN1EO9OpiMg9Vu106ZZK9t9zKaYo/Ypk+Oaxs+ABAvWRY5ggP6FOclgZDoAjKp/AmnczIRZeqoU1rm86N3MJlh1HR5+KZXLSVLPJ27cR5LcQamym4M/oPzGcdBd2icm+DEYm43pu6onF0P/zGzh0= 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=XTaXatcu; dkim=pass (1024-bit key) header.d=oracle.onmicrosoft.com header.i=@oracle.onmicrosoft.com header.b=D9D2nOCK; 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 (m0246630.ppops.net [127.0.0.1]) by mx0b-00069f02.pphosted.com (8.17.1.19/8.17.1.19) with ESMTP id 44LCxxpk022689; Tue, 21 May 2024 14:03:08 GMT DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=oracle.com; h=date : from : to : cc : subject : message-id : references : content-type : in-reply-to : mime-version; s=corp-2023-11-20; bh=IZEgsV97QtlWXMlEPberlB0hk1QvFTfLZwr60T6d/mE=; b=XTaXatcuqKtbB64WD+PqYevuIM2Bfw3haY0rTUJKyXEhz+HaHYnk76+f4aOcR0EL7JiY madpgqR0t0AGsIUrOHQDZv18YkpCw5oKf3asejLfVkTVFQPzNRrT8MXBWVoAKaJ+qzT8 vwrOyd7z6spxhon8HmIU4aZro0cFqDwQkc/PSmd+ci/KwPk+N9m0glpNgl2RpeHzha+n KpN+rf9RegK4ctGUq7+3UPnZ3u/RWTvtRbYMsktR9UyxNSCDsAkbCDLcPzgvn9uL5wr4 pR0xPVU5DKwI2M5d6IZnCkE5HZrv6CZ+cmFCXe9M6O0R8EwUy/VqYYMMWXD+ZaGCn6Xk 0w== Received: from phxpaimrmta02.imrmtpd1.prodappphxaev1.oraclevcn.com (phxpaimrmta02.appoci.oracle.com [147.154.114.232]) by mx0b-00069f02.pphosted.com (PPS) with ESMTPS id 3y6jrencrw-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK); Tue, 21 May 2024 14:03:07 +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 44LE1Wfs013714; Tue, 21 May 2024 14:03:06 GMT Received: from nam12-bn8-obe.outbound.protection.outlook.com (mail-bn8nam12lp2169.outbound.protection.outlook.com [104.47.55.169]) by phxpaimrmta02.imrmtpd1.prodappphxaev1.oraclevcn.com (PPS) with ESMTPS id 3y6js78b0e-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK); Tue, 21 May 2024 14:03:06 +0000 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=m536dIokqxhV2Y/vNLYuMep7iGQTBFoEsGmD8BtSPRLV7rtWBhfvxByqpNU2rnNOCmvkovvwM0dt404WLUwiZiZo+qOt8X1JM7AsU5VhnD62ePZ9lT73wOpG3NPSsxanDrsZTFFmkFqTLrwwCGdmT8gbMU+fx07Z9/1gnLUvKct9hA0qAkTBiorlTVdKDMkmCyvt6M7iDlr8Irq/QSVnweNH7UWgTwC8+W5cCVu2c1dWCXLXCF5StYO3AEIqYJVNBEQMVMEvolRIVW9Ldr6pf8d7UMmV+mouqOcN4ethvzbKu8cp2gt4QPjTzCiPUM7gwIGqTufAo4mKdYFS3+uZxg== 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=IZEgsV97QtlWXMlEPberlB0hk1QvFTfLZwr60T6d/mE=; b=JZhNCj5oDCeVYAX8AVv0GRZ961af/+rA7HuRz1GfTutV1NrFx1SWPoIehxoRHAcCmCe4nHPOxlsXOtKBWY97MDSmVhSHD/xe2itJ28ItgC0/C4PA3b5rqLHm2PvK5TlfFKZU19bsE+ZyC7bQGODESEu6X7Nbk2n0b3/u/tUQZhq3j5X+3qAQ+g7ytm06O+Zo+Uv6Ya1j48VEN7sxbV4gmkQ9gA6c+2zDuW7lEKaE7Rw6mOaG6S1rheQerGXVzIeSr9egiqa+AmcJVE/eqs14fFcs/VBllqidmniS83PKYQ4C4uPA1GxC4DitFPXFWsyk/Du1mMan7Ld5wLTQVYUp4Q== 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=IZEgsV97QtlWXMlEPberlB0hk1QvFTfLZwr60T6d/mE=; b=D9D2nOCKJOB1yVvOSrRdx1yrykGkPe9OfHes7K6vFr1/2BBwoe6R0A5cc9OsGOu2e19pWVcNh47jmcdjVXpDm1FsXe3YM/gTBokEAIPTlXFZU/83PYm6wPZry4Jf4XWC1Qde6woBbwiMy9BrE+4XZA/nBsJSsp5JSaVN/+2+EH4= Received: from BN0PR10MB5128.namprd10.prod.outlook.com (2603:10b6:408:117::24) by MW5PR10MB5689.namprd10.prod.outlook.com (2603:10b6:303:19a::17) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.7587.30; Tue, 21 May 2024 14:03:01 +0000 Received: from BN0PR10MB5128.namprd10.prod.outlook.com ([fe80::743a:3154:40da:cf90]) by BN0PR10MB5128.namprd10.prod.outlook.com ([fe80::743a:3154:40da:cf90%4]) with mapi id 15.20.7587.035; Tue, 21 May 2024 14:03:01 +0000 Date: Tue, 21 May 2024 10:02:58 -0400 From: Chuck Lever To: Sagi Grimberg Cc: linux-nfs@vger.kernel.org, Jeff Layton , Dan Aloni , Christoph Hellwig Subject: Re: [PATCH rfc] nfs: propagate readlink errors in nfs_symlink_filler Message-ID: References: <20240521125840.186618-1-sagi@grimberg.me> Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20240521125840.186618-1-sagi@grimberg.me> X-ClientProxiedBy: CH0PR07CA0010.namprd07.prod.outlook.com (2603:10b6:610:32::15) To BN0PR10MB5128.namprd10.prod.outlook.com (2603:10b6:408:117::24) Precedence: bulk X-Mailing-List: linux-nfs@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: BN0PR10MB5128:EE_|MW5PR10MB5689:EE_ X-MS-Office365-Filtering-Correlation-Id: e6d1c752-9bce-4207-a817-08dc799eba2d 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: =?us-ascii?Q?iXUtu9DqjxZVTlR4FqCyFukCFu2UbXxR/m7TyOQzflsMo9c74BnOAXPgukuX?= =?us-ascii?Q?C0IPB4bOVg1sLegueyOnjCBpcMxYJdau+qWjEX8nZ8yaRw9CDMAULVhMVCnt?= =?us-ascii?Q?UbHTNvXRMJ0ksFqDS7/QaVXIZ8eLGaU18eUxty+HmJlPsNatNzsOsQ6Ukgns?= =?us-ascii?Q?dbouYehBDpbkNEZhwKmbKV3eNO3Dw+mWUzLMvNAR4teJ0Rcv7bPJ3NMLXtpz?= =?us-ascii?Q?A5cEbFwFv4QuOuCaSLJwHYLqdPxdTuRrkWqWcNRn8GhrcEvnF6Devb52yRHc?= =?us-ascii?Q?PW5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B6kVomYMs6rM7nBo57AaLB?= =?us-ascii?Q?XojEvMQgNcHGVtfguTv+86Py4KfcfkSUBxzMMtB7wY69OgJpXTzrl6UcYjSv?= =?us-ascii?Q?FBb9Zb1wFDKxod+x/OS92goed3fp3od6CxNONdg8xQ=3D=3D?= X-Forefront-Antispam-Report: CIP:255.255.255.255;CTRY:;LANG:en;SCL:1;SRV:;IPV:NLI;SFV:NSPM;H:BN0PR10MB5128.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: =?us-ascii?Q?9+0TM8oAZ2qbmotyiYV2tbOzdsA3Q0FZ/5AXb4FpUyRxN8VQ76aYQFXyT+/A?= =?us-ascii?Q?LXtwNbMD6yTuHmKjKI/Lfsv7p9tlrPhCA+aLTdX3tlObbeyeC0ywWSgUAMBu?= =?us-ascii?Q?l6mTtZNN8boWVlswUkUtY80kuxr4ws7T40N1Aa6RYS6Onv3c3ikLoqbwneSD?= =?us-ascii?Q?1vo4MBGodq+ECmO0wR0VJnpaXP8G6rlNSaActZJ65lqGg7xoTbre9pETCK0S?= =?us-ascii?Q?G8tGk4+hwwcX+T9IvebcUaCsDCcjzYmJLYVsRkIGeRomkCHWN/hfVBjnpDAE?= =?us-ascii?Q?U/33Zu/FR9ZETeTpKLv+Xch/JSOK4bEwMXe2Povj5EIXpbm4/3wRbqZzsvYi?= =?us-ascii?Q?Gcxh9aP5XAzrWqFttzoQ4jAxpe+YGPciJMeQLYQPY6iOpagL9fGXeQJNtnC6?= =?us-ascii?Q?09sR/7io8IzPL/4rCDRKYX6YQI3GpjaCuYOcOZvlQhsz/bwOqcWLiXj7cD2x?= =?us-ascii?Q?gaUMjMAeWUFoIYf2yIiotze7tm6WIYvLpGasC/g2xNW/ROJ1Tpjj4kh9RNoR?= =?us-ascii?Q?ydIaC7jVs6duCNh9LCd+6+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?Q?1LruOOHndltu54fp52Ao176m1K1oZq4maUWOTDQ+GUS71KJ+RUcRuw/myIE5?= =?us-ascii?Q?0Z1pKMUPJ9ESvz+Gth4WgTnSYrkqqg/7/culhJNjXDBGULxnHvX2ZtIWBcvj?= =?us-ascii?Q?4PPa85hCbPPqAzu/sCZ3gSY55Akku+PcKPVxSfWHpaSOiC7Gdv8oy15vAE00?= =?us-ascii?Q?7A=3D=3D?= X-MS-Exchange-AntiSpam-ExternalHop-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-ExternalHop-MessageData-0: EhFYHqv3FWX2KawpAnf/+gRlfjM1Nf5IRvZ08s/QvdO6wn1etFhwPWCjt+lSEaGF/fVt8WW3Yp5b0Lr0m8CaT6T/DJyJWo4PkBaopFFc4ovnRjaDDdRIh6cp9N+SKRp5OAp+UxQF07T6jvH+plozh4Mm0tH69y2bEf3dqmR2C0TtIAQ6k93XFJg9P0ZnivCkWTPpj8ZiQGt5N5LzSFCNlv+itMbIXpduaoqaQvIhxbq8CLVpGaDcYIX6u1tHftGjP7E+pTszyTWs+ZjqNZc/029jigIMOfpfjQ4i/qM7HCtjOL852aEqMylqdGziyS17N0pJjtQcLbdI7nIPp5DZ39Obw4cJSgtYKzHX14S33SmG3SF30KmFdRK2U3AcsttrAqwWpPnhk7DJb5mnKjYHCvF86u/aXcRPLPrrpxxyRC/6qpnwIZz3DAidPZtIKJQ+StDThhvnaoDCx4vewt2jHqPlHfMWIshcnuidtPJGgiW53J7iiiqILhPEoev94qGA5yHPebxfGi2OKrseOP6OJ3S6L5FMTlOO+15dqJwir2XzG5FqeMF9Cucnqe5CDirNa3C9ZsJgGG2OnZPXPLd80PYMUF2WVYqlPz2H0vv9TKc= X-OriginatorOrg: oracle.com X-MS-Exchange-CrossTenant-Network-Message-Id: e6d1c752-9bce-4207-a817-08dc799eba2d X-MS-Exchange-CrossTenant-AuthSource: BN0PR10MB5128.namprd10.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 21 May 2024 14:03:01.6239 (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: bl2KY7CcqOm9VHqUtKeKl+4Rwa+4HoB0LT9S6uwPZ6FoN2mJYRqDZEAda0AisvGcexI1z8shfcI1iw81/lmnqg== X-MS-Exchange-Transport-CrossTenantHeadersStamped: MW5PR10MB5689 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-21_08,2024-05-21_01,2024-05-17_01 X-Proofpoint-Spam-Details: rule=notspam policy=default score=0 adultscore=0 mlxscore=0 mlxlogscore=989 phishscore=0 bulkscore=0 suspectscore=0 malwarescore=0 spamscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.12.0-2405010000 definitions=main-2405210105 X-Proofpoint-GUID: zInKXdqqPHBqNmrcuYljUoK1K9TZ8y9q X-Proofpoint-ORIG-GUID: zInKXdqqPHBqNmrcuYljUoK1K9TZ8y9q On Tue, May 21, 2024 at 03:58:40PM +0300, Sagi Grimberg wrote: > There is an inherent race where a symlink file may have been overriden Nit: Do you mean "overwritten" ? > (by a different client) between lookup and readlink, resulting in a > spurious EIO error returned to userspace. Fix this by propagating back > ESTALE errors such that the vfs will retry the lookup/get_link (similar > to nfs4_file_open) at least once. > > Cc: Dan Aloni > Signed-off-by: Sagi Grimberg > --- > Note that with this change the vfs should retry once for > ESTALE errors. However with an artificial reproducer of high > frequency symlink overrides, nothing prevents the retry to Nit: "overwrites" ? > also encounter ESTALE, propagating the error back to userspace. > The man pages for openat/readlinkat do not list an ESTALE errno. Speaking only as a community member, I consider that an undesirable behavior regression. IMO it's a bug for a system call to return an errno that isn't documented. That's likely why this logic has worked this way for forever. > An alternative attempt (implemented by Dan) was a local retry loop > in nfs_get_link(), if this is an applicable approach, Dan can > share his patch instead. I'm not entirely convinced by your patch description that returning an EIO on occasion is a problem. Is it reasonable for the app to expect that readlinkat() will /never/ fail? Making symlink semantics more atomic on NFS mounts is probably a good goal. But IMO the proposed change by itself isn't going to get you that with high reliability and few or no undesirable side effects. Note that NFS client-side patches should be sent To: Trond, Anna, and Cc: linux-nfs@ . Trond and Anna need to weigh in on this. > fs/nfs/symlink.c | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) > > diff --git a/fs/nfs/symlink.c b/fs/nfs/symlink.c > index 0e27a2e4e68b..13818129d268 100644 > --- a/fs/nfs/symlink.c > +++ b/fs/nfs/symlink.c > @@ -41,7 +41,7 @@ static int nfs_symlink_filler(struct file *file, struct folio *folio) > error: > folio_set_error(folio); > folio_unlock(folio); > - return -EIO; > + return error; > } > > static const char *nfs_get_link(struct dentry *dentry, > -- > 2.40.1 > -- Chuck Lever