Ubuntu 17.04: "Oops: Exception in kernel mode, sig: 5 [#1]" seen during fadump over ssh on Alpine machine.
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
linux (Ubuntu) |
Fix Released
|
High
|
Tim Gardner | ||
Zesty |
Fix Released
|
High
|
Tim Gardner | ||
makedumpfile (Ubuntu) |
Fix Released
|
Critical
|
Unassigned | ||
Zesty |
Fix Released
|
Critical
|
Unassigned |
Bug Description
Problem Description
=======
"Oops: Exception in kernel mode, sig: 5 [#1]" seen during fadump over ssh on Alpine machine.
Steps to Reproduce
=======
1. Configure fadump over ssh on Alpine machine.
ssh-keygen -t rsa
Add below lines in /etc/default/
SSH="ubuntu@
SSH_KEY=
# kdump-config propagate
# kdump-config load
# kdump-config show
2. Trigger crash
Logs
=======
ubuntu@alp9:~$ [ 41.884641] usercopy: kernel memory exposure attempt detected from c0000000fb001020 (task_struct) (61408 bytes)
[ 41.884668] kernel BUG at /build/
[ 41.884672] Oops: Exception in kernel mode, sig: 5 [#1]
[ 41.884674] SMP NR_CPUS=2048 [ 41.884676] NUMA
[ 41.884677] pSeries
[ 41.884679] Modules linked in: pseries_rng vmx_crypto ib_iser rdma_cm iw_cm ib_cm ib_core configfs iscsi_tcp libiscsi_tcp libiscsi scsi_transport_
[ 41.884714] CPU: 8 PID: 3977 Comm: makedumpfile Not tainted 4.9.0-11-generic #12-Ubuntu
[ 41.884717] task: c000000151fcdc00 task.stack: c000000150064000
[ 41.884719] NIP: c000000000312978 LR: c000000000312974 CTR: 00000000006338e4
[ 41.884722] REGS: c0000001500678d0 TRAP: 0700 Not tainted (4.9.0-11-generic)
[ 41.884725] MSR: 8000000000029033 <SF,EE,
[ 41.884734] CFAR: c000000000b26cac SOFTE: 1
GPR00: c000000000312974 c000000150067b50 c00000000141a400 0000000000000063
GPR04: c000000179a0ade8 c000000179a1fc40 0000000000a1b6ef 0000000000000000
GPR08: 0000000000000007 c000000000f7f87c 0000000178a90000 0000000000003ff0
GPR12: 0000000000002200 c00000000e794800 00003fff7f4d0010 00003fff7f4d0010
GPR16: 00000000bb010000 0000000054150c98 000000005412da08 0000000000010000
GPR20: 00000000540fea40 00003ffff8448150 0000000000000001 c000000001717798
GPR24: 0000000000010000 c000000150067cf0 0000000000000000 0000000000001020
GPR28: c0000000fb010000 0000000000000001 000000000000efe0 c0000000fb001020
NIP [c000000000312978] __check_
[ 41.884777] LR [c000000000312974] __check_
[ 41.884780] Call Trace:
[ 41.884782] [c000000150067b50] [c000000000312974] __check_
[ 41.884787] [c000000150067bd0] [c00000000006aea4] copy_to_
[ 41.884791] [c000000150067c10] [c000000000042360] copy_oldmem_
[ 41.884796] [c000000150067c60] [c0000000003cd5a8] read_from_
[ 41.884800] [c000000150067cd0] [c0000000003cd6fc] read_vmcore+
[ 41.884803] [c000000150067d40] [c0000000003b8918] proc_reg_
[ 41.884807] [c000000150067d70] [c000000000318f4c] __vfs_read+
[ 41.884811] [c000000150067d90] [c00000000031a1ac] vfs_read+0xbc/0x1b0
[ 41.884814] [c000000150067de0] [c00000000031bdc8] SyS_read+0x68/0x110
[ 41.884818] [c000000150067e30] [c00000000000bd84] system_
[ 41.884820] Instruction dump:
[ 41.884823] 60000000 60420000 3c82ff93 3ca2ff9d 38847130 38a5b3f8 3c62ff94 7fc8f378
[ 41.884830] 7fe6fb78 38635f20 488142dd 60000000 <0fe00000> 60420000 2ba30010 409d017c
[ 41.884838] ---[ end trace c33ccad89db3894a ]---
[ 41.884840]
Copying data : [ 43.7 %] -889527+439 records in
[ 41.805683] kdump-tools[3621]: 889744+1 records out
[ 41.805920] kdump-tools[3621]: 455549276 bytes (456 MB, 434 MiB) copied, 24.5065 s, 18.6 MB/s
[ 42.263162] kdump-tools[3621]: * kdump-tools: saved vmcore in ubuntu@
[ 42.264882] kdump-tools[3621]: * running makedumpfile --dump-dmesg /proc/vmcore /tmp/dmesg.
[ 42.268482] kdump-tools[3621]: The kernel version is not supported.
[ 42.268810] kdump-tools[3621]: The makedumpfile operation may be incomplete.
[ 42.269050] kdump-tools[3621]: The dmesg log is saved to /tmp/dmesg.
[ 42.269236] kdump-tools[3621]: makedumpfile Completed.
[ 42.652028] kdump-tools[3621]: * kdump-tools: saved dmesg content in ubuntu@
[ 42.654261] kdump-tools[3621]: Mon, 09 Jan 2017 07:10:38 -0500
[ 42.783431] kdump-tools[3621]: Failed to read reboot parameter file: No such file or directory
[ 42.783811] kdump-tools[3621]: Rebooting.
[ 42.864714] reboot: Restarting system
== Comment: #1 - Vaishnavi Bhat <email address hidden> - 2017-01-09 23:24:03 ==
>
> Oops: Exception in kernel mode, sig: 5 [#1]" seen during
> fadump over ssh on Alpine machine.
>
$ cat /etc/lsb-release
DISTRIB_ID=Ubuntu
DISTRIB_
DISTRIB_
DISTRIB_
$ uname -a
Linux alp9 4.9.0-11-generic #12-Ubuntu SMP Mon Dec 12 16:16:45 UTC 2016 ppc64le ppc64le ppc64le GNU/Linux
$ dpkg -l | grep makedumpfile
ii makedumpfile 1:1.6.0-4 ppc64el VMcore extraction tool
== Comment: #2 - Vaishnavi Bhat <email address hidden> - 2017-01-09 23:41:44 ==
> Copying data : [ 43.7 %] -889527+439 records in
> [ 41.805683] kdump-tools[3621]: 889744+1 records out
> [ 41.805920] kdump-tools[3621]: 455549276 bytes (456 MB, 434 MiB) copied,
> 24.5065 s, 18.6 MB/s
> [ 42.263162] kdump-tools[3621]: * kdump-tools: saved vmcore in
> ubuntu@
> [ 42.264882] kdump-tools[3621]: * running makedumpfile --dump-dmesg
> /proc/vmcore /tmp/dmesg.
> [ 42.268482] kdump-tools[3621]: The kernel version is not supported.
> [ 42.268810] kdump-tools[3621]: The makedumpfile operation may be
> incomplete.
> [ 42.269050] kdump-tools[3621]: The dmesg log is saved to
> /tmp/dmesg.
> [ 42.269236] kdump-tools[3621]: makedumpfile Completed.
> [ 42.652028] kdump-tools[3621]: * kdump-tools: saved dmesg content in
> ubuntu@
> [ 42.654261] kdump-tools[3621]: Mon, 09 Jan 2017 07:10:38 -0500
> [ 42.783431] kdump-tools[3621]: Failed to read reboot parameter file: No
> such file or directory
> [ 42.783811] kdump-tools[3621]: Rebooting.
> [ 42.864714] reboot: Restarting system
For the 4.8 kernel and above, we need to use makedumpfile 1.6.1 in order to avoid the "The kernel version is not supported." messages.
Mirroring to Canonical and requesting them to include the latest makedumpfile packages for Ubuntu 17.04 (4.9.0-11-generic)
tags: | added: architecture-ppc64le bugnameltc-150360 severity-high targetmilestone-inin1704 |
Changed in ubuntu: | |
assignee: | nobody → Taco Screen team (taco-screen-team) |
affects: | ubuntu → makedumpfile (Ubuntu) |
------- Comment From <email address hidden> 2017-01-11 10:55 EDT-------
Kernel commit f5509cc18daa ("mm: Hardened usercopy") introduced the
BUG() we are hitting here.
This BUG() was also hit while reading kcore, which was fixed with
kernel commit df04abfd181a ("fs/proc/kcore.c: Add bounce buffer
for ktext data"). Not convinced if similar fix is ideal here.
Working on the fix.
This issue is not just observed with ssh dump target but also with
other dump targets. Updated the bug summary accordingly..
Thanks
Hari