Re: [PATCH v2] io_uring: fix filename leak in __io_openat_prep()
From: Prithvi
Date: Thu Dec 25 2025 - 10:18:26 EST
On Thu, Dec 25, 2025 at 08:08:50AM -0700, Jens Axboe wrote:
>
> On Thu, 25 Dec 2025 12:58:29 +0530, Prithvi Tambewagh wrote:
> > __io_openat_prep() allocates a struct filename using getname(). However,
> > for the condition of the file being installed in the fixed file table as
> > well as having O_CLOEXEC flag set, the function returns early. At that
> > point, the request doesn't have REQ_F_NEED_CLEANUP flag set. Due to this,
> > the memory for the newly allocated struct filename is not cleaned up,
> > causing a memory leak.
> >
> > [...]
>
> Applied, thanks!
>
> [1/1] io_uring: fix filename leak in __io_openat_prep()
> commit: b14fad555302a2104948feaff70503b64c80ac01
>
> Best regards,
> --
> Jens Axboe
>
>
>
Thank you!
Best Regards,
Prithvi