[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Message-Id: <175944060261.1563810.3419677787520547910.b4-ty@kernel.dk>
Date: Thu, 02 Oct 2025 15:30:02 -0600
From: Jens Axboe <axboe@...nel.dk>
To: Lizhi Xu <lizhi.xu@...driver.com>, linux-block@...r.kernel.org,
linux-kernel@...r.kernel.org, Li Chen <me@...ux.beauty>
Cc: stable@...r.kernel.org, Markus Elfring <Markus.Elfring@....de>,
Yang Erkun <yangerkun@...wei.com>, Ming Lei <ming.lei@...hat.com>,
Yu Kuai <yukuai1@...weicloud.com>
Subject: Re: [PATCH v2] loop: fix backing file reference leak on validation
error
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
Powered by blists - more mailing lists