Files
linux/block
Yang Yang 1e2be69a03 blk-mq: move cancel of hctx->run_work to the front of blk_exit_queue
[ Upstream commit 47ce030b7a ]

blk_exit_queue will free elevator_data, while blk_mq_run_work_fn
will access it. Move cancel of hctx->run_work to the front of
blk_exit_queue to avoid use-after-free.

Fixes: 1b97871b50 ("blk-mq: move cancel of hctx->run_work into blk_mq_hw_sysfs_release")
Signed-off-by: Yang Yang <yang.yang@vivo.com>
Reviewed-by: Ming Lei <ming.lei@redhat.com>
Signed-off-by: Jens Axboe <axboe@kernel.dk>
Signed-off-by: Sasha Levin <sashal@kernel.org>
2020-10-29 10:07:26 +01:00
..
2020-09-03 11:29:27 +02:00
2020-09-03 11:29:27 +02:00
2020-09-03 11:29:27 +02:00
2020-09-03 11:29:27 +02:00
2020-09-03 11:29:38 +02:00
2020-03-17 20:55:21 +01:00
2020-05-29 16:30:39 -06:00
2020-01-03 09:33:21 +01:00
2019-07-15 09:20:27 -03:00
2020-01-06 20:59:04 -07:00