Thread (14 messages) 14 messages, 4 authors, 2024-11-19

Re: [PATCH -next] block: fix uaf for flush rq while iterating tags

From: Jens Axboe <axboe@kernel.dk>
Date: 2024-11-19 01:32:21
Also in: lkml

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


Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help