Infinite systemd loop when power off the machine with multiple MD RAIDs
Affects | Status | Importance | Assigned to | Milestone | ||
---|---|---|---|---|---|---|
HWE Next |
New
|
Undecided
|
Unassigned | |||
linux (Ubuntu) | Status tracked in Mantic | |||||
Jammy |
Invalid
|
Undecided
|
Unassigned | |||
Mantic |
In Progress
|
Undecided
|
AceLan Kao | |||
linux-oem-6.1 (Ubuntu) | Status tracked in Mantic | |||||
Jammy |
Fix Released
|
Undecided
|
AceLan Kao | |||
Mantic |
Invalid
|
Undecided
|
Unassigned | |||
linux-oem-6.5 (Ubuntu) | Status tracked in Mantic | |||||
Jammy |
Fix Released
|
Undecided
|
AceLan Kao | |||
Mantic |
Invalid
|
Undecided
|
Unassigned |
Bug Description
[Impact]
The system with multiple MD RAIDs sometimes hangs while rebooting, that's because of the systemd can't stop and close the MD disk.
[Fix]
This commit fixes the issue, and this issue has been introduced by 12a6caf27324 ("md: only delete entries from all_mddevs when the disk is freed") after v6.0
https:/
[Test case]
1. Reboot the system with multiple MD RAIDs at least 10 times.
2. Make sure the system can reboot successfully every time.
3. You should not see error messages like below.
[ 205.360738] systemd-
[ 205.366384] systemd-
[ 205.373327] systemd-
[ 205.380427] systemd-
[ 205.388257] systemd-
[ 205.394880] systemd-
[ 205.404975] md: md127 stopped.
[ 205.470491] systemd-
[ 205.770179] md: md126: resync interrupted.
[ 205.776258] md126: detected capacity change from 1900396544 to 0
[ 205.783349] md: md126 stopped.
[ 205.862258] systemd-
[ 205.862435] md: md126 stopped.
[ 205.868376] systemd-
[ 205.872845] block device autoloading is deprecated and will be removed.
[ 205.880955] md: md125 stopped.
[ 205.934349] systemd-
[ 205.947707] systemd-
[ 205.957004] systemd-
[ 205.964177] systemd-
[ 205.973155] systemd-
[ 205.979789] systemd-
[ 205.988475] systemd-
[Where problems could occur]
It fixes the data race issue, should not introduce any regression.
CVE References
Changed in linux (Ubuntu Jammy): | |
status: | New → In Progress |
Changed in linux (Ubuntu Mantic): | |
status: | New → In Progress |
Changed in linux (Ubuntu Jammy): | |
assignee: | nobody → AceLan Kao (acelankao) |
Changed in linux (Ubuntu Mantic): | |
assignee: | nobody → AceLan Kao (acelankao) |
Changed in linux-oem-6.5 (Ubuntu Jammy): | |
status: | New → In Progress |
Changed in linux-oem-6.5 (Ubuntu Mantic): | |
status: | New → Invalid |
Changed in linux-oem-6.5 (Ubuntu Jammy): | |
assignee: | nobody → AceLan Kao (acelankao) |
tags: | added: oem-priority originate-from-2025253 somerville |
Changed in linux (Ubuntu Jammy): | |
status: | In Progress → Invalid |
assignee: | AceLan Kao (acelankao) → nobody |
description: | updated |
Changed in linux-oem-6.5 (Ubuntu Jammy): | |
status: | In Progress → Fix Committed |
Changed in linux-oem-6.1 (Ubuntu Jammy): | |
assignee: | nobody → AceLan Kao (acelankao) |
status: | New → In Progress |
Changed in linux-oem-6.1 (Ubuntu Mantic): | |
status: | New → Invalid |
summary: |
- Infiniate systemd loop when power off the machine with multiple MD RAIDs + Infinite systemd loop when power off the machine with multiple MD RAIDs |
tags: |
added: verification-done-jammy-linux-oem-6.5 removed: verification-needed-jammy-linux-oem-6.5 |
Changed in linux-oem-6.1 (Ubuntu Jammy): | |
status: | In Progress → Fix Committed |
tags: |
added: verification-done-jammy-linux-oem-6.1 removed: verification-needed-jammy-linux-oem-6.1 |
This bug is awaiting verification that the linux-oem- 6.5/6.5. 0-1004. 4 kernel in -proposed solves the problem. Please test the kernel and update this bug with the results. If the problem is solved, change the tag 'verification- needed- jammy-linux- oem-6.5' to 'verification- done-jammy- linux-oem- 6.5'. If the problem still exists, change the tag 'verification- needed- jammy-linux- oem-6.5' to 'verification- failed- jammy-linux- oem-6.5' .
If verification is not done by 5 working days from today, this fix will be dropped from the source code, and this bug will be closed.
See https:/ /wiki.ubuntu. com/Testing/ EnableProposed for documentation how to enable and use -proposed. Thank you!