]> www.infradead.org Git - users/dwmw2/linux.git/commit
nfsd: extra checks when freeing delegation stateids
authorJeff Layton <jlayton@kernel.org>
Mon, 26 Sep 2022 18:41:02 +0000 (14:41 -0400)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 10 Apr 2024 14:19:19 +0000 (16:19 +0200)
commit3af497e3f7cce7df53f0efde56005b0d5ac463db
tree25c6bfa213d417ed3d49ff91f73b2e5bbd9d6226
parente55378bce5f602acc3e1e43bcc5bcf09d9c2104a
nfsd: extra checks when freeing delegation stateids

[ Upstream commit 895ddf5ed4c54ea9e3533606d7a8b4e4f27f95ef ]

We've had some reports of problems in the refcounting for delegation
stateids that we've yet to track down. Add some extra checks to ensure
that we've removed the object from various lists before freeing it.

Link: https://bugzilla.redhat.com/show_bug.cgi?id=2127067
Signed-off-by: Jeff Layton <jlayton@kernel.org>
Signed-off-by: Chuck Lever <chuck.lever@oracle.com>
fs/nfsd/nfs4state.c