Re: [PATCH] nfsd: Fix id-to-name cache entry leak in idtoname_parse()
From: Chuck Lever
Date: Thu Sep 17 2026 - 22:08:34 EST
On Thu, 17 Sep 2026 16:31:54 +0000, Wentao Liang wrote:
> idtoname_lookup() returns the id-to-name cache entry with a new
> reference. The name is parsed between the lookup and the update call,
> and when the parsed name is malformed (negative length or longer than
> IDMAP_NAMESZ), idtoname_parse() jumps to the error label without
> dropping the reference returned by idtoname_lookup(), leaking the cache
> entry.
>
> [...]
Applied to nfsd-testing, thanks!
[1/1] nfsd: Fix id-to-name cache entry leak in idtoname_parse()
commit: 775ce3d60e25d646447e7ca6c0864b3abf658817
--
Chuck Lever