summaryrefslogtreecommitdiffstats
path: root/tools/perf/builtin-trace.c
diff options
context:
space:
mode:
authorMing Lei <ming.lei@redhat.com>2021-06-09 08:30:46 +0200
committerJens Axboe <axboe@kernel.dk>2021-06-18 16:50:13 +0200
commitf0c1c4d2864ed614f90d2da1bab1a1c42907b940 (patch)
tree85839bf9a39f116ce20217df43d358ad4571e41c /tools/perf/builtin-trace.c
parentdocs/cgroup-v1/blkio: update for 5.x kernels (diff)
downloadlinux-f0c1c4d2864ed614f90d2da1bab1a1c42907b940.tar.xz
linux-f0c1c4d2864ed614f90d2da1bab1a1c42907b940.zip
blk-mq: fix use-after-free in blk_mq_exit_sched
tagset can't be used after blk_cleanup_queue() is returned because freeing tagset usually follows blk_clenup_queue(). Commit d97e594c5166 ("blk-mq: Use request queue-wide tags for tagset-wide sbitmap") adds check on q->tag_set->flags in blk_mq_exit_sched(), and causes use-after-free. Fixes it by using hctx->flags. Reported-by: syzbot+77ba3d171a25c56756ea@syzkaller.appspotmail.com Fixes: d97e594c5166 ("blk-mq: Use request queue-wide tags for tagset-wide sbitmap") Cc: John Garry <john.garry@huawei.com> Signed-off-by: Ming Lei <ming.lei@redhat.com> Tested-by: John Garry <john.garry@huawei.com> Reviewed-by: John Garry <john.garry@huawei.com> Link: https://lore.kernel.org/r/20210609063046.122843-1-ming.lei@redhat.com Signed-off-by: Jens Axboe <axboe@kernel.dk>
Diffstat (limited to 'tools/perf/builtin-trace.c')
0 files changed, 0 insertions, 0 deletions