Package linux-crashdump in 20.04 configures kernel cmdline crashkernel incorrectly causing lock-up on kernel dump
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
linux-meta (Ubuntu) |
Confirmed
|
Undecided
|
Unassigned |
Bug Description
Package linux-crashdump in 20.04 configures kernel cmdline crashkernel incorrectly causing lock-up on kernel dump.
It is very simple to replicate. I was testing using QEmu virtualisation software, where I had QEmu running a 20.04 install within another 20.04 install.
Within the virtualisation install, simply install the package "linux-crashdump":
$ sudo apt install linux-crashdump
Answering Yes and Yes to the two questions asked:
|-----
| |
| |
| If you choose this option, a system reboot will trigger a restart into a |
| kernel loaded by kexec instead of going through the full system boot |
| loader process. |
| |
| Should kexec-tools handle reboots (sysvinit only)? |
| |
| <Yes> <No> |
| |
|-----
|-----
| |
| |
| If you choose this option, the kdump-tools mechanism will be enabled. A |
| reboot is still required in order to enable the crashkernel kernel |
| parameter. |
| |
| Should kdump-tools be enabled be default? |
| |
| <Yes> <No> |
| |
|-----
Check the kernel command-line Grub configured by package install:
$ cat /proc/cmdline
BOOT_IMAGE=
As you can see "crashkernel=
Furthermore, when I test with this default configuration by forcing a crash:
Enable dump then reboot testing with the following command:
sudo sysctl -w kernel.sysrq=1
Once this is done, you must become root, as just using sudo will not be sufficient. As the root user, you will have to issue the command echo c > /proc/sysrq-
Once the "echo c > /proc/sysrq-
To manually fix this issue I changed to "crashkernel=
$ sudo vim /etc/default/
GRUB_CMDLINE_
After reboot and retest of the forced crash commands, the kdump works and all the needed files are present after self-reboot:
$ ls /var/crash/
202103081345 kdump_lock kexec_cmd linux-image-
$ ls /var/crash/
dmesg.202103081345 dump.202103081345
In summary the problem is that the default kernel command-line configured by default "crashkernel=
This can be manually fixed giving a workaround but future user will suffer until the default installation configuration is fixed.
affects: | focal (Ubuntu) → ubuntu |
affects: | ubuntu → linux-meta (Ubuntu) |
tags: | added: focal |
Package linux-crashdump is faulty