+9
−0
+0
−2
Loading
blk_mq_free_tags() can be called after blk_mq_init_tags(), while tags->page_list is still not initialized, causing null-ptr-deref. Fix this problem by initializing tags->page_list at blk_mq_init_tags(), meanwhile, also free tags directly from error path because there is no srcu barrier. Fixes: ad0d05db ("blk-mq: Defer freeing of tags page_list to SRCU callback") Reported-by:<syzbot+5c5d41e80248d610221f@syzkaller.appspotmail.com> Closes: https://lore.kernel.org/all/68d1b079.a70a0220.1b52b.0000.GAE@google.com/ Signed-off-by:
Yu Kuai <yukuai3@huawei.com> Signed-off-by:
Jens Axboe <axboe@kernel.dk>