diff options
| author | Fengnan Chang <fengnanchang@gmail.com> | 2025-12-01 20:25:04 +0800 |
|---|---|---|
| committer | Jens Axboe <axboe@kernel.dk> | 2025-12-01 07:18:31 -0700 |
| commit | 4d0e1f2139ad452d0e209a16b3d016af2f8ef1f7 (patch) | |
| tree | 5b91cafe9230e82846ee781d1ef991d072bf561e /lib/debugobjects.c | |
| parent | c1536df9427dc90ec796fb755adcad3cfc469ac7 (diff) | |
blk-mq: use queue_hctx in blk_mq_map_queue_type
Some caller of blk_mq_map_queue_type now didn't grab
'q_usage_counter', such as blk_mq_cpu_mapped_to_hctx, so we need
protect 'queue_hw_ctx' through rcu.
Also checked all other functions, no more missed cases.
Fixes: 89e1fb7ceffd ("blk-mq: fix potential uaf for 'queue_hw_ctx'")
Reported-by: Jens Axboe <axboe@kernel.dk>
Signed-off-by: Fengnan Chang <changfengnan@bytedance.com>
Signed-off-by: Jens Axboe <axboe@kernel.dk>
Diffstat (limited to 'lib/debugobjects.c')
0 files changed, 0 insertions, 0 deletions
