• Bug#1104669: linux-image-6.12.25-amd64: WARNING during boot at block/bl

    From Laurent Bonnaud@1:229/2 to All on Sun May 4 11:30:01 2025
    XPost: linux.debian.bugs.dist
    From: L.Bonnaud@laposte.net

    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.

    Thanks,

    -- Package-specific info:
    ** Version:
    Linux version 6.12.25-amd64 (debian-kernel@lists.debian.org) (x86_64-linux-gnu-gcc-14 (Debian 14.2.0-19) 14.2.0, GNU ld (GNU Binutils for Debian) 2.44) #1 SMP PREEMPT_DYNAMIC Debian 6.12.25-1 (2025-04-25)

    ** Command line:
    BOOT_IMAGE=/boot/vmlinuz-6.12.25-amd64 root=UUID=d4026c7c-61cc-435f-81c5-76194e22454e ro quiet net.ifnames=0

    ** Tainted: W (512)
    * kernel issued warning

    ** Kernel log:
    Unable to read kernel log; any relevant messages should be attached

    ** Model information
    sys_vendor: Dell Inc.
    product_name: PowerEdge R540
    product_version:
    chassis_vendor: Dell Inc.
    chassis_version:
    bios_vendor: Dell Inc.
    bios_version: 2.23.0
    board_vendor: Dell Inc.
    board_name: 0PRWNC
    board_version: A07

    ** Configuration for modprobe:
    blacklist acpi_power_meter
    blacklist arkfb
    blacklist aty128fb
    blacklist atyfb
    blacklist radeonfb
    blacklist cirrusfb
    blacklist cyber2000fb
    blacklist kyrofb
    blacklist matroxfb_base
    blacklist mb862xxfb
    blacklist neofb
    blacklist pm2fb
    blacklist pm3fb
    blacklist s3fb
    blacklist savagefb
    blacklist sisfb
    blacklist tdfxfb
    blacklist tridentfb
    blacklist vt8623fb
    blacklist microcode
    options snd_pcsp index=-2
    options cx88_alsa index=-2
    options snd_atiixp_modem index=-2
    options snd_intel8x0m index=-2
    options snd_via82xx_modem index=-2
    options bonding max_bonds=0
    options dummy numdummies=0
    options ifb numifbs=0
    options net ifnames=0

    ** Loaded modules:
    tls
    nf_tables
    libcrc32c
    nfnetlink
    tcp_diag
    udp_diag
    inet_diag
    intel_rapl_msr
    intel_rapl_common
    intel_uncore_frequency
    intel_uncore_frequency_common
    skx_edac
    binfmt_misc
    skx_edac_common
    nfit
    libnvdimm
    nls_ascii
    nls_cp437
    x86_pkg_temp_thermal
    intel_powerclamp
    vfat
    coretemp
    fat
    kvm_intel
    kvm
    irqbypass
    crct10dif_pclmul
    ghash_clmulni_intel
    sha512_ssse3
    sha256_ssse3
    sha1_ssse3
    aesni_intel
    gf128mul
    crypto_simd
    cryptd
    mgag200
    drm_shmem_helper
    ipmi_ssif
    rapl
    intel_cstate
    sg
    drm_kms_helper
    intel_uncore
    dell_pc
    dell_smbios
    dell_wmi_descriptor
    i2c_algo_bit
    mei_me
    evdev
    joydev
    iTCO_wdt
    platform_profile
    intel_pmc_bxt
    dcdbas
    acpi_ipmi
    mei
    iTCO_vendor_support
    ipmi_si
    watchdog
    pcspkr
    ipmi_devintf
    wmi_bmof
    intel_pch_thermal
    ipmi_msghandler
    button
    drm
    dm_mod
    efi_pstore
    loop
    configfs

    [continued in next message]

    --- SoupGate-Win32 v1.05
    * Origin: you cannot sedate... all the things you hate (1:229/2)
  • From Salvatore Bonaccorso@1:229/2 to Laurent Bonnaud on Sun May 4 16:30:02 2025
    XPost: linux.debian.bugs.dist
    From: carnil@debian.org

    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

    --- SoupGate-Win32 v1.05
    * Origin: you cannot sedate... all the things you hate (1:229/2)