Package: src:linux
Version: 6.1.0-28-amd64
Severity: critical

-- Description --

After installing Debian 12.7 (Bookworm) using the official netinst ISO, the system encountered a Kernel Panic during a shutdown or reboot when the `mdadm` utility was resynchronizing RAID devices.

The issue occurs consistently if the system is restarted or shut down while a RAID array is in the process of syncing. This behavior leads to an unrecoverable Kernel Panic, rendering the system unbootable without manual intervention.

-- Steps to Reproduce --

1. Install Debian 12.7 from the official netinst ISO.
2. Configure RAID1 arrays using `mdadm` across two NVMe devices (`nvme0n1` and `nvme1n1`).
3. Allow `mdadm` to begin syncing the RAID partitions (e.g., `md3`).
4. Initiate a system shutdown (`shutdown -h now`) or reboot (`reboot`) while syncing is in progress.
5. Observe that the system encounters a Kernel Panic during the process.

-- Expected Behavior --

The system should cleanly handle the shutdown or reboot process and properly stop all active RAID operations without triggering a Kernel Panic.

-- Logs --

### Output of `/proc/mdstat`:
Personalities : [raid1] [linear] [multipath] [raid0] [raid6] [raid5] [raid4] [raid10]
md3 : active raid1 nvme0n1p4[1] nvme1n1p4[0]
      1869735232 blocks super 1.2 [2/2] [UU]
      [========>............]  resync = 42.7% (799404416/1869735232) finish=89.1min speed=200031K/sec
      bitmap: 9/14 pages [36KB], 65536KB chunk

md1 : active (auto-read-only) raid1 nvme1n1p2[0] nvme0n1p2[1]
      4189184 blocks super 1.2 [2/2] [UU]

md2 : active raid1 nvme1n1p3[0] nvme0n1p3[1]
      1046528 blocks super 1.2 [2/2] [UU]

unused devices: <none>

### System Information:
No LSB modules are available.
Distributor ID:    Debian
Description:    Debian GNU/Linux 12 (bookworm)
Release:    12
Codename:    bookworm


### Hardware Details:

NAME        MAJ:MIN RM  SIZE RO TYPE  MOUNTPOINTS
sda           8:0    1 28,5G  0 disk
├─sda1        8:1 1  631M  0 part
└─sda2        8:2 1  9,3M  0 part
nvme0n1     259:0 0  1,7T  0 disk
├─nvme0n1p1 259:2 0  256M  0 part
├─nvme0n1p2 259:3 0    4G  0 part
│ └─md1       9:1 0    4G  0 raid1 [SWAP]
├─nvme0n1p3 259:4 0    1G  0 part
│ └─md2       9:2    0 1022M  0 raid1 /boot
└─nvme0n1p4 259:5 0  1,7T  0 part
  └─md3       9:3 0  1,7T  0 raid1 /
nvme1n1     259:1 0  1,7T  0 disk
├─nvme1n1p1 259:6 0  256M  0 part  /boot/efi
├─nvme1n1p2 259:7 0    4G  0 part
│ └─md1       9:1 0    4G  0 raid1 [SWAP]
├─nvme1n1p3 259:8 0    1G  0 part
│ └─md2       9:2    0 1022M  0 raid1 /boot
└─nvme1n1p4 259:9 0  1,7T  0 part
  └─md3       9:3 0  1,7T  0 raid1 /

### Output of `lspci`:

00:00.0 Host bridge: Intel Corporation Device a700 (rev 01)
00:02.0 VGA compatible controller: Intel Corporation Raptor Lake-S GT1 [UHD Graphics 770] (rev 04) 00:06.0 PCI bridge: Intel Corporation Raptor Lake PCIe 4.0 Graphics Port (rev 01) 00:0a.0 Signal processing controller: Intel Corporation Raptor Lake Crashlog and Telemetry (rev 01) 00:14.0 USB controller: Intel Corporation Alder Lake-S PCH USB 3.2 Gen 2x2 XHCI Controller (rev 11)
00:14.2 RAM memory: Intel Corporation Alder Lake-S PCH Shared SRAM (rev 11)
00:15.0 Serial bus controller: Intel Corporation Alder Lake-S PCH Serial IO I2C Controller #0 (rev 11) 00:15.1 Serial bus controller: Intel Corporation Alder Lake-S PCH Serial IO I2C Controller #1 (rev 11) 00:15.2 Serial bus controller: Intel Corporation Alder Lake-S PCH Serial IO I2C Controller #2 (rev 11) 00:16.0 Communication controller: Intel Corporation Alder Lake-S PCH HECI Controller #1 (rev 11)
00:16.3 Serial controller: Intel Corporation Device 7aeb (rev 11)
00:17.0 SATA controller: Intel Corporation Alder Lake-S PCH SATA Controller [AHCI Mode] (rev 11) 00:1a.0 PCI bridge: Intel Corporation Alder Lake-S PCH PCI Express Root Port #25 (rev 11)
00:1b.0 PCI bridge: Intel Corporation Device 7ac0 (rev 11)
00:1c.0 PCI bridge: Intel Corporation Alder Lake-S PCH PCI Express Root Port #1 (rev 11) 00:1c.1 PCI bridge: Intel Corporation Alder Lake-S PCH PCI Express Root Port #2 (rev 11) 00:1d.0 PCI bridge: Intel Corporation Alder Lake-S PCH PCI Express Root Port #9 (rev 11)
00:1f.0 ISA bridge: Intel Corporation Device 7a88 (rev 11)
00:1f.4 SMBus: Intel Corporation Alder Lake-S PCH SMBus Controller (rev 11)
00:1f.5 Serial bus controller: Intel Corporation Alder Lake-S PCH SPI Controller (rev 11) 01:00.0 Non-Volatile memory controller: Micron Technology Inc 7450 PRO NVMe SSD (rev 01) 02:00.0 Non-Volatile memory controller: Micron Technology Inc 7450 PRO NVMe SSD (rev 01) 05:00.0 Ethernet controller: Intel Corporation Ethernet Controller I225-LM (rev 03)


-- Additional Information --

No custom kernel parameters or modifications have been applied. The issue occurs with the default installation and kernel provided by Debian 12.7. Let me know if further logs, dumps, or tests are required to assist in diagnosing this issue.

Best regards, Vincent

Attachment: OpenPGP_0x8356089447E3C8D1.asc
Description: OpenPGP public key

Attachment: OpenPGP_signature.asc
Description: OpenPGP digital signature

Reply via email to