[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Message-Id: <176487243751.985814.383120227280182840.b4-ty@kernel.dk>
Date: Thu, 04 Dec 2025 11:20:37 -0700
From: Jens Axboe <axboe@...nel.dk>
To: martin.petersen@...cle.com, Shaurya Rane <ssrane_b23@...vjti.ac.in>
Cc: linux-block@...r.kernel.org, linux-kernel@...r.kernel.org,
skhan@...uxfoundation.org, linux-kernel-mentees@...ts.linux.dev,
david.hunter.linux@...il.com, khalid@...nel.org,
syzbot+527a7e48a3d3d315d862@...kaller.appspotmail.com,
Keith Busch <kbusch@...nel.org>
Subject: Re: [PATCH] block: fix memory leak in __blkdev_issue_zero_pages
On Thu, 04 Dec 2025 23:42:59 +0530, Shaurya Rane wrote:
> Move the fatal signal check before bio_alloc() to prevent a memory
> leak when BLKDEV_ZERO_KILLABLE is set and a fatal signal is pending.
>
> Previously, the bio was allocated before checking for a fatal signal.
> If a signal was pending, the code would break out of the loop without
> freeing or chaining the just-allocated bio, causing a memory leak.
>
> [...]
Applied, thanks!
[1/1] block: fix memory leak in __blkdev_issue_zero_pages
commit: 220d82ee063a38fcdc658b8d4274f59de4398dd0
Best regards,
--
Jens Axboe
Powered by blists - more mailing lists