diff options
author | Ming Lei <[email protected]> | 2022-06-16 09:44:00 +0800 |
---|---|---|
committer | Jens Axboe <[email protected]> | 2022-06-16 14:45:15 -0600 |
commit | 4d337cebcb1c27d9b48c48b9a98e939d4552d584 (patch) | |
tree | 145de66b189943b28e6b089d4345459a7d22d2c6 /scripts/gdb/linux/clk.py | |
parent | 5fd7a84a09e640016fe106dd3e992f5210e23dc7 (diff) |
blk-mq: avoid to touch q->elevator without any protection
q->elevator is referred in blk_mq_has_sqsched() without any protection,
no .q_usage_counter is held, no queue srcu and rcu read lock is held,
so potential use-after-free may be triggered.
Fix the issue by adding one queue flag for checking if the elevator
uses single queue style dispatch. Meantime the elevator feature flag
of ELEVATOR_F_MQ_AWARE isn't needed any more.
Cc: Jan Kara <[email protected]>
Signed-off-by: Ming Lei <[email protected]>
Reviewed-by: Christoph Hellwig <[email protected]>
Link: https://lore.kernel.org/r/[email protected]
Signed-off-by: Jens Axboe <[email protected]>
Diffstat (limited to 'scripts/gdb/linux/clk.py')
0 files changed, 0 insertions, 0 deletions