Commit e457eba
committed
Merge: NFSv4: xattr handlers should check for absent nfs filehandles
MR: https://gitlab.com/redhat/centos-stream/src/kernel/centos-stream-9/-/merge_requests/7150
NFSv4: xattr handlers should check for absent nfs filehandles
JIRA: https://issues.redhat.com/browse/RHEL-79731
commit 6e9a2f8
Author: Scott Mayhew <smayhew@redhat.com>
Date: Wed Apr 16 11:23:38 2025 -0400
NFSv4: xattr handlers should check for absent nfs filehandles
The nfs inodes for referral anchors that have not yet been followed have
their filehandles zeroed out.
Attempting to call getxattr() on one of these will cause the nfs client
to send a GETATTR to the nfs server with the preceding PUTFH sans
filehandle. The server will reply NFS4ERR_NOFILEHANDLE, leading to -EIO
being returned to the application.
For example:
$ strace -e trace=getxattr getfattr -n system.nfs4_acl /mnt/t/ref
getxattr("/mnt/t/ref", "system.nfs4_acl", NULL, 0) = -1 EIO (Input/output error)
/mnt/t/ref: system.nfs4_acl: Input/output error
+++ exited with 1 +++
Have the xattr handlers return -ENODATA instead.
Signed-off-by: Scott Mayhew <smayhew@redhat.com>
Signed-off-by: Anna Schumaker <anna.schumaker@oracle.com>
Signed-off-by: Scott Mayhew <smayhew@redhat.com>
Approved-by: Benjamin Coddington <bcodding@redhat.com>
Approved-by: Olga Kornievskaia <okorniev@redhat.com>
Approved-by: CKI KWF Bot <cki-ci-bot+kwf-gitlab-com@redhat.com>
Merged-by: Augusto Caringi <acaringi@redhat.com>1 file changed
+5
-0
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
6165 | 6165 | | |
6166 | 6166 | | |
6167 | 6167 | | |
| 6168 | + | |
| 6169 | + | |
6168 | 6170 | | |
6169 | 6171 | | |
6170 | 6172 | | |
| |||
6239 | 6241 | | |
6240 | 6242 | | |
6241 | 6243 | | |
| 6244 | + | |
| 6245 | + | |
| 6246 | + | |
6242 | 6247 | | |
6243 | 6248 | | |
6244 | 6249 | | |
| |||
0 commit comments