Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 538304 - sys-apps/lshw-02.17b-r1 with kernel 3.18.5 - kernel BUG at arch/x86/mm/physaddr.c:79! // invalid opcode: 0000 [#1] DEBUG_PAGEALLOC
Summary: sys-apps/lshw-02.17b-r1 with kernel 3.18.5 - kernel BUG at arch/x86/mm/physad...
Status: RESOLVED NEEDINFO
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Core system (show other bugs)
Hardware: x86 Linux
: Normal normal (vote)
Assignee: Gentoo Kernel Bug Wranglers and Kernel Maintainers
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2015-01-30 23:48 UTC by Karl Lindén
Modified: 2015-07-10 10:48 UTC (History)
0 users

See Also:
Package list:
Runtime testing required: ---


Attachments
System log (full-log.txt,27.94 KB, text/plain)
2015-01-30 23:51 UTC, Karl Lindén
Details
Kernel config (config,59.58 KB, text/plain)
2015-01-30 23:54 UTC, Karl Lindén
Details
strace output (strace.log,883.20 KB, text/plain)
2015-03-11 21:11 UTC, Karl Lindén
Details
config for 3.19.2 (config-3.19.2,61.52 KB, text/plain)
2015-03-23 15:18 UTC, Karl Lindén
Details
config for 3.19.1 (config-3.19.1,61.15 KB, text/plain)
2015-03-23 15:19 UTC, Karl Lindén
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Karl Lindén 2015-01-30 23:48:50 UTC
As soon as I run the lshw program (from sys-apps/lshw-02.17b-r1), the kernel crashes as follows.

[   29.413339] kernel BUG at arch/x86/mm/physaddr.c:79!
[   29.413339] invalid opcode: 0000 [#1] DEBUG_PAGEALLOC
[   29.413339] CPU: 0 PID: 717 Comm: lshw Not tainted 3.18.5-gentoo #1
[   29.413339] Hardware name: MICRO-STAR INC. MS-6580/MS-6580, BIOS V3.4 11 11/14/2002
[   29.413339] task: ede3cb20 ti: edfa2000 task.ti: edfa2000
[   29.413339] EIP: 0060:[<c102a78f>] EFLAGS: 00010206 CPU: 0
[   29.413339] EIP is at __phys_addr+0x5f/0x63
[   29.413339] EAX: 00000000 EBX: 2fff0000 ECX: 0000000c EDX: 0000000a
[   29.413339] ESI: 0000040e EDI: bfdec8d8 EBP: edfa3f40 ESP: edfa3f3c
[   29.413339]  DS: 007b ES: 007b FS: 0000 GS: 0033 SS: 0068
[   29.413339] CR0: 80050033 CR2: bfdec8cc CR3: 2d7f4000 CR4: 000007d0
[   29.413339] Stack:
[   29.413339]  00000410 edfa3f64 c119d79b edddcc80 00000006 bfdec8d8 00000002 c0031c00
[   29.413339]  c119d766 bfdec8d8 edfa3f88 c10a3f7c edfa3f98 edfa3f88 c119d61b 00000003
[   29.413339]  c0031c00 c0031c00 bfdec8d8 edfa3fac c10a43cf edfa3f98 00000002 0000040e
[   29.413339] Call Trace:
[   29.413339]  [<c119d79b>] read_mem+0x35/0xd0
[   29.413339]  [<c119d766>] ? write_mem+0xe8/0xe8
[   29.413339]  [<c10a3f7c>] vfs_read+0x66/0x106
[   29.413339]  [<c119d61b>] ?memory_lseek+0x4b/0x82
[   29.413339]  [<c10a43cf>] SyS_read+0x41/0x7f
[   29.413339]  [<c13c510b>] sysenter_do_call+00x12
[   29.413339] Code: 75 29 89 d8 5b 5d c3 0f 0b 8b 15 30 27 60 c1 81 c2 00 00 80 00 39 d0 72 cd 8b 15 6c b4 4f c1 81 ea 00 e0 05 00 39 d0 73 bd 0f 0b <0f> 0b 0f 0b 89 c2 3d ff ff ff bf 76 57 55 89 e5 53 80 3d 00
[   29.413339] EIP: [<c102a78f>] __phys_addr+0x5f/0x63 SS:ESP 0068:edfa3f3c
[   29.560410] ---[ end trace 77d202f00428ba2d ]---
[   29.565024] Kernel panic - not syncing: Fatal exception
[   29.568353] Kernel Offset: 0x0 from 0xc1000000 (relocation range: 0xc00xf07effff)
[   29.56835drm_kms_helper: panic occurred, switching back to text console
[   29.585456] ---[ end Kernel panic - not syncing: Fatal exception

Reproducible: Always

Steps to Reproduce:
1. Run lshw.
2. Boom!
Comment 1 Karl Lindén 2015-01-30 23:49:37 UTC
Portage 2.2.15 (python 3.3.5-final-0, default/linux/x86/13.0, gcc-4.8.3, glibc-2.19-r1, 3.18.5-gentoo i686)
=================================================================
System uname: Linux-3.18.5-gentoo-i686-Intel-R-_Pentium-R-_4_CPU_2.40GHz-with-gentoo-2.2
KiB Mem:      770396 total,    604984 free
KiB Swap:    2096124 total,   2096124 free
Timestamp of tree: Fri, 30 Jan 2015 18:45:01 +0000
sh bash 4.2_p53
ld GNU ld (Gentoo 2.24 p1.4) 2.24
app-shells/bash:          4.2_p53
dev-lang/perl:            5.18.2-r2
dev-lang/python:          2.7.7, 3.3.5-r1, 3.4.1
dev-util/pkgconfig:       0.28-r1
sys-apps/baselayout:      2.2
sys-apps/openrc:          0.12.4
sys-apps/sandbox:         2.6-r1
sys-devel/autoconf:       2.69
sys-devel/automake:       1.13.4
sys-devel/binutils:       2.24-r3
sys-devel/gcc:            4.8.3
sys-devel/gcc-config:     1.7.3
sys-devel/libtool:        2.4.2-r1
sys-devel/make:           4.0-r1
sys-kernel/linux-headers: 3.16 (virtual/os-headers)
sys-libs/glibc:           2.19-r1
Repositories: gentoo
ACCEPT_KEYWORDS="x86 ~x86"
ACCEPT_LICENSE="* -@EULA"
CBUILD="i686-pc-linux-gnu"
CFLAGS="-O2 -march=i686 -pipe -O2 -fomit-frame-pointer -pipe -fno-staotector  -march=pentium4HOST="i686-pc-linux-gnu"
CONFIG_PROTECT="/etc"
CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/env.d /etc/gconf /etc/gentoo-release /etc/sandbox.d /etc/terminfo"
CXXFLAGS="-O2 -march=i686 -pipe -O2 -fomit-frame-pointer -pipe -fno-stack-protector  -march=pentium4"
DISTDIR="/usr/portage/distfiles"
EMERGE_DEFAULT_OPTS="                      --binpkg-respect-use=y --with-bdeps=y                      --usepkg-exclude app-emulation/virtualbox-modules                      --usepkg-exclude sys-fs/vhba"
FCFLAGS="-O2 -march=i686 -pipe"
FEATURES="assume-digests binpkg-logs buildpkg config-protect-if-modified distlocks ebuild-locks fixlafiles merge-sync news parallel-fetch preve-libs protect-owned sax sfperms strict unknown-features-warn unmerg"
FFLAGS="-O2 -march=i686 -pipe"
GENTOO_MIRRORS="rsync://192.168.1.85/gentoo-portage/"
LANG="C"
LDFLAGS="-Wl,-O1 -Wl,--as-needed"
PKGDIR="/usr/portage/packages"
PORTAGE_CONFIGROOT="/"
PORTAGE_RSYNC_OPTS="--recursive --linksfe-links --perms --times --omit-dir-times --compress --force --whole-file --delete --stats --human-readable --timeout=180 --exclude=/distfiles --exclude=/local --exclude=/"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY=""
SYNC="rsync://192.168.1.85/gentoo-portage/"
USE="X a52 aac alloca aaspell bindist cairo cd cdda cddb cdr consolekit cracklib cups curl dri drm dssi dvd dvdr exif ffmpeg fftw flac fltk gallium gif gimp glib gmp gnuplot gnutls gstreamer gtk gtk2 gtkstyle g"
Unset:  CPPFLAGS, CTARGET, INSTALL_MASK, LC_ALL, MAKEOPTS, PORTAGE_BUNZIP2_COMMAND, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS, USE_PYTHON
Comment 2 Karl Lindén 2015-01-30 23:51:19 UTC
Created attachment 395238 [details]
System log

System log from boot to kernel panic.
Comment 3 Karl Lindén 2015-01-30 23:54:36 UTC
Created attachment 395240 [details]
Kernel config

Kernel configuration (obtained through zcat /proc/config.gz).
Comment 4 SpanKY gentoo-dev 2015-03-04 06:52:27 UTC
kernel crashes usually mean kernel bugs

run it through strace to narrow down the faulting source:
# strace lshw

and post that log here
Comment 5 Karl Lindén 2015-03-11 21:11:38 UTC
Created attachment 398676 [details]
strace output

This is the strace output. Since gentoo-sources version 3.18.5 is no longer available 3.18.8 has been used to reproduce the bug.
Comment 6 Mike Pagano gentoo-dev 2015-03-20 19:03:11 UTC
I see some conversation around this involving 3.19_rc.
Can you test the latest 3.19, which is 3.19.2 as of this post?
Comment 7 Karl Lindén 2015-03-23 15:13:53 UTC
With kernel 3.19.1 everything works fine.

With kernel 3.19.2 I get the same error (as far as I can see only the numbers differ).

[   39.719999] kernel BUG at arch/x86/mm/physaddr.c:79!
[   39.719999] invalid opcode: 0000 [#1] DEBUG_PAGEALLOC
[   39.719999] CPU: 0 PID: 1011 Comm: lshw Not tainted 3.19.2-gentoo #2
[   39.719999] Hardware name: MICRO-STAR INC. MS-6580/MS-6580, BIOS V3.4 11 11/14/2002
[   39.719999] task: ecf38590 ti: ecd88000 task.ti: ecd88000
[   39.719999] EIP: 0060:[<c102cc17>] EFLAGS: 00010206 CPU: 0
[   39.719999] EIP is at __phys_addr+0x60/0x62
[   39.719999] EAX: 00000000 EBX: 2fff0000 ECX: 0000000c EDX: 00000000
[   39.719999] ESI: 0000040e EDI: bfe87a98 EBP: ecd89f2c ESP: ecd89f28
[   39.719999]  DS: 007b ES: 007b FS: 0000 GS: 0033 SS: 0068
[   39.719999] CR0: 80050033 CR2: bfe87a8c CR3: 2a7f8000 CR4: 000007d0
[   39.719999] Stack:
[   39.719999]  00000410 ecd89f50 c11b2234 00000000 00000002 bfe87a98 00000002 c11b21fc
[   39.719999]  ecd89f98 bfe87a98 ecd89f64 c10b0860 ecd89f98 ecf29a80 ecd89f98 ecd89f88
[   39.719999]  c10b0903 ecd89f98 c13f7b6d ecf29a80 00000003 ecf29a80 ecf29a80 bfe87a98
[   39.719999] Call Trace:
[   39.719999]  [<c11b2234>] read_mem+0x38/0xd3
[   39.719999]  [<c11b21fc>] ? write_mem+0xe4/0xe4
[   39.719999]  [<c10b0860>] __vfs_read+0x1a/0x5a
[   39.719999]  [<c10b0903>] vfs_read+0x63/0xda
[   39.719999]  [<c13f7b6d>] ? mutex_lock+0xb/0x19
[   39.719999]  [<c10b0d33>] SyS_read+0x41/0x7f
[   39.719999]  [<c13f8d8b>] sysenter_do_call+0x12/0x12
[   39.719999] Code: 39 c3 75 27 89 d8 5b 5d c3 0f 0b 0f 0b a1 90 80 64 c1 05 00 00 80 00 39 c2 72 cc a1 64 cc 53 c1 2d 00 e0 05 00 39 c2 73 be 0f 0b <0f> 0b 89 c2 3d ff ff ff bf 76 51
[   39.719999] EIP: [<c102cc17>] __phys_addr+0x60/0x62 SS:ESP 0068:ecd89f28
[   39.877032] ---[ end trace a923afc09d13c399 ]---
[   39.881763] Kernel panic - not syncing: Fatal exception
[   39.884980] Kernel Offset: 0x0 from 0xc1000000 (relocation range: 0xc0000000-0xf07effff)
[   39.884980] drm_kms_helper: panic occurred, switching back to text console
[   39.884980] ---[ end Kernel panic - not syncing: Fatal exception

The only differences between the 3.19.1 and 3.19.2 configurations are these:
--- linux-3.19.1-gentoo/.config 2015-03-22 20:18:11.193420712 +0100
+++ linux-3.19.2-gentoo/.config 2015-03-23 15:30:31.243336073 +0100
@@ -1,6 +1,6 @@
 #
 # Automatically generated file; DO NOT EDIT.
-# Linux/x86 3.19.1-gentoo Kernel Configuration
+# Linux/x86 3.19.2-gentoo Kernel Configuration
 #
 
 #
@@ -8,6 +8,7 @@
 #
 CONFIG_GENTOO_LINUX=y
 CONFIG_GENTOO_LINUX_UDEV=y
+CONFIG_GENTOO_LINUX_PORTAGE=y
 
 #
 # Support for init systems, system and service managers
@@ -137,7 +138,16 @@
 CONFIG_IKCONFIG_PROC=y
 CONFIG_LOG_BUF_SHIFT=18
 CONFIG_HAVE_UNSTABLE_SCHED_CLOCK=y
-# CONFIG_CGROUPS is not set
+CONFIG_CGROUPS=y
+# CONFIG_CGROUP_DEBUG is not set
+# CONFIG_CGROUP_FREEZER is not set
+# CONFIG_CGROUP_DEVICE is not set
+# CONFIG_CPUSETS is not set
+# CONFIG_CGROUP_CPUACCT is not set
+# CONFIG_MEMCG is not set
+# CONFIG_CGROUP_PERF is not set
+# CONFIG_CGROUP_SCHED is not set
+# CONFIG_BLK_CGROUP is not set
 # CONFIG_CHECKPOINT_RESTORE is not set
 CONFIG_NAMESPACES=y
 CONFIG_UTS_NS=y
@@ -644,6 +654,8 @@
 # CONFIG_NET_MPLS_GSO is not set
 # CONFIG_HSR is not set
 # CONFIG_NET_SWITCHDEV is not set
+# CONFIG_CGROUP_NET_PRIO is not set
+# CONFIG_CGROUP_NET_CLASSID is not set
 CONFIG_NET_RX_BUSY_POLL=y
 CONFIG_BQL=y
Comment 8 Karl Lindén 2015-03-23 15:18:48 UTC
Created attachment 399556 [details]
config for 3.19.2
Comment 9 Karl Lindén 2015-03-23 15:19:12 UTC
Created attachment 399558 [details]
config for 3.19.1
Comment 10 Karl Lindén 2015-03-23 15:36:35 UTC
The strace output is very similar; a lot of calls to mmap2 and munmap then the kernel panic and after that some final system calls.
Comment 11 Mike Pagano gentoo-dev 2015-06-13 00:05:46 UTC
Is this still an issue with later kernels? If so, have you considered doing a bisect between 3.19.1 and 3.19.2 ?
Comment 12 Pacho Ramos gentoo-dev 2015-07-10 10:48:24 UTC
(In reply to Mike Pagano from comment #11)
> Is this still an issue with later kernels? If so, have you considered doing
> a bisect between 3.19.1 and 3.19.2 ?