On 1/6/26 8:56 AM, Mikulas Patocka wrote:
--- linux-2.6.orig/block/blk-mq.c 2026-01-06 16:45:11.000000000 +0100
+++ linux-2.6/block/blk-mq.c 2026-01-06 16:48:00.000000000 +0100
@@ -4553,8 +4553,7 @@ static void __blk_mq_realloc_hw_ctxs(str
* Make sure reading the old queue_hw_ctx from other
* context concurrently won't trigger uaf.
*/
- synchronize_rcu_expedited();
- kfree(hctxs);
+ kfree_rcu_mightsleep(hctxs);
hctxs = new_hctxs;
}
Reviewed-by: Bart Van Assche <[email protected]>
