linux-yocto/block
Ming Lei 25466e5b4b blk-mq: setup queue ->tag_set before initializing hctx
commit c25c0c9035 upstream.

Commit 7b815817aa ("blk-mq: add helper for checking if one CPU is mapped to specified hctx")
needs to check queue mapping via tag set in hctx's cpuhp handler.

However, q->tag_set may not be setup yet when the cpuhp handler is
enabled, then kernel oops is triggered.

Fix the issue by setup queue tag_set before initializing hctx.

Cc: stable@vger.kernel.org
Reported-and-tested-by: Rick Koch <mr.rickkoch@gmail.com>
Closes: https://lore.kernel.org/linux-block/CANa58eeNDozLaBHKPLxSAhEy__FPfJT_F71W=sEQw49UCrC9PQ@mail.gmail.com
Fixes: 7b815817aa ("blk-mq: add helper for checking if one CPU is mapped to specified hctx")
Signed-off-by: Ming Lei <ming.lei@redhat.com>
Reviewed-by: Christoph Hellwig <hch@lst.de>
Reviewed-by: John Garry <john.g.garry@oracle.com>
Link: https://lore.kernel.org/r/20241014005115.2699642-1-ming.lei@redhat.com
Signed-off-by: Jens Axboe <axboe@kernel.dk>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2026-01-11 15:22:33 +01:00
..
partitions block: fix conversion of GPT partition name to 7-bit 2025-03-13 12:58:27 +01:00
badblocks.c
bdev.c block: fix race between set_blocksize and read paths 2025-10-23 16:16:38 +02:00
bfq-cgroup.c
bfq-iosched.c block, bfq: fix waker_bfqq UAF after bfq_split_bfqq() 2025-01-17 13:36:25 +01:00
bfq-iosched.h
bfq-wf2q.c
bio-integrity.c
bio.c scsi: sd_zbc: block: Respect bio vector limits for REPORT ZONES buffer 2025-05-22 14:12:22 +02:00
blk-cgroup-fc-appid.c
blk-cgroup-rwstat.c
blk-cgroup-rwstat.h
blk-cgroup.c blk-cgroup: fix possible deadlock while configuring policy 2025-11-24 10:29:22 +01:00
blk-cgroup.h
blk-core.c block: reject invalid operation in submit_bio_noacct 2025-08-28 16:28:40 +02:00
blk-crypto-fallback.c blk-crypto: fix missing blktrace bio split events 2025-10-19 16:30:48 +02:00
blk-crypto-internal.h
blk-crypto-profile.c
blk-crypto-sysfs.c
blk-crypto.c
blk-flush.c
blk-ia-ranges.c
blk-integrity.c
blk-ioc.c
blk-iocost.c blk-iocost: Avoid using clamp() on inuse in __propagate_weights() 2024-12-19 18:11:34 +01:00
blk-iolatency.c
blk-ioprio.c
blk-ioprio.h
blk-lib.c
blk-map.c
blk-merge.c block: fix bio_split_rw_at to take zone_write_granularity into account 2024-12-09 10:31:45 +01:00
blk-mq-cpumap.c
blk-mq-debugfs-zoned.c
blk-mq-debugfs.c
blk-mq-debugfs.h
blk-mq-pci.c
blk-mq-sched.c
blk-mq-sched.h
blk-mq-sysfs.c blk-mq: check kobject state_in_sysfs before deleting in blk_mq_unregister_hctx 2025-10-15 11:57:50 +02:00
blk-mq-tag.c
blk-mq-virtio.c
blk-mq.c blk-mq: setup queue ->tag_set before initializing hctx 2026-01-11 15:22:33 +01:00
blk-mq.h block: fix ordering between checking BLK_MQ_S_STOPPED request adding 2024-12-09 10:32:50 +01:00
blk-pm.c
blk-pm.h
blk-rq-qos.c
blk-rq-qos.h
blk-settings.c block: use int to store blk_stack_limits() return value 2025-10-15 11:57:51 +02:00
blk-stat.c
blk-stat.h
blk-sysfs.c block: fix kobject leak in blk_unregister_queue 2025-07-24 08:53:17 +02:00
blk-throttle.c
blk-throttle.h
blk-timeout.c
blk-wbt.c
blk-wbt.h
blk-zoned.c block: fix race between set_blocksize and read paths 2025-10-23 16:16:38 +02:00
blk.h
bounce.c
bsg-lib.c
bsg.c
disk-events.c
early-lookup.c
elevator.c block: Fix elevator_get_default() checking for NULL q->tag_set 2024-11-17 15:08:56 +01:00
elevator.h
fops.c block: fix race between set_blocksize and read paths 2025-10-23 16:16:38 +02:00
genhd.c block: rate-limit capacity change info log 2026-01-11 15:21:55 +01:00
holder.c
ioctl.c block: fix race between set_blocksize and read paths 2025-10-23 16:16:38 +02:00
ioprio.c
Kconfig
Kconfig.iosched
kyber-iosched.c
Makefile
mq-deadline.c
opal_proto.h
sed-opal.c
t10-pi.c