ISST-LTE: KVM:UBUNTU1804: kdump is not working on UbuntuKVM guest
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
The Ubuntu-power-systems project |
Fix Released
|
Critical
|
Canonical Kernel Team | ||
linux (Ubuntu) |
Fix Released
|
Critical
|
Joseph Salisbury | ||
Bionic |
Fix Released
|
Critical
|
Joseph Salisbury |
Bug Description
== Comment: #0 - Chanh H. Nguyen <email address hidden> - 2018-01-23 14:55:05 ==
root@boslcp4g5:~# cat /etc/os-release
NAME="Ubuntu"
VERSION="18.04 LTS (Bionic Beaver)"
ID=ubuntu
ID_LIKE=debian
PRETTY_NAME="Ubuntu Bionic Beaver (development branch)"
VERSION_ID="18.04"
HOME_URL="https:/
SUPPORT_URL="https:/
BUG_REPORT_URL="https:/
PRIVACY_
VERSION_
UBUNTU_
root@boslcp4g5:~# uname -r
4.13.0-25-generic
root@boslcp4g5:~# kdump-config show
DUMP_MODE: kdump
USE_KDUMP: 1
KDUMP_SYSCTL: kernel.
KDUMP_COREDIR: /var/crash
crashkernel addr:
/var/
kdump initrd:
/var/
current state: ready to kdump
kexec command:
/sbin/kexec -p --command-
root@boslcp4g5:~# kdump-config status
current state : ready to kdump
root@boslcp4g5:~# echo c > /proc/sysrq-trigger
[ 176.911191] sysrq: SysRq : This sysrq operation is disabled.
root@boslcp4g5:~# sysctl -w kernel.sysrq=1
kernel.sysrq = 1
root@boslcp4g5:~# echo c > /proc/sysrq-trigger
[ 240.304466] sysrq: SysRq : Trigger a crash
[ 240.304545] Unable to handle kernel paging request for data at address 0x00000000
[ 240.304656] Faulting instruction address: 0xc000000000792f88
[ 240.304771] Oops: Kernel access of bad area, sig: 11 [#1]
[ 240.304846] SMP NR_CPUS=2048
[ 240.304848] NUMA
[ 240.304903] pSeries
[ 240.305000] Modules linked in: sctp_diag sctp libcrc32c dccp_diag dccp tcp_diag udp_diag raw_diag inet_diag unix_diag af_packet_diag netlink_diag rpcsec_gss_krb5 auth_rpcgss nfsv4 nfs lockd grace fscache dm_service_time vmx_crypto crct10dif_vpmsum binfmt_misc dm_multipath scsi_dh_rdac scsi_dh_emc scsi_dh_alua sunrpc sch_fq_codel ip_tables x_tables autofs4 btrfs xor raid6_pq crc32c_vpmsum virtio_net virtio_scsi
[ 240.305776] CPU: 12 PID: 1860 Comm: bash Not tainted 4.13.0-25-generic #29-Ubuntu
[ 240.305886] task: c0000000ff904500 task.stack: c0000001f2d7c000
[ 240.305979] NIP: c000000000792f88 LR: c000000000793eb8 CTR: c000000000792f60
[ 240.306087] REGS: c0000001f2d7f9f0 TRAP: 0300 Not tainted (4.13.0-25-generic)
[ 240.306195] MSR: 8000000000009033 <SF,EE,
[ 240.306207] CR: 28422222 XER: 20040000
[ 240.306338] CFAR: c000000000793eb4 DAR: 0000000000000000 DSISR: 42000000 SOFTE: 1
[ 240.306338] GPR00: c000000000793eb8 c0000001f2d7fc70 c0000000015f6200 0000000000000063
[ 240.306338] GPR04: c0000001feeeade8 c0000001fef02068 6967676572206120 63726173680d0a72
[ 240.306338] GPR08: 0000000000000007 0000000000000001 0000000000000000 0000000000000000
[ 240.306338] GPR12: c000000000792f60 c000000007ac7e00 0000000010180df8 0000000010189e30
[ 240.306338] GPR16: 0000000010189ea8 0000000010151210 000000001018bd58 000000001018de48
[ 240.306338] GPR20: 0000000028bc0268 0000000000000001 0000000010164590 0000000010163bb0
[ 240.306338] GPR24: 00007fffdcb37d34 00007fffdcb37d30 c0000000014fa770 0000000000000002
[ 240.306338] GPR28: 0000000000000063 0000000000000007 c0000000014824f4 c0000000014fab10
[ 240.307346] NIP [c000000000792f88] sysrq_handle_
[ 240.307474] LR [c000000000793eb8] __handle_
[ 240.307553] Call Trace:
[ 240.307594] [c0000001f2d7fc70] [c000000000793e98] __handle_
[ 240.307715] [c0000001f2d7fd10] [c0000000007946b4] write_sysrq_
[ 240.307850] [c0000001f2d7fd40] [c00000000044fb28] proc_reg_
[ 240.307951] [c0000001f2d7fd70] [c0000000003a160c] __vfs_write+
[ 240.308049] [c0000001f2d7fd90] [c0000000003a3248] vfs_write+
[ 240.308149] [c0000001f2d7fde0] [c0000000003a50c8] SyS_write+
[ 240.308248] [c0000001f2d7fe30] [c00000000000b184] system_
[ 240.308340] Instruction dump:
[ 240.308400] 4bfff9f1 4bfffe50 3c4c00e6 384232a0 7c0802a6 60000000 39200001 3d42001d
[ 240.308522] 394adab0 912a0000 7c0004ac 39400000 <992a0000> 4e800020 3c4c00e6 38423270
[ 240.308644] ---[ end trace 97aaa45518689ad0 ]---
[ 240.314197]
[ 240.314408] Sending IPI to other CPUs
[ 240.357424] IPI complete
[ 240.377038] kexec: Starting switchover sequence.
<<<<<<<<<<<< it stops here.....
== Comment: #2 - MAMATHA INAMDAR <email address hidden> - 2018-01-24 01:07:12 ==
Hi Chanh,
We need following patch which will fix this issue. I think this patch is not integrated in 18.04 kernel
From 2621e945fbf1d6d
From: Michael Ellerman <email address hidden>
Date: Fri, 24 Nov 2017 14:51:02 +1100
Subject: [PATCH] powerpc/kexec: Fix kexec/kdump in P9 guest kernels
The code that cleans up the IAMR/AMOR before kexec'ing failed to
remember that when we're running as a guest AMOR is not writable, it's
hypervisor privileged.
They symptom is that the kexec stops before entering purgatory and
nothing else is seen on the console. If you examine the state of the
system all threads will be in the 0x700 program check handler.
Fix it by making the write to AMOR dependent on HV mode.
Fixes: 1e2a516e89fc ("powerpc/kexec: Fix radix to hash kexec due to IAMR/AMOR")
Cc: <email address hidden> # v4.10+
Reported-by: Yilin Zhang <email address hidden>
Debugged-by: David Gibson <email address hidden>
Signed-off-by: Michael Ellerman <email address hidden>
Acked-by: Balbir Singh <email address hidden>
Reviewed-by: David Gibson <email address hidden>
Tested-by: David Gibson <email address hidden>
Signed-off-by: Michael Ellerman <email address hidden>
diff --git a/arch/
index 8ac0bd2..3280953 100644
--- a/arch/
+++ b/arch/
@@ -623,7 +623,9 @@ BEGIN_FTR_SECTION
* NOTE, we rely on r0 being 0 from above.
*/
mtspr SPRN_IAMR,r0
+BEGIN_
mtspr SPRN_AMOR,r0
+END_FTR_
END_FTR_
/* save regs for local vars on new stack.
--
tags: | added: architecture-ppc64le bugnameltc-163889 severity-critical targetmilestone-inin--- |
Changed in ubuntu: | |
assignee: | nobody → Ubuntu on IBM Power Systems Bug Triage (ubuntu-power-triage) |
affects: | ubuntu → kernel-package (Ubuntu) |
affects: | kernel-package (Ubuntu) → linux (Ubuntu) |
Changed in ubuntu-power-systems: | |
importance: | Undecided → Critical |
assignee: | nobody → Canonical Kernel Team (canonical-kernel-team) |
tags: | added: triage-g |
tags: |
added: kernel-da-key removed: triage-g |
tags: |
added: ppc64el-kdump removed: kernel-da-key |
tags: | added: triage-g |
tags: | added: kernel-da-key |
Changed in linux (Ubuntu): | |
importance: | Undecided → Critical |
status: | New → Triaged |
Changed in ubuntu-power-systems: | |
status: | New → Triaged |
Changed in ubuntu-power-systems: | |
status: | Triaged → In Progress |
Changed in ubuntu-power-systems: | |
status: | In Progress → Fix Committed |
Changed in linux (Ubuntu Bionic): | |
status: | Fix Committed → Fix Released |
Changed in ubuntu-power-systems: | |
status: | Fix Committed → Fix Released |
tags: |
added: targetmilestone-inin1804 removed: targetmilestone-inin--- |
tags: | added: cscc |
I built a test kernel with commit 2621e945fbf1d6d f5f3f0ba7be5bae 3d2cf9b6a5. The test kernel can be downloaded from: kernel. ubuntu. com/~jsalisbury /lp1745104
http://
Can you test this kernel and see if it resolves this bug?
Note, to test this kernel, you need to install both the linux-image and linux-image-extra .deb packages.
Thanks in advance!