The patch for makedumpfile is the same, and applies cleanly.
It fixes the issue with the 6.2 HWE kernel, and causes no regression with the 5.15 GA kernel (ie, the dump file can still be opened in crash).
# sed 's/crashkernel=[^ "]\+/crashkernel=512M/' -i /etc/default/grub.d/kdump-tools.cfg
# update-grub
# reboot
# kdump-config show | grep state:
current state: ready to kdump
# echo c >/proc/sysrq-trigger
Jammy is also affected for the 6.2 HWE kernel.
The patch for makedumpfile is the same, and applies cleanly.
It fixes the issue with the 6.2 HWE kernel, and causes no regression with the 5.15 GA kernel (ie, the dump file can still be opened in crash).
Details:
---
Setup:
$ lxc launch --vm --config limits.memory=2GiB ubuntu:jammy mdf-j
$ lxc shell mdf-j
# apt update && apt install -y linux-image- generic- hwe-22. 04 linux-crashdump crash
# apt remove -y $(dpkg -l | awk '$2 ~ /linux-.*kvm/ { print $2 }')
# sed 's/crashkernel=[^ "]\+/crashkerne l=512M/ ' -i /etc/default/ grub.d/ kdump-tools. cfg sysrq-trigger
# update-grub
# reboot
# kdump-config show | grep state:
current state: ready to kdump
# echo c >/proc/
Debug symbols:
# wget https:/ /launchpad. net/ubuntu/ +archive/ primary/ +files/ linux-image- unsigned- 6.2.0-34- generic- dbgsym_ 6.2.0-34. 34~22.04. 1_amd64. ddeb unsigned- 6.2.0-34- generic- dbgsym_ 6.2.0-34. 34~22.04. 1_amd64. ddeb data.tar.xz debug/boot/ vmlinux- 6.2.0-34- generic lib/debug/ boot/vmlinux- 6.2.0-34- generic
# ar x linux-image-
# tar xvf data.tar.xz ./usr/lib/
./usr/
Upstream crash (for now):
# apt build-dep -y crash /github. com/crash- utility/ crash.git
# git clone https:/
# cd crash
# make
Original package:
---
# ./crash ./usr/lib/ debug/boot/ vmlinux- 6.2.0-34- generic /var/crash/ 202310101134/ dump.2023101011 34
...
please wait... (gathering task table data)
crash: page excluded: kernel virtual address: ffff9b13c2b826c8 type: "xa_node shift"
Patched package:
---
$ ./crash ./usr/lib/ debug/boot/ vmlinux- 6.2.0-34- generic /var/crash/ 202310101206/ dump.2023101012 06
...
RELEASE: 6.2.0-34-generic
VERSION: #34~22.04.1-Ubuntu SMP PREEMPT_DYNAMIC Thu Sep 7 13:12:03 UTC 2
...
crash>
Patched package & GA kernel:
---
(upstream crash and Ubuntu crash, both work)
$ ./crash ./usr/lib/ debug/boot/ vmlinux- 5.15.0- 86-generic /var/crash/ 202310101225/ dump.2023101012 25
...
RELEASE: 5.15.0-86-generic
VERSION: #96-Ubuntu SMP Wed Sep 20 08:23:49 UTC 2023
...
crash>
$ crash ./usr/lib/ debug/boot/ vmlinux- 5.15.0- 86-generic /var/crash/ 202310101225/ dump.2023101012 25
...
RELEASE: 5.15.0-86-generic
VERSION: #96-Ubuntu SMP Wed Sep 20 08:23:49 UTC 2023
...
crash>