]> 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 12:55:17 +0000 (13:55 +0100)
commit85d84f6c98fcb9aa799730877c99700c8812e547
tree2050fac22c69e69a27acb5b0f6edadb7613ea022
parent0aba4b43a27bf06e68bdd9e61f3108d7631ffd71
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