Commit b5792c16 authored by Ming Lei's avatar Ming Lei Committed by Greg Kroah-Hartman
Browse files

block: avoid to reuse `hctx` not removed from cpuhp callback list



[ Upstream commit 85672ca9 ]

If the 'hctx' isn't removed from cpuhp callback list, we can't reuse it,
otherwise use-after-free may be triggered.

Reported-by: default avatarkernel test robot <oliver.sang@intel.com>
Closes: https://lore.kernel.org/oe-lkp/202412172217.b906db7c-lkp@intel.com


Tested-by: default avatarkernel test robot <oliver.sang@intel.com>
Fixes: 22465bba ("blk-mq: move cpuhp callback registering out of q->sysfs_lock")
Signed-off-by: default avatarMing Lei <ming.lei@redhat.com>
Link: https://lore.kernel.org/r/20241218101617.3275704-3-ming.lei@redhat.com


Signed-off-by: default avatarJens Axboe <axboe@kernel.dk>
Signed-off-by: default avatarSasha Levin <sashal@kernel.org>
parent 0f289ba4
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment