]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
nfsd: fix timestamp updates in CB_GETATTR
authorJeff Layton <jlayton@kernel.org>
Wed, 30 Jul 2025 13:24:36 +0000 (09:24 -0400)
committerChuck Lever <chuck.lever@oracle.com>
Sun, 21 Sep 2025 23:24:50 +0000 (19:24 -0400)
commitb40b1ba37ad5b6099c426765c4bc327c08b390b9
tree50591714febc0de2b707298f033d247b4202fff1
parent3952f1cbcbc454b2cb639ddbf165c07068e90371
nfsd: fix timestamp updates in CB_GETATTR

When updating the local timestamps from CB_GETATTR, the updated values
are not being properly vetted.

Compare the update times vs. the saved times in the delegation rather
than the current times in the inode. Also, ensure that the ctime is
properly vetted vs. its original value.

Fixes: 6ae30d6eb26b ("nfsd: add support for delegated timestamps")
Signed-off-by: Jeff Layton <jlayton@kernel.org>
Signed-off-by: Chuck Lever <chuck.lever@oracle.com>
fs/nfsd/nfs4state.c