Re: [PATCH v1 0/2] nfsd: Fix cred refcount leak.

Jeff Layton
2026-01-24T15:32:34Z

On Sat, 2026-01-24 at 04:18 +0000, Kuniyuki Iwashima wrote:
> get_current_cred() is misused in nfsd_nl_listener_set_doit()
> and nfsd_nl_threads_set_doit(), leaking the cred refcount.
>
> Patch 1 & 2 fixes the leak in each function.
>
>
> Kuniyuki Iwashima (2):
> nfsd: Fix cred ref leak in nfsd_nl_threads_set_doit().
> nfsd: Fix cred ref leak in nfsd_nl_listener_set_doit().
>
> fs/nfsd/nfsctl.c | 4 ++--
> 1 file changed, 2 insertions(+), 2 deletions(-)

Nice catch.

Reviewed-by: Jeff Layton <jlayton@kernel.org>