makedumpfile falls back to cp on focal with 5.11 kernel
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
makedumpfile (Ubuntu) |
Fix Released
|
Medium
|
Unassigned | ||
Focal |
Fix Released
|
Medium
|
Ioanna Alifieraki |
Bug Description
[IMPACT]
When running Focal with the hwe 5.11 kernel makedumpfile is not working as it should.
Instead of compressing the dump makedumpfile falls back to cp.
This can create problems on systems with very large RAM and result into exhausting all storage on the host.
[FIX]
This can be resolved with upstream commit f1197543d1c4 ([PATCH] Retrieve MAX_PHYSMEM_BITS from vmcoreinfo).
The reason for falling back to cp is that without this patch makedumpfile calculates wrongly the memory layout.
This happens after the kernel commit 1d50e5d0c505 ("crash_core, vmcoreinfo: Append 'MAX_PHYSMEM_
With this commit applied, reading MAX_PHYSMEM_BITS from vmcoreinfo instead of inferring lead to correctly detecting the memory layout and creating the dump file properly.
[TEST CASE]
For testing a machine running focal with the 5.11 kernel is required.
Then trigger a crash.
On the console we can see that makedumpfile fails and `falls back to cp`.
In /var/crash we can see that no dmesg file is created and instead of the dump file
the uncompressed vmcoreinfo is created.
[WHERE PROBLEMS COULD OCCUR]
Any regression potential would involve the crash dump not being created after a crash in case kdump is configured.
[OTHER]
Only Focal with 5.11 kernel is affected.
Changed in makedumpfile (Ubuntu Focal): | |
assignee: | nobody → Ioanna Alifieraki (joalif) |
importance: | Undecided → Medium |
status: | New → Confirmed |
tags: | added: sts |
tags: | added: sts-sponsor-mfo |
Changed in makedumpfile (Ubuntu Focal): | |
status: | Confirmed → In Progress |
Changed in makedumpfile (Ubuntu Hirsute): | |
status: | New → In Progress |
assignee: | nobody → Ioanna Alifieraki (joalif) |
importance: | Undecided → Medium |
Changed in makedumpfile (Ubuntu): | |
status: | New → Fix Released |
Changed in makedumpfile (Ubuntu): | |
importance: | Undecided → Medium |
description: | updated |
description: | updated |
summary: |
- makedumpfile not properly working on focal with 5.11 kernel + makedumpfile falls back to cp on focal with 5.11 kernel |
no longer affects: | makedumpfile (Ubuntu Hirsute) |
Debdiff for Focal.