PT-2026-162954

CVE-2026-99987

·

تاريخ النشر

2026-11-30

·

تاريخ التحديث

2026-11-30

الوصف من

الدرجة
N/A
غير متوفر

لا تتوفر حاليًا تقييمات أو مقاييس للخطورة. سنحدّث المعلومات المقابلة في الصفحة فور توفرها.

In the Linux kernel, the following vulnerability has been resolved:
blk-mq: clear stale inactive flag on hctx reuse
When the last CPU mapped to an hctx goes offline, blk mq hctx notify offline() sets BLK MQ S INACTIVE. Updating the number of hardware queues exits every hctx and parks it on q->unused hctx list. A later update can reuse a parked hctx through blk mq alloc and init hctx(), at any queue index, and nothing clears the flag.
If the reused hctx is mapped to an online CPU, blk mq get tag() keeps returning BLK MQ NO TAG for it. blk mq alloc requests() sleeps and retries, expecting CPU hotplug to move the task to another CPU, so a task that stays on that CPU never gets a tag. Onlining the original CPU doesn't recover it either, because blk mq hctx notify online() only clears the flag on the hctx that CPU now maps to.
Clear BLK MQ S INACTIVE in blk mq init hctx() so a reused hctx starts like a freshly allocated one. A reused hctx has no cpuhp instances at that point, so the offline callback can't set the flag again before blk mq add hw queues cpuhp() registers it. Clearing the flag in blk mq exit hctx() is not enough, because a parked hctx keeps its cpuhp instances until blk mq remove hw queues cpuhp(). Preserve the other hctx state flags.
Reproduced with null blk on v7.3 in a four-vCPU arm64 QEMU/KVM guest:
modprobe null blk nr devices=0 mkdir /sys/kernel/config/nullb/nullb0 cd /sys/kernel/config/nullb/nullb0 echo 4 > submit queues; echo 1 > memory backed; echo 16 > size echo 1 > power echo 0 > /sys/devices/system/cpu/cpu3/online echo 2 > submit queues echo 4 > submit queues
Offlining CPU3 marks hctx3 inactive. After the two updates it comes back as hctx1 and is mapped to CPU0:

cat /sys/block/nullb0/mq/1/cpu list

0

cat /sys/kernel/debug/block/nullb0/hctx1/state

INACTIVE
A 4K O DIRECT read pinned to CPU0 hangs in D state, while the same read on CPU1 and CPU2 completes. Onlining CPU3 again leaves hctx1 inactive and the CPU0 read still hangs. With this change hctx1 state is empty and the reads on CPU0, CPU1 and CPU2 complete, before and after onlining CPU3.
المورّدون
المنتجات المتأثرة
المعرّفات ذات الصلة
وجدت خطأً في الوصف؟ لديك ما تضيفه؟ لا تتردد في مراسلتنا 👾