On Mon, 04 Nov 2024 19:00:05 +0800, Yu Kuai wrote: > blk_mq_clear_flush_rq_mapping() is not called during scsi probe, by > checking blk_queue_init_done(). However, QUEUE_FLAG_INIT_DONE is cleared > in del_gendisk by commit aec89dc5d421 ("block: keep q_usage_counter in > atomic mode after del_gendisk"), hence for disk like scsi, following > blk_mq_destroy_queue() will not clear flush rq from tags->rqs[] as well, > cause following uaf that is found by our syzkaller for v6.6: > > [...] Applied, thanks! [1/1] block: fix uaf for flush rq while iterating tags commit: 3802f73bd80766d70f319658f334754164075bc3 Best regards, -- Jens Axboe