Re: [PATCH v3] blk-throttle: fix access race during throttle policy activation
From: Jens Axboe
Date: Mon Sep 08 2025 - 10:25:31 EST
On Fri, 05 Sep 2025 18:24:11 +0800, Han Guangjiang wrote:
> On repeated cold boots we occasionally hit a NULL pointer crash in
> blk_should_throtl() when throttling is consulted before the throttle
> policy is fully enabled for the queue. Checking only q->td != NULL is
> insufficient during early initialization, so blkg_to_pd() for the
> throttle policy can still return NULL and blkg_to_tg() becomes NULL,
> which later gets dereferenced.
>
> [...]
Applied, thanks!
[1/1] blk-throttle: fix access race during throttle policy activation
commit: bd9fd5be6bc0836820500f68fff144609fbd85a9
Best regards,
--
Jens Axboe