ISST-LTE:pVM:roselp2:ubuntu 16.10: crash failed to check vmcore of 4.8 kernel

Bug #1628173 reported by bugproxy
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
crash (Ubuntu)
In Progress
Medium
Chris J Arges

Bug Description

== Comment: #0 - Ping Tian Han - 2016-09-22 03:05:36 ==
---Problem Description---
crash cannot check vmcore of 4.8 kernel.

Then when trying to check the core with crash:

% sudo crash /usr/lib/debug/boot/vmlinux-4.8.0-14-generic /var/crash/201609212349/vmcore.201609212349

crash 7.1.5
Copyright (C) 2002-2016 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 NEC Corporation
Copyright (C) 1999, 2002, 2007 Silicon Graphics, Inc.
Copyright (C) 1999, 2000, 2001, 2002 Mission Critical Linux, 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) 7.6
Copyright (C) 2013 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 "powerpc64le-unknown-linux-gnu"...

please wait... (gathering kmem slab cache data)
crash: invalid kernel virtual address: 7aa9fe01000000 type: "pmd page"

---uname output---
Linux roselp2 4.8.0-14-generic #15-Ubuntu SMP Tue Sep 20 21:59:33 UTC 2016 ppc64le ppc64le ppc64le GNU/Linux

Machine Type = IBM,8286-42A, lpar

---Steps to Reproduce---
 1. install 4.8 kernel
2. trigger kdump to get vmcore
3. check the vmcore with crash

== Comment: #8 - Hari Krishna Bathini - 2016-09-24 14:12:23 ==
The below commit is needed for vtop address translation to succeed

  commit 182914debbb9a2671ef644027fedd339aa9c80e0
  Author: Dave Anderson <email address hidden>
  Date: Fri Sep 23 09:09:15 2016 -0400

    With the introduction of radix MMU in Power ISA 3.0, there are
    changes in kernel page table management accommodating it. This patch
    series makes appropriate changes here to work for such kernels.
    Also, this series fixes a few bugs along the way:

      ppc64: fix vtop page translation for 4K pages
      ppc64: Use kernel terminology for each level in 4-level page table
      ppc64/book3s: address changes in kernel v4.5
      ppc64/book3s: address change in page flags for PowerISA v3.0
      ppc64: use physical addresses and unfold pud for 64K page size
      ppc64/book3s: support big endian Linux page tables

    The patches are needed for Linux v4.5 and later kernels on all
    ppc64 hardware.
    (<email address hidden>)
--

Also, the below commit is needed

  commit 8ceb1ac628bf6a0a7f0bbfff030ec93081bca4cd
  Author: Dave Anderson <email address hidden>
  Date: Mon May 23 11:23:01 2016 -0400

    Fix for Linux commit 0139aa7b7fa12ceef095d99dc36606a5b10ab83a, which
    renamed the page._count member to page._refcount. Without the patch,
    certain "kmem" commands fail with the "kmem: invalid structure member
    offset: page_count".
    (<email address hidden>)

Thanks
Hari

bugproxy (bugproxy)
tags: added: architecture-ppc64le bugnameltc-146625 severity-critical targetmilestone-inin---
Changed in ubuntu:
assignee: nobody → Taco Screen team (taco-screen-team)
affects: ubuntu → crash (Ubuntu)
Revision history for this message
Leann Ogasawara (leannogasawara) wrote :
tags: added: kernel-4.8
Revision history for this message
Chris J Arges (arges) wrote :

Uploaded fix into yakkety, pending approval in queue.

Changed in crash (Ubuntu):
importance: Undecided → Medium
status: New → In Progress
assignee: Taco Screen team (taco-screen-team) → Chris J Arges (arges)
Revision history for this message
bugproxy (bugproxy) wrote : Comment bridged from LTC Bugzilla

------- Comment From <email address hidden> 2016-10-04 11:37 EDT-------
Hello,

> Uploaded fix into yakkety, pending approval in queue.

Was it accepted in yakkety already?

Thank you

Revision history for this message
bugproxy (bugproxy) wrote :

------- Comment From <email address hidden> 2016-10-05 12:40 EDT-------
Issue recreates on today's kernel: 4.8.0-17-generic.. Please let us know when will the patch gets included to yakkety..

Thanks,
Manju

Revision history for this message
bugproxy (bugproxy) wrote :

------- Comment From <email address hidden> 2016-10-07 10:18 EDT-------
I saw that the crash package is already included in the -proposed archive. Can you test with it?

$ apt-cache madison crash
crash | 7.1.5-1ubuntu2 | http://us.ports.ubuntu.com/ubuntu-ports yakkety-proposed/main ppc64el Packages

Revision history for this message
bugproxy (bugproxy) wrote :

------- Comment From <email address hidden> 2016-10-12 22:15 EDT-------
(In reply to comment #21)
> I saw that the crash package is already included in the -proposed archive.
> Can you test with it?
>
> $ apt-cache madison crash
> crash | 7.1.5-1ubuntu2 | http://us.ports.ubuntu.com/ubuntu-ports
> yakkety-proposed/main ppc64el Packages

This bug has been fixed on the new version. Thanks.

tags: added: targetmilestone-inin1610
removed: targetmilestone-inin---
Revision history for this message
bugproxy (bugproxy) wrote :

------- Comment From <email address hidden> 2017-01-10 08:19 EDT-------
FYI. Seeing the same thing on Zesty.

Revision history for this message
bugproxy (bugproxy) wrote :

------- Comment From <email address hidden> 2017-02-27 02:21 EDT-------
-- Comment from Ankit --
(In reply to comment #34)
> FYI. Seeing the same thing on Zesty.

Below commits are needed by crash to work on linux-4.10 kernel.

commit e37dd7852f590e3334420e5b41a833085ab1d0b0
Author: Dave Anderson <email address hidden>
Date: Tue Jan 17 14:15:11 2017 -0500

Prepare for the kernel's "taint_flag.true" and "taint_flag.false"
member names to be changed to "c_true" and "c_false", which fixes
build problems when an out-of-tree module defines "true" or "false".
(<email address hidden>)

commit 24a696228c56fd4354d29abe05b206373e0c8bfb
Author: Dave Anderson <email address hidden>
Date: Thu Jan 5 14:55:18 2017 -0500

Fix for Linux 4.10 commit 7fd8329ba502ef76dd91db561c7aed696b2c7720
"taint/module: Clean up global and module taint flags handling".
Without the patch, when running against Linux 4.10-rc1 and later
kernels, the crash utility fails during session initialization with
the message "crash: invalid structure size: tnt".
(<email address hidden>)

I have verified it on crash-utiltity source shipped by distro.(Ubuntu-17.04)

Revision history for this message
bugproxy (bugproxy) wrote :

------- Comment From <email address hidden> 2017-05-19 06:35 EDT-------
*** Bug 154758 has been marked as a duplicate of this bug. ***

Revision history for this message
bugproxy (bugproxy) wrote :

------- Comment From <email address hidden> 2017-08-31 17:54 EDT-------
Closing this bug against 16.10 as it is EOL and linux-crashdump has been updated for zesty.

tags: added: targetmilestone-inin1704
removed: targetmilestone-inin1610
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.