]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
NFS: Initialise verifiers for visible dentries in _nfs4_open_and_get_state
authorTrond Myklebust <trond.myklebust@hammerspace.com>
Wed, 19 Nov 2025 13:43:21 +0000 (08:43 -0500)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 18 Dec 2025 13:03:34 +0000 (14:03 +0100)
commita7d914e1f9b4e487648f6d24900899a11ad6867b
tree351a0788d6c664f1234d1691336ead4f00ef9a70
parent97b93a595be0e68880123ea2c4df39865b62c768
NFS: Initialise verifiers for visible dentries in _nfs4_open_and_get_state

[ Upstream commit 0f900f11002ff52391fc2aa4a75e59f26ed1c242 ]

Ensure that the verifiers are initialised before calling
d_splice_alias() in _nfs4_open_and_get_state().

Reported-by: Michael Stoler <michael.stoler@vastdata.com>
Fixes: cf5b4059ba71 ("NFSv4: Fix races between open and dentry revalidation")
Signed-off-by: Trond Myklebust <trond.myklebust@hammerspace.com>
Signed-off-by: Sasha Levin <sashal@kernel.org>
fs/nfs/nfs4proc.c