From: Jeff Layton <jlayton@kernel.org> Date: 2023-02-11 12:50:17
The nfs4_file table is global, so shutting it down when a containerized
nfsd is shut down is wrong and can lead to double-frees. Tear down the
nfs4_file_rhltable in nfs4_state_shutdown instead of
nfs4_state_shutdown_net.
Fixes: d47b295e8d76 (NFSD: Use rhashtable for managing nfs4_file objects)
Link: https://bugzilla.redhat.com/show_bug.cgi?id=2169017
Reported-by: JianHong Yin <redacted>
Signed-off-by: Jeff Layton <jlayton@kernel.org>
---
fs/nfsd/nfs4state.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
From: Chuck Lever III <hidden> Date: 2023-02-11 20:32:07
On Feb 11, 2023, at 7:50 AM, Jeff Layton [off-list ref] wrote:
The nfs4_file table is global, so shutting it down when a containerized
nfsd is shut down is wrong and can lead to double-frees. Tear down the
nfs4_file_rhltable in nfs4_state_shutdown instead of
nfs4_state_shutdown_net.
D'oh!
Fixes: d47b295e8d76 (NFSD: Use rhashtable for managing nfs4_file objects)
Link: https://bugzilla.redhat.com/show_bug.cgi?id=2169017
Reported-by: JianHong Yin <redacted>
Signed-off-by: Jeff Layton <jlayton@kernel.org>
Thanks to you and JianHong. Applied to nfsd-fixes.
From: Jeff Layton <jlayton@kernel.org> Date: 2023-02-11 20:47:51
On Sat, 2023-02-11 at 20:31 +0000, Chuck Lever III wrote:
quoted
On Feb 11, 2023, at 7:50 AM, Jeff Layton [off-list ref] wrote:
The nfs4_file table is global, so shutting it down when a containerized
nfsd is shut down is wrong and can lead to double-frees. Tear down the
nfs4_file_rhltable in nfs4_state_shutdown instead of
nfs4_state_shutdown_net.
D'oh!
quoted
Fixes: d47b295e8d76 (NFSD: Use rhashtable for managing nfs4_file objects)
Link: https://bugzilla.redhat.com/show_bug.cgi?id=2169017
Reported-by: JianHong Yin <redacted>
Signed-off-by: Jeff Layton <jlayton@kernel.org>
Thanks to you and JianHong. Applied to nfsd-fixes.
Thanks for grabbing it quickly. It'd be great to get this in before v6.2
ships...