]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
NFS: Initialise verifiers for visible dentries in readdir and lookup
authorTrond Myklebust <trond.myklebust@hammerspace.com>
Wed, 19 Nov 2025 13:36:16 +0000 (08:36 -0500)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 18 Dec 2025 13:03:33 +0000 (14:03 +0100)
commit32b7ba23b4df7f0d58cdc0d19485e8786242b591
treeb690e40a429a632010fb06a7f78a433f3b6a0e0a
parent4836f912acc702d6e70eab3f1d796895906a540d
NFS: Initialise verifiers for visible dentries in readdir and lookup

[ Upstream commit 9bd545539b233725a3416801f7c374bff0327d6e ]

Ensure that the verifiers are initialised before calling
d_splice_alias() in both nfs_prime_dcache() and nfs_lookup().

Reported-by: Michael Stoler <michael.stoler@vastdata.com>
Fixes: a1147b8281bd ("NFS: Fix up directory verifier races")
Signed-off-by: Trond Myklebust <trond.myklebust@hammerspace.com>
Signed-off-by: Sasha Levin <sashal@kernel.org>
fs/nfs/dir.c