2023-10-03 03:15:20 |
Chengen Du |
bug |
|
|
added bug |
2023-10-03 03:16:46 |
Chengen Du |
nominated for series |
|
Ubuntu Lunar |
|
2023-10-03 03:16:46 |
Chengen Du |
bug task added |
|
makedumpfile (Ubuntu Lunar) |
|
2023-10-03 03:17:12 |
Chengen Du |
makedumpfile (Ubuntu Lunar): assignee |
|
Chengen Du (chengendu) |
|
2023-10-03 03:17:38 |
Chengen Du |
makedumpfile (Ubuntu Lunar): status |
New |
In Progress |
|
2023-10-03 10:00:49 |
Chengen Du |
attachment added |
|
lp2038248-makedumpfile-lunar.debdiff https://bugs.launchpad.net/ubuntu/+source/makedumpfile/+bug/2038248/+attachment/5706208/+files/lp2038248-makedumpfile-lunar.debdiff |
|
2023-10-03 12:19:16 |
Ubuntu Foundations Team Bug Bot |
tags |
|
patch |
|
2023-10-03 12:19:18 |
Ubuntu Foundations Team Bug Bot |
bug |
|
|
added subscriber Ubuntu Sponsors |
2023-10-03 15:18:12 |
Mauricio Faria de Oliveira |
removed subscriber Ubuntu Sponsors |
|
|
|
2023-10-03 15:18:32 |
Mauricio Faria de Oliveira |
bug |
|
|
added subscriber Support Engineering Sponsors |
2023-10-08 00:30:16 |
Mauricio Faria de Oliveira |
tags |
patch |
patch se-sponsor-mfo |
|
2023-10-08 00:34:43 |
Mauricio Faria de Oliveira |
attachment added |
|
lp2038248-makedumpfile-lunar-v2.debdiff https://bugs.launchpad.net/ubuntu/+source/makedumpfile/+bug/2038248/+attachment/5707762/+files/lp2038248-makedumpfile-lunar-v2.debdiff |
|
2023-10-08 01:10:01 |
Mauricio Faria de Oliveira |
nominated for series |
|
Ubuntu Jammy |
|
2023-10-08 01:10:01 |
Mauricio Faria de Oliveira |
bug task added |
|
makedumpfile (Ubuntu Jammy) |
|
2023-10-08 01:10:09 |
Mauricio Faria de Oliveira |
makedumpfile (Ubuntu Jammy): status |
New |
Incomplete |
|
2023-10-08 01:10:18 |
Mauricio Faria de Oliveira |
makedumpfile (Ubuntu Jammy): assignee |
|
Chengen Du (chengendu) |
|
2023-10-08 01:10:21 |
Mauricio Faria de Oliveira |
makedumpfile (Ubuntu Lunar): importance |
Undecided |
Medium |
|
2023-10-08 01:10:24 |
Mauricio Faria de Oliveira |
makedumpfile (Ubuntu Jammy): importance |
Undecided |
Medium |
|
2023-10-08 01:10:31 |
Mauricio Faria de Oliveira |
makedumpfile (Ubuntu): status |
New |
Fix Released |
|
2023-10-08 03:44:32 |
Ubuntu Archive Robot |
bug |
|
|
added subscriber Mauricio Faria de Oliveira |
2023-10-10 13:39:28 |
Mauricio Faria de Oliveira |
makedumpfile (Ubuntu Jammy): status |
Incomplete |
Confirmed |
|
2023-10-10 14:01:07 |
Mauricio Faria de Oliveira |
description |
[Impact]
The Kernel commit 130d4df57390 ("mm/sl[au]b: rearrange struct slab fields to allow larger rcu_head"), included in Linux 6.2-rc1 and later versions, introduced a change that aligns the offset of slab.slabs with that of page.mapping.
However, this modification unintentionally causes the makedumpfile command with the -d 8 option, meant to exclude user data, to incorrectly exclude certain slab pages.
Consequently, when utilizing dumpfiles generated in this manner, the "crash" utility may encounter an error when attempting to initiate a session:
crash: page excluded: kernel virtual address: ffff0000e269d428 type: "xa_node shift"
[Fix]
An upstream fix is available.
==========
commit 5f17bdd2128998a3eeeb4521d136a192222fadb6
Author: Kazuhito Hagio <k-hagio-ab@nec.com>
Date: Wed Dec 21 11:06:39 2022 +0900
[PATCH] Fix wrong exclusion of slab pages on Linux 6.2-rc1
==========
[Test Plan]
1. Install the required packages and then proceed to reboot the machine.
# sudo apt install crash linux-crashdump -y
# reboot
2. To check the status of kdump, use the `kdump-config show` command.
# kdump-config show
DUMP_MODE: kdump
USE_KDUMP: 1
KDUMP_COREDIR: /var/crash
crashkernel addr: 0x64000000
/var/lib/kdump/vmlinuz: symbolic link to /boot/vmlinuz-6.2.0-33-generic
kdump initrd:
/var/lib/kdump/initrd.img: symbolic link to /var/lib/kdump/initrd.img-6.2.0-33-generic
current state: ready to kdump
kexec command:
/sbin/kexec -p --command-line="BOOT_IMAGE=/boot/vmlinuz-6.2.0-33-generic root=UUID=3e72f5d5-870b-4b8e-9a0d-8ba920391379 ro console=tty1 console=ttyS0 reset_devices systemd.unit=kdump-tools-dump.service nr_cpus=1 irqpoll usbcore.nousb" --initrd=/var/lib/kdump/initrd.img /var/lib/kdump/vmlinuz
3. To trigger a crash dump forcefully, execute the `echo c | sudo tee /proc/sysrq-trigger` command.
4. Download the kernel .ddeb file, which will be used for analyzing the dump file.
# sudo -i
# cd /var/crash
# pull-lp-ddebs linux-image-unsigned-$(uname -r)
# dpkg-deb -x linux-image-unsigned-$(uname -r)-*.ddeb dbgsym-$(uname -r)
5. Utilize the "crash" utility to parse and analyze the dump file.
# crash dbgsym-$(uname -r)/usr/lib/debug/boot/vmlinux-$(uname -r) XXXX/dump.XXXX
crash 8.0.3++
Copyright (C) 2002-2022 Red Hat, Inc.
Copyright (C) 2004, 2005, 2006, 2010 IBM Corporation
Copyright (C) 1999-2006 Hewlett-Packard Co
Copyright (C) 2005, 2006, 2011, 2012 Fujitsu Limited
Copyright (C) 2006, 2007 VA Linux Systems Japan K.K.
Copyright (C) 2005, 2011, 2020-2022 NEC Corporation
Copyright (C) 1999, 2002, 2007 Silicon Graphics, Inc.
Copyright (C) 1999, 2000, 2001, 2002 Mission Critical Linux, Inc.
Copyright (C) 2015, 2021 VMware, Inc.
This program is free software, covered by the GNU General Public License,
and you are welcome to change it and/or distribute copies of it under
certain conditions. Enter "help copying" to see the conditions.
This program has absolutely no warranty. Enter "help warranty" for details.
GNU gdb (GDB) 10.2
Copyright (C) 2021 Free Software Foundation, Inc.
License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html>
This is free software: you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by law.
Type "show copying" and "show warranty" for details.
This GDB was configured as "aarch64-unknown-linux-gnu".
Type "show configuration" for configuration details.
Find the GDB manual and other documentation resources online at:
<http://www.gnu.org/software/gdb/documentation/>.
For help, type "help".
Type "apropos word" to search for commands related to "word"...
please wait... (gathering task table data)
crash: page excluded: kernel virtual address: ffff0000e269d428 type: "xa_node shift"
[Where problems could occur]
The patch has altered the method for excluding slab pages, aligning with the structural changes introduced in Linux 6.2-rc1.
This modification is essential for Linux kernel 6.2.
However, it's crucial to note that this change may impact the content of the dump file, potentially leading to a situation where the "crash" utility is unable to parse it in the worst-case scenario. |
[Impact]
The kernel crashdumps generated by makedumpfile on kernel 6.2
(affects Lunar, and Jammy with the HWE kernel) might not open
on crash, due to kernel changes not reflected in makedumpfile.
The Kernel commit 130d4df57390 ("mm/sl[au]b: rearrange struct slab fields to allow larger rcu_head"), included in Linux 6.2-rc1 and later versions, introduced a change that aligns the offset of slab.slabs with that of page.mapping.
However, this modification unintentionally causes the makedumpfile command with the -d 8 option, meant to exclude user data, to incorrectly exclude certain slab pages.
Consequently, when utilizing dumpfiles generated in this manner, the "crash" utility may encounter an error when attempting to initiate a session:
crash: page excluded: kernel virtual address: ffff0000e269d428 type: "xa_node shift"
[Fix]
An upstream fix is available.
==========
commit 5f17bdd2128998a3eeeb4521d136a192222fadb6
Author: Kazuhito Hagio <k-hagio-ab@nec.com>
Date: Wed Dec 21 11:06:39 2022 +0900
[PATCH] Fix wrong exclusion of slab pages on Linux 6.2-rc1
==========
[Test Plan]
1. Install the required packages and then proceed to reboot the machine.
# sudo apt install crash linux-crashdump -y
# reboot
2. To check the status of kdump, use the `kdump-config show` command.
# kdump-config show
DUMP_MODE: kdump
USE_KDUMP: 1
KDUMP_COREDIR: /var/crash
crashkernel addr: 0x64000000
/var/lib/kdump/vmlinuz: symbolic link to /boot/vmlinuz-6.2.0-33-generic
kdump initrd:
/var/lib/kdump/initrd.img: symbolic link to /var/lib/kdump/initrd.img-6.2.0-33-generic
current state: ready to kdump
kexec command:
/sbin/kexec -p --command-line="BOOT_IMAGE=/boot/vmlinuz-6.2.0-33-generic root=UUID=3e72f5d5-870b-4b8e-9a0d-8ba920391379 ro console=tty1 console=ttyS0 reset_devices systemd.unit=kdump-tools-dump.service nr_cpus=1 irqpoll usbcore.nousb" --initrd=/var/lib/kdump/initrd.img /var/lib/kdump/vmlinuz
3. To trigger a crash dump forcefully, execute the `echo c | sudo tee /proc/sysrq-trigger` command.
4. Download the kernel .ddeb file, which will be used for analyzing the dump file.
# sudo -i
# cd /var/crash
# pull-lp-ddebs linux-image-unsigned-$(uname -r)
# dpkg-deb -x linux-image-unsigned-$(uname -r)-*.ddeb dbgsym-$(uname -r)
5. Utilize the "crash" utility to parse and analyze the dump file.
# crash dbgsym-$(uname -r)/usr/lib/debug/boot/vmlinux-$(uname -r) XXXX/dump.XXXX
...
please wait... (gathering task table data)
crash: page excluded: kernel virtual address: ffff0000e269d428 type: "xa_node shift"
[Where problems could occur]
The patch has altered the method for excluding slab pages, aligning with the structural changes introduced in Linux 6.2-rc1.
This modification is essential for Linux kernel 6.2.
However, it's crucial to note that this change may impact the content of the dump file, potentially leading to a situation where the "crash" utility is unable to parse it in the worst-case scenario. |
|
2023-10-10 14:05:30 |
Mauricio Faria de Oliveira |
attachment added |
|
lp2038248-makedumpfile-jammy.debdiff https://bugs.launchpad.net/ubuntu/+source/makedumpfile/+bug/2038248/+attachment/5708297/+files/lp2038248-makedumpfile-jammy.debdiff |
|
2023-10-10 14:19:30 |
Mauricio Faria de Oliveira |
makedumpfile (Ubuntu Jammy): status |
Confirmed |
In Progress |
|
2023-10-13 11:39:25 |
Timo Aaltonen |
makedumpfile (Ubuntu Lunar): status |
In Progress |
Fix Committed |
|
2023-10-13 11:39:26 |
Timo Aaltonen |
bug |
|
|
added subscriber Ubuntu Stable Release Updates Team |
2023-10-13 11:39:27 |
Timo Aaltonen |
bug |
|
|
added subscriber SRU Verification |
2023-10-13 11:39:30 |
Timo Aaltonen |
tags |
patch se-sponsor-mfo |
patch se-sponsor-mfo verification-needed verification-needed-lunar |
|
2023-10-13 11:39:56 |
Timo Aaltonen |
makedumpfile (Ubuntu Jammy): status |
In Progress |
Fix Committed |
|
2023-10-13 11:39:59 |
Timo Aaltonen |
tags |
patch se-sponsor-mfo verification-needed verification-needed-lunar |
patch se-sponsor-mfo verification-needed verification-needed-jammy verification-needed-lunar |
|
2023-10-17 06:51:47 |
Chengen Du |
tags |
patch se-sponsor-mfo verification-needed verification-needed-jammy verification-needed-lunar |
patch se-sponsor-mfo verification-done verification-done-jammy verification-done-lunar |
|