arm64: crash: invalid/unsupported page size: 6144

Bug #1460941 reported by Ming Lei
8
This bug affects 1 person
Affects Status Importance Assigned to Milestone
crash (Ubuntu)
Fix Released
Undecided
Unassigned
Trusty
Fix Released
Undecided
Unassigned
Utopic
Fix Released
Undecided
Unassigned
Vivid
Fix Released
Undecided
Unassigned
Wily
Fix Released
Undecided
Unassigned

Bug Description

[Impact]

crash in ARM64 can't be used on ubuntu trusty, utopic and vivid when debugging a new kernel like 4.1-rc+

[Test Case]

sudo crash ~/vmlinux
crash will exit with failure log of 'crash: invalid/unknown page size:
6144', see detailed steps in [1].

[Regression Potential]

The proposed patch has been merged upstream, so there shouldn't be potential regression.

Also These changes are to code that only gets compiled on arm64, so
there's no risk to other architectures.

[Other Info]

After running crash from trusty, the failure log in [1] can be observed.

Then I built crash from wily directly, the similar failure[2] can be observed too.

[1] failure log
ubuntu@am2:~/git/crash-wily$ sudo crash ~/vmlinux

crash 7.0.3
Copyright (C) 2002-2013 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.

crash: invalid/unknown page size: 6144

[2]
ubuntu@am2:~/git/crash-wily$ sudo ./crash ~/vmlinux
[sudo] password for ubuntu:

crash 7.0.8
Copyright (C) 2002-2014 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.

crash: invalid/unsupported page size: 6144

Revision history for this message
Ming Lei (tom-leiming) wrote :

The issue can be fixed by the following upstream commit:

commit 7623eee9046015b65a1f63f6bf07ab7805c36eb4
Author: Dave Anderson <email address hidden>
Date: Tue May 19 10:20:04 2015 -0400

    Fix for the ARM64 page size determination on Linux 4.1 and later
    kernels. Without the patch, the crash session fails during
    initialization with the message "crash: invalid/unsupported page
    size: 98304" on kernels with 64K pages. On kernels with 4K pages,
    the message is "crash: invalid/unsupported page size: 6144". In
    addition, the "-p <page-size>" command line override option
    had no effect on ARM64; that has been fixed as well.
    (<email address hidden>)

Revision history for this message
Andrew Cloke (andrew-cloke) wrote :

From a private email thread, the next step is to merge this commit to the upstream Debian crash archive, and then re-sync the Ubuntu crash archive from Debian.

Ming Lei (tom-leiming)
description: updated
Revision history for this message
dann frazier (dannf) wrote :

Resolved for wily w/ Debian sync of upstream 7.1.1.

Changed in crash (Ubuntu Wily):
status: New → Fix Released
Ming Lei (tom-leiming)
description: updated
Revision history for this message
dann frazier (dannf) wrote :
Revision history for this message
dann frazier (dannf) wrote :
Revision history for this message
dann frazier (dannf) wrote :
Revision history for this message
Chris J Arges (arges) wrote :

Sponsored for T/U/V.

dann frazier (dannf)
Changed in crash (Ubuntu Trusty):
status: New → In Progress
Changed in crash (Ubuntu Utopic):
status: New → In Progress
Changed in crash (Ubuntu Vivid):
status: New → In Progress
Revision history for this message
Brian Murray (brian-murray) wrote : Please test proposed package

Hello Ming, or anyone else affected,

Accepted crash into vivid-proposed. The package will build now and be available at https://launchpad.net/ubuntu/+source/crash/7.0.8-1ubuntu3.1 in a few hours, and then in the -proposed repository.

Please help us by testing this new package. See https://wiki.ubuntu.com/Testing/EnableProposed for documentation how to enable and use -proposed. Your feedback will aid us getting this update out to other Ubuntu users.

If this package fixes the bug for you, please add a comment to this bug, mentioning the version of the package you tested, and change the tag from verification-needed to verification-done. If it does not fix the bug for you, please add a comment stating that, and change the tag to verification-failed. In either case, details of your testing will help us make a better decision.

Further information regarding the verification process can be found at https://wiki.ubuntu.com/QATeam/PerformingSRUVerification . Thank you in advance!

Changed in crash (Ubuntu Vivid):
status: In Progress → Fix Committed
tags: added: verification-needed
Changed in crash (Ubuntu Utopic):
status: In Progress → Fix Committed
Revision history for this message
Brian Murray (brian-murray) wrote :

Hello Ming, or anyone else affected,

Accepted crash into utopic-proposed. The package will build now and be available at https://launchpad.net/ubuntu/+source/crash/7.0.8-1ubuntu1.2 in a few hours, and then in the -proposed repository.

Please help us by testing this new package. See https://wiki.ubuntu.com/Testing/EnableProposed for documentation how to enable and use -proposed. Your feedback will aid us getting this update out to other Ubuntu users.

If this package fixes the bug for you, please add a comment to this bug, mentioning the version of the package you tested, and change the tag from verification-needed to verification-done. If it does not fix the bug for you, please add a comment stating that, and change the tag to verification-failed. In either case, details of your testing will help us make a better decision.

Further information regarding the verification process can be found at https://wiki.ubuntu.com/QATeam/PerformingSRUVerification . Thank you in advance!

Changed in crash (Ubuntu Trusty):
status: In Progress → Fix Committed
Revision history for this message
Brian Murray (brian-murray) wrote :

Hello Ming, or anyone else affected,

Accepted crash into trusty-proposed. The package will build now and be available at https://launchpad.net/ubuntu/+source/crash/7.0.3-3ubuntu4.2 in a few hours, and then in the -proposed repository.

Please help us by testing this new package. See https://wiki.ubuntu.com/Testing/EnableProposed for documentation how to enable and use -proposed. Your feedback will aid us getting this update out to other Ubuntu users.

If this package fixes the bug for you, please add a comment to this bug, mentioning the version of the package you tested, and change the tag from verification-needed to verification-done. If it does not fix the bug for you, please add a comment stating that, and change the tag to verification-failed. In either case, details of your testing will help us make a better decision.

Further information regarding the verification process can be found at https://wiki.ubuntu.com/QATeam/PerformingSRUVerification . Thank you in advance!

Revision history for this message
Ming Lei (tom-leiming) wrote :

Verification on trusty:

ubuntu@am2:~$ sudo crash vmlinux
[sudo] password for ubuntu:

crash 7.0.3
Copyright (C) 2002-2013 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 "aarch64-unknown-linux-gnu"...

      KERNEL: vmlinux
    DUMPFILE: /dev/mem
        CPUS: 8
        DATE: Thu Jun 25 21:58:34 2015
      UPTIME: 00:03:29
LOAD AVERAGE: 0.08, 0.03, 0.01
       TASKS: 130
    NODENAME: am2
     RELEASE: 3.13.11-ckt21+
     VERSION: #35 SMP PREEMPT Thu Jun 18 03:19:42 EDT 2015
     MACHINE: aarch64 (unknown Mhz)
      MEMORY: 16 GB
         PID: 1766
     COMMAND: "crash"
        TASK: ffffffc3e79be180 [THREAD_INFO: ffffffc3e3c44000]
         CPU: 3
       STATE: TASK_RUNNING (ACTIVE)

crash> bt -e
PID: 1766 TASK: ffffffc3e79be180 CPU: 5 COMMAND: "crash"
USER-MODE EXCEPTION FRAME AT: ffffffc3e3c47ed0
     PC: 0000007fa68812cc LR: 000000000047ad2c SP: 0000007fd2a4c400
    X29: 0000007fd2a4c400 X28: 000000000094b000 X27: 0000000000001000
    X26: 0000007fa67c4710 X25: ffffffc3e3c47000 X24: 0000000000982080
    X23: 00000000009fd488 X22: 0000000000000004 X21: 0000000000001000
    X20: 000000000094b000 X19: 00000043e3c47000 X18: 0000007fd2a4ca60
    X17: 0000007fa68812b0 X16: 0000000000000000 X15: 0000007fa690b590
    X14: 0000000000000000 X13: 0000000000000000 X12: 0000000000000028
    X11: 0000000000000005 X10: 0000000028521830 X9: 0000000000000004
     X8: 000000000000003f X7: 000000000099a030 X6: 000000000000003f
     X5: 000000000047ac18 X4: 000000000099f9e8 X3: ffffffc3e3c47000
     X2: 0000000000001000 X1: 00000000009fd488 X0: 0000000000000004
    ORIG_X0: 0000000000000004 SYSCALLNO: 3f PSTATE: 60000000
crash>
crash> quit
ubuntu@am2:~$ sudo dpkg -l crash
Desired=Unknown/Install/Remove/Purge/Hold
| Status=Not/Inst/Conf-files/Unpacked/halF-conf/Half-inst/trig-aWait/Trig-pend
|/ Err?=(none)/Reinst-required (Status,Err: uppercase=bad)
||/ Name Version Architecture Description
+++-==============-============-============-=================================
ii crash 7.0.3-3ubunt arm64 kernel debugging utility, allowin

Revision history for this message
Ming Lei (tom-leiming) wrote :
Download full text (3.2 KiB)

verification on vivid:
ubuntu@ubuntu:~/test$ sudo dpkg -l crash
sudo: unable to resolve host ubuntu
Desired=Unknown/Install/Remove/Purge/Hold
| Status=Not/Inst/Conf-files/Unpacked/halF-conf/Half-inst/trig-aWait/Trig-pend
|/ Err?=(none)/Reinst-required (Status,Err: uppercase=bad)
||/ Name Version Architecture Description
+++-==============-============-============-=================================
ii crash 7.0.8-1ubunt arm64 kernel debugging utility, allowin
ubuntu@ubuntu:~/test$ ls
Image linux1.tar.xz loop ubuntu vm-test
linux linux.tar.xz System.map vmlinux
ubuntu@ubuntu:~/test$ sudo crash vmlinux
sudo: unable to resolve host ubuntu

crash 7.0.8
Copyright (C) 2002-2014 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 "aarch64-unknown-linux-gnu"...

      KERNEL: vmlinux
    DUMPFILE: /dev/mem
        CPUS: 8
        DATE: Thu Jan 1 00:00:00 1970
      UPTIME: 00:01:50
LOAD AVERAGE: 0.30, 0.10, 0.04
       TASKS: 142
    NODENAME: ubuntu
     RELEASE: 3.19.8-ckt1+
     VERSION: #39 SMP PREEMPT Thu Jun 25 04:41:15 EDT 2015
     MACHINE: aarch64 (unknown Mhz)
      MEMORY: 16 GB
         PID: 2017
     COMMAND: "crash"
        TASK: ffffffc3ccae5600 [THREAD_INFO: ffffffc0fd1a8000]
         CPU: 0
       STATE: TASK_RUNNING (ACTIVE)

crash> bt -e
PID: 2017 TASK: ffffffc3ccae5600 CPU: 2 COMMAND: "crash"
USER-MODE EXCEPTION FRAME AT: ffffffc0fd1abed0
     PC: 0000007fa3a2ca78 LR: 000000000047daa0 SP: 0000007fcb803950
    X29: 0000007fcb803950 X28: 000000000096e000 X27: 00000000007f1000
    X26: 00000000007f75a8 X25: ffffffc0fd1ab000 X24: 0000000000a205f0
    X23: 0000000000000004 X22: 0000000000001000 X21: 000000000096e000
    X20: 00000040fd1ab000 X19: 00000000009a5180 X18: 0000000000000000
    X17: 0000007fa3a2ca90 X16: 0000000000000000 X15: ffffffffffffffff
    X14: 0000000000000000 X13: 0000000000000000 X12: 0000000000000028
    X11: 0101010101010101 X10: 7f7f7f7f7f7f7fff X9: 0000000000000004
     X8: 000000000000003f X7: 0000000000000000 X6: 0000007fa3c18710
     X5: 000000000047d970 X4: 00000040fd1ab000 X3: ffffffc0fd1ab000
     X2: 0000000000001000 X1: 0000000000a205f0 X0: 0000000000000004
    ORIG_X0: 0000...

Read more...

Revision history for this message
Ming Lei (tom-leiming) wrote :

Verification on utopic:

ubuntu@am6:~$ sudo crash vmlinux
[sudo] password for ubuntu:

crash 7.0.8
Copyright (C) 2002-2014 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 "aarch64-unknown-linux-gnu"...

      KERNEL: vmlinux
    DUMPFILE: /dev/mem
        CPUS: 8
        DATE: Wed Dec 31 19:00:00 1969
      UPTIME: 00:01:48
LOAD AVERAGE: 0.26, 0.13, 0.05
       TASKS: 135
    NODENAME: am6
     RELEASE: 3.19.8-ckt1+
     VERSION: #39 SMP PREEMPT Thu Jun 25 04:41:15 EDT 2015
     MACHINE: aarch64 (unknown Mhz)
      MEMORY: 16 GB
         PID: 1955
     COMMAND: "crash"
        TASK: ffffffc3ed08cb40 [THREAD_INFO: ffffffc0fee2c000]
         CPU: 3
       STATE: TASK_RUNNING (ACTIVE)

crash> bt -e
PID: 1955 TASK: ffffffc3ed08cb40 CPU: 6 COMMAND: "crash"
USER-MODE EXCEPTION FRAME AT: ffffffc0fee2fed0
     PC: 0000007fb1432218 LR: 000000000047ddb0 SP: 0000007fedca7c50
    X29: 0000007fedca7c50 X28: 00000000fffffff9 X27: 0000000000854700
    X26: 0000007fb1375710 X25: ffffffc0fee2f000 X24: 0000000000a225f0
    X23: 0000000000000004 X22: 0000000000001000 X21: 0000000000970000
    X20: 00000040fee2f000 X19: 00000000009a7180 X18: 0000007fedca8300
    X17: 0000007fb1432200 X16: 0000000000000000 X15: 0000007fb14ac590
    X14: 0000000000000000 X13: 0000000000000000 X12: 0000000000000028
    X11: 0000000000000005 X10: 00000000161a28e8 X9: 0000000000000004
     X8: 000000000000003f X7: 00000000009bf180 X6: 00000000009a4f70
     X5: 0000004000000000 X4: 0000004400000000 X3: ffffffc0fee2f000
     X2: 0000000000001000 X1: 0000000000a225f0 X0: 0000000000000004
    ORIG_X0: 0000000000000004 SYSCALLNO: 3f PSTATE: 60000000
crash> quit
ubuntu@am6:~$ dpkg -l crash
Desired=Unknown/Install/Remove/Purge/Hold
| Status=Not/Inst/Conf-files/Unpacked/halF-conf/Half-inst/trig-aWait/Trig-pend
|/ Err?=(none)/Reinst-required (Status,Err: uppercase=bad)
||/ Name Version Architecture Description
+++-==============-============-============-=================================
ii crash 7.0.8-1ubunt arm64 kernel debugging utility, allowin
ubuntu@am6:~$

tags: added: verification-done
removed: verification-needed
Revision history for this message
Launchpad Janitor (janitor) wrote :

This bug was fixed in the package crash - 7.0.3-3ubuntu4.2

---------------
crash (7.0.3-3ubuntu4.2) trusty; urgency=medium

  * Initial-working-implementation-of-the-basic-ARM64-bt.patch,
    Cleaned-up-the-exception-frame-displays-of-64-bit-in.patch,
    Implemented-support-for-the-ARM64-bt-e-option.patch,
    Implemented-support-for-the-ARM64-bt-l-option.patch:
     - Add initial ARM64 support for the 'bt' command. (LP: #1466686)
  * Fix-for-the-ARM64-page-size-determination-on-Linux-4.patch. (LP: #1460941)

 -- dann frazier <email address hidden> Tue, 23 Jun 2015 09:37:27 -0500

Changed in crash (Ubuntu Trusty):
status: Fix Committed → Fix Released
Revision history for this message
Scott Kitterman (kitterman) wrote : Update Released

The verification of the Stable Release Update for crash has completed successfully and the package has now been released to -updates. Subsequently, the Ubuntu Stable Release Updates Team is being unsubscribed and will not receive messages about this bug report. In the event that you encounter a regression using the package from -updates please report a new bug using ubuntu-bug and tag the bug report regression-update so we can easily find any regressions.

Revision history for this message
Launchpad Janitor (janitor) wrote :

This bug was fixed in the package crash - 7.0.8-1ubuntu1.2

---------------
crash (7.0.8-1ubuntu1.2) utopic; urgency=medium

  * Fix-for-the-ARM64-page-size-determination-on-Linux-4.patch. (LP: #1460941)

 -- dann frazier <email address hidden> Tue, 23 Jun 2015 09:30:46 -0500

Changed in crash (Ubuntu Utopic):
status: Fix Committed → Fix Released
Revision history for this message
Launchpad Janitor (janitor) wrote :

This bug was fixed in the package crash - 7.0.8-1ubuntu3.1

---------------
crash (7.0.8-1ubuntu3.1) vivid; urgency=medium

  * Fix-for-the-ARM64-page-size-determination-on-Linux-4.patch. (LP: #1460941)

 -- dann frazier <email address hidden> Tue, 23 Jun 2015 09:09:54 -0500

Changed in crash (Ubuntu Vivid):
status: Fix Committed → Fix Released
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.