]> 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 12:55:17 +0000 (13:55 +0100)
commitfa561b29b7a85543a9dc81f0634c73f902bcb3f0
treebed7fc8d715d6a73e2a1296f246e48248679a6de
parentef97a2a5c1d56de25c3a9dcb18f911ee1007f30b
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