]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
NFS: check if suid/sgid was cleared after a write as needed
authorScott Mayhew <smayhew@redhat.com>
Thu, 9 Oct 2025 20:42:12 +0000 (16:42 -0400)
committerAnna Schumaker <anna.schumaker@oracle.com>
Mon, 13 Oct 2025 18:33:00 +0000 (14:33 -0400)
commit9ff022f3820a31507cb93be6661bf5f3ca0609a4
treeaebe03c326f37fae895822e428e62c8622bf8773
parent7a84394f02ab1985ebbe0a8d6f6d69bd040de4b3
NFS: check if suid/sgid was cleared after a write as needed

I noticed xfstests generic/193 and generic/355 started failing against
knfsd after commit e7a8ebc305f2 ("NFSD: Offer write delegation for OPEN
with OPEN4_SHARE_ACCESS_WRITE").

I ran those same tests against ONTAP (which has had write delegation
support for a lot longer than knfsd) and they fail there too... so
while it's a new failure against knfsd, it isn't an entirely new
failure.

Add the NFS_INO_REVAL_FORCED flag so that the presence of a delegation
doesn't keep the inode from being revalidated to fetch the updated mode.

Signed-off-by: Scott Mayhew <smayhew@redhat.com>
Signed-off-by: Anna Schumaker <anna.schumaker@oracle.com>
fs/nfs/write.c