Re: [PATCH V10 2/5] fuse: Passthrough initialization and release

From: Alessio Balsini
Date: Wed Dec 16 2020 - 11:55:55 EST


On Wed, Dec 16, 2020 at 09:32:51PM +0800, wu-yan@xxxxxxx wrote:
> Hi Alessio,
>
> It may cause file reference counter leak in fuse_passthrough_open. If the
> passthrough_filp
>
> not implement read_iter/write_iter or passthrough struct allocated failed,
> the reference counter get in fget(pro->fd) not released and cause leak.
>
> Cheers,
>
> yanwu
>


Hi yanwu,

Nice catch, this bug was introduced in v10 and will be fixed in the next
patch set.

Cheers,
Alessio