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: <9f6acb84-02cb-4f76-bf37-e79b87157f1e@web.de>
Date: Sun, 28 Sep 2025 15:48:23 +0200
From: Markus Elfring <Markus.Elfring@....de>
To: Li Chen <chenl311@...natelecom.cn>, linux-block@...r.kernel.org,
 Jens Axboe <axboe@...nel.dk>
Cc: Li Chen <me@...ux.beauty>, LKML <linux-kernel@...r.kernel.org>,
 Yang Erkun <yangerkun@...wei.com>
Subject: Re: [PATCH] loop: fix backing file reference leak on validation error

…
> 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

Regards,
Markus

Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ