lists.openwall.net   lists  /  announce  owl-users  owl-dev  john-users  john-dev  passwdqc-users  yescrypt  popa3d-users  /  oss-security  kernel-hardening  musl  sabotage  tlsify  passwords  /  crypt-dev  xvendor  /  Bugtraq  Full-Disclosure  linux-kernel  linux-netdev  linux-ext4  linux-hardening  linux-cve-announce  PHC 
Open Source and information security mailing list archives
 
Hash Suite: Windows password security audit tool. GUI, reports in PDF.
[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Message-ID: <19997f021ec.1a9fd75f968161.8895471846650325801@linux.beauty>
Date: Tue, 30 Sep 2025 08:05:21 +0800
From: Li Chen <me@...ux.beauty>
To: "Ming Lei" <ming.lei@...hat.com>
Cc: "Markus Elfring" <Markus.Elfring@....de>,
	"Li Chen" <chenl311@...natelecom.cn>,
	"linux-block" <linux-block@...r.kernel.org>,
	"Jens Axboe" <axboe@...nel.dk>,
	"LKML" <linux-kernel@...r.kernel.org>,
	"Yang Erkun" <yangerkun@...wei.com>
Subject: Re: [PATCH] loop: fix backing file reference leak on validation
 error

Hi Ming,

 ---- On Mon, 29 Sep 2025 23:01:50 +0800  Ming Lei <ming.lei@...hat.com> wrote --- 
 > On Mon, Sep 29, 2025 at 8:54 PM Li Chen <me@...ux.beauty> wrote:
 > >
 > > Hi Markus,
 > >
 > >  ---- On Sun, 28 Sep 2025 21:48:23 +0800  Markus Elfring <Markus.Elfring@....de> wrote ---
 > >  > …
 > >  > > Fix this by calling fput(file) before returning the error.
 > >  > …
 > >  > > +++ b/drivers/block/loop.c
 > >  > …
 > >  >
 > >  > How do you think about to increase the application of scope-based resource management?
 > >  > https://elixir.bootlin.com/linux/v6.17-rc7/source/include/linux/file.h#L97
 > >
 > > Looks good; I will add a commit to switch to scope-based resource management in v2.
 > > Thanks for your suggestion!
 > 
 > Please don't do it as one bug fix, the whole fix chain needs to
 > backport, and scope-based
 > fput is just added in v6.15.
 > 
 > However, you can do it as one cleanup after the fix is merged.

Noted, thanks for your tip.

Regards,
Li

Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ