[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Message-ID: <CAKYAXd88+gEvGe+aJUEVJetYyk-vpejfHuLNujP6NPeXDMcJnQ@mail.gmail.com>
Date: Wed, 22 Oct 2025 14:41:02 +0900
From: Namjae Jeon <linkinjeon@...nel.org>
To: Shuhao Fu <sfual@....ust.hk>
Cc: Sungjong Seo <sj1557.seo@...sung.com>, Yuezhang Mo <yuezhang.mo@...y.com>,
linux-fsdevel@...r.kernel.org, linux-kernel@...r.kernel.org
Subject: Re: [PATCH v2] exfat: fix refcount leak in exfat_find
On Tue, Oct 21, 2025 at 5:42 PM Shuhao Fu <sfual@....ust.hk> wrote:
>
> Fix refcount leaks in `exfat_find` related to `exfat_get_dentry_set`.
>
> Function `exfat_get_dentry_set` would increase the reference counter of
> `es->bh` on success. Therefore, `exfat_put_dentry_set` must be called
> after `exfat_get_dentry_set` to ensure refcount consistency. This patch
> relocate two checks to avoid possible leaks.
>
> Fixes: 82ebecdc74ff ("exfat: fix improper check of dentry.stream.valid_size")
> Fixes: 13940cef9549 ("exfat: add a check for invalid data size")
> Signed-off-by: Shuhao Fu <sfual@....ust.hk>
Applied it with a reviewed-by tag to #dev.
Thanks!
Powered by blists - more mailing lists