Comment 7 for bug 2038248

Revision history for this message
Mauricio Faria de Oliveira (mfo) wrote :

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=[^ "]\+/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

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
 # ar x linux-image-unsigned-6.2.0-34-generic-dbgsym_6.2.0-34.34~22.04.1_amd64.ddeb data.tar.xz
 # tar xvf data.tar.xz ./usr/lib/debug/boot/vmlinux-6.2.0-34-generic
 ./usr/lib/debug/boot/vmlinux-6.2.0-34-generic

Upstream crash (for now):

 # apt build-dep -y crash
 # git clone https://github.com/crash-utility/crash.git
 # cd crash
 # make

Original package:
---

 # ./crash ./usr/lib/debug/boot/vmlinux-6.2.0-34-generic /var/crash/202310101134/dump.202310101134
 ...
 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.202310101206
 ...
      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.202310101225
 ...
      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.202310101225
 ...
      RELEASE: 5.15.0-86-generic
      VERSION: #96-Ubuntu SMP Wed Sep 20 08:23:49 UTC 2023
 ...
 crash>