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] [thread-next>] [day] [month] [year] [list]
Message-ID: <1999588f143.5af31c76548207.2814872385181806897@linux.beauty>
Date: Mon, 29 Sep 2025 20:53:23 +0800
From: Li Chen <me@...ux.beauty>
To: "Markus Elfring" <Markus.Elfring@....de>
Cc: "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 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!

Regards,
Li

Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ