Bug#1104669: linux-image-6.12.25-amd64: WARNING during boot at block/blk-mq-cpumap.c:90 blk_mq_map_hw_queues+0xcf/0xe0
Control: forwarded -1 https://lore.kernel.org/stable/20250503091422.0389.409509F4@e16-tech.com/
Control: tags -1 + upstream moreinfo
Hi Laurent,
On Sun, May 04, 2025 at 11:24:09AM +0200, Laurent Bonnaud wrote:
> Package: src:linux
> Version: 6.12.25-1
> Severity: normal
>
> Dear Maintainer,
>
> when this system boots up, the kernel outputs this warning message:
>
> [ 1.977261] ------------[ cut here ]------------
> [ 1.977265] WARNING: CPU: 0 PID: 11 at block/blk-mq-cpumap.c:90 blk_mq_map_hw_queues+0xcf/0xe0
> [ 1.977284] Modules linked in: ahci(+) libahci xhci_pci ixgbe(+) libata xhci_hcd megaraid_sas(+) xfrm_algo dca tg3 i2c_i801 crc32_pclmul usbcore crc32c_intel scsi_mod mdio_devres i2c_smbus libphy mdio lpc_ich usb_common scsi_common wmi
> [ 1.977355] CPU: 0 UID: 0 PID: 11 Comm: kworker/0:1 Not tainted 6.12.25-amd64 #1 Debian 6.12.25-1
> [ 1.977366] Hardware name: Dell Inc. PowerEdge R540/0PRWNC, BIOS 2.23.0 01/09/2025
> [ 1.977372] Workqueue: events work_for_cpu_fn
> [ 1.977389] RIP: 0010:blk_mq_map_hw_queues+0xcf/0xe0
> [ 1.977401] Code: 8b 35 d5 d6 82 01 48 63 d0 48 c7 c7 60 15 60 aa e8 c6 b5 05 00 3b 05 c0 d6 82 01 72 d3 5b 5d 41 5c 41 5d 41 5e c3 cc cc cc cc <0f> 0b eb d2 66 66 2e 0f 1f 84 00 00 00 00 00 66 90 90 90 90 90 90
> [ 1.977409] RSP: 0018:ffff9a77400d7d48 EFLAGS: 00010206
> [ 1.977417] RAX: 0000000000000000 RBX: ffff88f892c88000 RCX: 000000000000000a
> [ 1.977424] RDX: 0000000000000001 RSI: ffff88f882f380c8 RDI: ffff88f892c880e8
> [ 1.977430] RBP: 0000000000000001 R08: ffffffffaa601560 R09: 0000000000000000
> [ 1.977436] R10: ffff9a77400d7d88 R11: 0000000000000040 R12: 0000000000000200
> [ 1.977442] R13: 0000000000000000 R14: ffff88f892c880e8 R15: ffff88f8861e3000
> [ 1.977448] FS: 0000000000000000(0000) GS:ffff88ffdfc00000(0000) knlGS:0000000000000000
> [ 1.977455] CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033
> [ 1.977462] CR2: 00007f8fba480900 CR3: 0000000210222003 CR4: 00000000007706f0
> [ 1.977469] DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
> [ 1.977474] DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400
> [ 1.977479] PKRU: 55555554
> [ 1.977484] Call Trace:
> [ 1.977490] <TASK>
> [ 1.977499] megasas_map_queues+0x49/0x90 [megaraid_sas]
> [ 1.977544] blk_mq_alloc_tag_set+0x154/0x3a0
> [ 1.977555] scsi_add_host_with_dma.cold+0x9b/0x2b6 [scsi_mod]
> [ 1.977617] megasas_probe_one.cold+0x14ba/0x16c8 [megaraid_sas]
> [ 1.977667] local_pci_probe+0x42/0x90
> [ 1.977691] work_for_cpu_fn+0x17/0x30
> [ 1.977703] process_one_work+0x174/0x330
> [ 1.977714] worker_thread+0x251/0x390
> [ 1.977725] ? __pfx_worker_thread+0x10/0x10
> [ 1.977734] kthread+0xcf/0x100
> [ 1.977741] ? __pfx_kthread+0x10/0x10
> [ 1.977747] ret_from_fork+0x31/0x50
> [ 1.977757] ? __pfx_kthread+0x10/0x10
> [ 1.977763] ret_from_fork_asm+0x1a/0x30
> [ 1.977778] </TASK>
> [ 1.977781] ---[ end trace 0000000000000000 ]---
>
> With 6.1 kernels from Debian 12, no such problem exists.
I think this is the same issue as reported upstream in
https://lore.kernel.org/stable/20250503091422.0389.409509F4@e16-tech.com/
.
Can you confirm that the commit a9ae6fe1c319 ("blk-mq: create correct map for fallback case") fixes the issue for you as well?
https://git.kernel.org/linus/a9ae6fe1c319c4776c2b11e85e15109cd3f04076
Regards,
Salvatore
Reply to: