]> www.infradead.org Git - users/dwmw2/linux.git/commit
nfsd: fix net-namespace logic in __nfsd_file_cache_purge
authorJeff Layton <jlayton@kernel.org>
Mon, 31 Oct 2022 15:49:21 +0000 (11:49 -0400)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 10 Apr 2024 14:19:20 +0000 (16:19 +0200)
commit3ec2c9976c17d78f515f5988e6dd1cc16033edab
treef6c14e1c21e9ecdbe03bf37f054562e5f41e1b90
parentf17c07f8ea772d72e332b51117d1ddc7426e5e14
nfsd: fix net-namespace logic in __nfsd_file_cache_purge

[ Upstream commit d3aefd2b29ff5ffdeb5c06a7d3191a027a18cdb8 ]

If the namespace doesn't match the one in "net", then we'll continue,
but that doesn't cause another rhashtable_walk_next call, so it will
loop infinitely.

Fixes: ce502f81ba88 ("NFSD: Convert the filecache to use rhashtable")
Reported-by: Petr Vorel <pvorel@suse.cz>
Link: https://lore.kernel.org/ltp/Y1%2FP8gDAcWC%2F+VR3@pevik/
Signed-off-by: Jeff Layton <jlayton@kernel.org>
Signed-off-by: Chuck Lever <chuck.lever@oracle.com>
fs/nfsd/filecache.c