Re: [PATCH v2] loop: fix backing file reference leak on validation error
From: Jens Axboe
Date: Thu Oct 02 2025 - 17:30:14 EST
On Tue, 30 Sep 2025 08:35:59 +0800, Li Chen wrote:
> loop_change_fd() and loop_configure() call loop_check_backing_file()
> to validate the new backing file. If validation fails, the reference
> acquired by fget() was not dropped, leaking a file reference.
>
> Fix this by calling fput(file) before returning the error.
>
>
> [...]
Applied, thanks!
[1/1] loop: fix backing file reference leak on validation error
commit: 98b7bf54338b797e3a11e8178ce0e806060d8fa3
Best regards,
--
Jens Axboe