Re: [PATCH] block: fix memory leak in __blkdev_issue_zero_pages
From: Jens Axboe
Date: Thu Dec 04 2025 - 13:20:39 EST
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