diff options
author | John Garry <john.garry@huawei.com> | 2021-10-22 11:12:20 +0300 |
---|---|---|
committer | Jens Axboe <axboe@kernel.dk> | 2021-10-22 18:16:12 +0300 |
commit | 8bdf7b3fe1f48a2c1c212d4685903bba01409c0e (patch) | |
tree | b61883643451dd4af6a15cc5e717c27eaec6f5a5 /include/linux/sched.h | |
parent | 297db731847e7808881ec2123c7564067d594d39 (diff) | |
download | linux-8bdf7b3fe1f48a2c1c212d4685903bba01409c0e.tar.xz |
blk-mq-sched: Don't reference queue tagset in blk_mq_sched_tags_teardown()
We should not reference the queue tagset in blk_mq_sched_tags_teardown()
(see function comment) for the blk-mq flags, so use the passed flags
instead.
This solves a use-after-free, similarly fixed earlier (and since broken
again) in commit f0c1c4d2864e ("blk-mq: fix use-after-free in
blk_mq_exit_sched").
Reported-by: Linux Kernel Functional Testing <lkft@linaro.org>
Reported-by: Naresh Kamboju <naresh.kamboju@linaro.org>
Tested-by: Anders Roxell <anders.roxell@linaro.org>
Fixes: e155b0c238b2 ("blk-mq: Use shared tags for shared sbitmap support")
Signed-off-by: John Garry <john.garry@huawei.com>
Link: https://lore.kernel.org/r/1634890340-15432-1-git-send-email-john.garry@huawei.com
Signed-off-by: Jens Axboe <axboe@kernel.dk>
Diffstat (limited to 'include/linux/sched.h')
0 files changed, 0 insertions, 0 deletions