diff options
| author | Ming Lei <[email protected]> | 2021-06-09 14:30:46 +0800 |
|---|---|---|
| committer | Jens Axboe <[email protected]> | 2021-06-18 08:50:13 -0600 |
| commit | f0c1c4d2864ed614f90d2da1bab1a1c42907b940 (patch) | |
| tree | 85839bf9a39f116ce20217df43d358ad4571e41c /tools/perf/scripts/python/export-to-postgresql.py | |
| parent | 828615950b5876e75587fdd5e9d1185be9cabba7 (diff) | |
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: [email protected]
Fixes: d97e594c5166 ("blk-mq: Use request queue-wide tags for tagset-wide sbitmap")
Cc: John Garry <[email protected]>
Signed-off-by: Ming Lei <[email protected]>
Tested-by: John Garry <[email protected]>
Reviewed-by: John Garry <[email protected]>
Link: https://lore.kernel.org/r/[email protected]
Signed-off-by: Jens Axboe <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python/export-to-postgresql.py')
0 files changed, 0 insertions, 0 deletions