Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 563022 - >=sys-kernel/gentoo-sources-3.10.7 - kernel panic as a Vbox VM on SUSE host
Summary: >=sys-kernel/gentoo-sources-3.10.7 - kernel panic as a Vbox VM on SUSE host
Status: RESOLVED NEEDINFO
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Gentoo Kernel Bug Wranglers and Kernel Maintainers
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2015-10-13 21:58 UTC by brad
Modified: 2017-08-31 20:00 UTC (History)
1 user (show)

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


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description brad 2015-10-13 21:58:43 UTC
After many hours on #gentoo and #suse, I find myself filing this bug.

kernel panic dump:
linux-3kfe:/home/brad # cat /tmp/s0
[    0.000000] Initializing cgroup subsys cpuset
[    0.000000] Initializing cgroup subsys cpu
[    0.000000] Initializing cgroup subsys cpuacct
[    0.000000] Linux version 4.0.5-gentoo (root@gentoo-mini) (gcc version 4.8.4 (Gentoo 4.8.4 p1.6, pie-0.6.1) ) #16 SMP Mon Oct 12 09:11:27 EDT 2015
[    0.000000] Command line: BOOT_IMAGE=/kernel-4.0.5-gentoo root=/dev/sda3 ro console=ttyS0
[    0.000000] e820: BIOS-provided physical RAM map:
[    0.000000] BIOS-e820: [mem 0x0000000000000000-0x000000000009fbff] usable
[    0.000000] BIOS-e820: [mem 0x000000000009fc00-0x000000000009ffff] reserved
[    0.000000] BIOS-e820: [mem 0x00000000000f0000-0x00000000000fffff] reserved
[    0.000000] BIOS-e820: [mem 0x0000000000100000-0x000000002ffeffff] usable
[    0.000000] BIOS-e820: [mem 0x000000002fff0000-0x000000002fffffff] ACPI data
[    0.000000] BIOS-e820: [mem 0x00000000fffc0000-0x00000000ffffffff] reserved
[    0.000000] NX (Execute Disable) protection: active
[    0.000000] SMBIOS 2.5 present.
[    0.000000] e820: last_pfn = 0x2fff0 max_arch_pfn = 0x400000000
[    0.000000] PAT configuration [0-7]: WB  WC  UC- UC  WB  WC  UC- UC  
[    0.000000] CPU MTRRs all blank - virtualized system.
[    0.000000] found SMP MP-table at [mem 0x0009fff0-0x0009ffff] mapped at [ffff88000009fff0]
[    0.000000] Scanning 1 areas for low memory corruption
[    0.000000] init_memory_mapping: [mem 0x00000000-0x000fffff]
[    0.000000] init_memory_mapping: [mem 0x2fc00000-0x2fdfffff]
[    0.000000] init_memory_mapping: [mem 0x20000000-0x2fbfffff]
[    0.000000] init_memory_mapping: [mem 0x00100000-0x1fffffff]
[    0.000000] init_memory_mapping: [mem 0x2fe00000-0x2ffeffff]
[    0.000000] ACPI: Early table checksum verification disabled
[    0.000000] ACPI: RSDP 0x00000000000E0000 000024 (v02 VBOX  )
[    0.000000] ACPI: XSDT 0x000000002FFF0030 00003C (v01 VBOX   VBOXXSDT 00000001 ASL  00000061)
[    0.000000] ACPI: FACP 0x000000002FFF00F0 0000F4 (v04 VBOX   VBOXFACP 00000001 ASL  00000061)
[    0.000000] ACPI: DSDT 0x000000002FFF0470 001BF0 (v01 VBOX   VBOXBIOS 00000002 INTL 20140724)
[    0.000000] ACPI: FACS 0x000000002FFF0200 000040
[    0.000000] ACPI: APIC 0x000000002FFF0240 000054 (v02 VBOX   VBOXAPIC 00000001 ASL  00000061)
[    0.000000] ACPI: SSDT 0x000000002FFF02A0 0001CC (v01 VBOX   VBOXCPUT 00000002 INTL 20140724)
[    0.000000] No NUMA configuration found
[    0.000000] Faking a node at [mem 0x0000000000000000-0x000000002ffeffff]
[    0.000000] NODE_DATA(0) allocated [mem 0x2ffec000-0x2ffeffff]
[    0.000000] Zone ranges:
[    0.000000]   DMA      [mem 0x0000000000001000-0x0000000000ffffff]
[    0.000000]   DMA32    [mem 0x0000000001000000-0x000000002ffeffff]
[    0.000000]   Normal   empty
[    0.000000] Movable zone start for each node
[    0.000000] Early memory node ranges
[    0.000000]   node   0: [mem 0x0000000000001000-0x000000000009efff]
[    0.000000]   node   0: [mem 0x0000000000100000-0x000000002ffeffff]
[    0.000000] Initmem setup node 0 [mem 0x0000000000001000-0x000000002ffeffff]
[    0.000000] ACPI: PM-Timer IO Port: 0x4008
[    0.000000] ACPI: LAPIC (acpi_id[0x00] lapic_id[0x00] enabled)
[    0.000000] ACPI: IOAPIC (id[0x01] address[0xfec00000] gsi_base[0])
[    0.000000] IOAPIC[0]: apic_id 1, version 17, address 0xfec00000, GSI 0-23
[    0.000000] ACPI: INT_SRC_OVR (bus 0 bus_irq 0 global_irq 2 dfl dfl)
[    0.000000] ACPI: INT_SRC_OVR (bus 0 bus_irq 9 global_irq 9 high level)
[    0.000000] Using ACPI (MADT) for SMP configuration information
[    0.000000] smpboot: Allowing 1 CPUs, 0 hotplug CPUs
[    0.000000] PM: Registered nosave memory: [mem 0x00000000-0x00000fff]
[    0.000000] PM: Registered nosave memory: [mem 0x0009f000-0x0009ffff]
[    0.000000] PM: Registered nosave memory: [mem 0x000a0000-0x000effff]
[    0.000000] PM: Registered nosave memory: [mem 0x000f0000-0x000fffff]
[    0.000000] e820: [mem 0x30000000-0xfffbffff] available for PCI devices
[    0.000000] setup_percpu: NR_CPUS:64 nr_cpumask_bits:64 nr_cpu_ids:1 nr_node_ids:1
[    0.000000] PERCPU: Embedded 30 pages/cpu @ffff88002fc00000 s84312 r8192 d30376 u2097152
[    0.000000] Built 1 zonelists in Node order, mobility grouping on.  Total pages: 193401
[    0.000000] Policy zone: DMA32
[    0.000000] Kernel command line: BOOT_IMAGE=/kernel-4.0.5-gentoo root=/dev/sda3 ro console=ttyS0
[    0.000000] PID hash table entries: 4096 (order: 3, 32768 bytes)
[    0.000000] Memory: 756104K/785976K available (8827K kernel code, 882K rwdata, 2852K rodata, 1096K init, 900K bss, 29872K reserved, 0K cma-reserved)
[    0.000000] SLUB: HWalign=64, Order=0-3, MinObjects=0, CPUs=1, Nodes=1
[    0.000000] Hierarchical RCU implementation.
[    0.000000]  Additional per-CPU info printed with stalls.
[    0.000000]  RCU restricting CPUs from NR_CPUS=64 to nr_cpu_ids=1.
[    0.000000] RCU: Adjusting geometry for rcu_fanout_leaf=16, nr_cpu_ids=1
[    0.000000] NR_IRQS:4352 nr_irqs:256 16
[    0.000000] Console: colour VGA+ 80x25
[    0.000000] console [ttyS0] enabled
[    0.000000] Maximum core-clock to bus-clock ratio: 0x16
[    0.000000] general protection fault: 0000 [#1] SMP 
[    0.000000] Modules linked in:
[    0.000000] CPU: 0 PID: 0 Comm: swapper/0 Not tainted 4.0.5-gentoo #16
[    0.000000] Hardware name: innotek GmbH VirtualBox/VirtualBox, BIOS VirtualBox 12/01/2006
[    0.000000] task: ffffffff81e10480 ti: ffffffff81e00000 task.ti: ffffffff81e00000
[    0.000000] RIP: 0010:[<ffffffff8100be2e>]  [<ffffffff8100be2e>] try_msr_calibrate_tsc+0x7e/0x120
[    0.000000] RSP: 0000:ffffffff81e03ea8  EFLAGS: 00010002
[    0.000000] RAX: 000000000000002b RBX: 0000000000000003 RCX: 00000000000000cd
[    0.000000] RDX: 00000000000000f0 RSI: 0000000000000046 RDI: ffffffff82074ba8
[    0.000000] RBP: ffffffff81e03eb8 R08: 30203a6f69746172 R09: 0000000000000000
[    0.000000] R10: 0000000000000068 R11: 206b636f6c632d73 R12: 0000000000000016
[    0.000000] R13: ffff88002ffe4800 R14: ffffffff81fa72c0 R15: 0000000000000000
[    0.000000] FS:  0000000000000000(0000) GS:ffff88002fc00000(0000) knlGS:0000000000000000
[    0.000000] CS:  0010 DS: 0000 ES: 0000 CR0: 000000008005003b
[    0.000000] CR2: ffff8800020db000 CR3: 0000000001e0b000 CR4: 00000000000006b0
[    0.000000] Stack:
[    0.000000]  0000000000000246 0000000000000000 ffffffff81e03f38 ffffffff8100b651
[    0.000000]  0000000000000286 ffff88002e405a00 0000000000000000 ffffffff81e12740
[    0.000000]  ffffffff81fa72c0 0000000000000000 ffffffff81e03f38 ffffffff810969dc
[    0.000000] Call Trace:
[    0.000000]  [<ffffffff8100b651>] native_calibrate_tsc+0x21/0x540
[    0.000000]  [<ffffffff810969dc>] ? setup_irq+0x3c/0x90
[    0.000000]  [<ffffffff81efa0d8>] tsc_init+0x1e/0x19b
[    0.000000]  [<ffffffff81ef67c1>] x86_late_time_init+0xf/0x11
[    0.000000]  [<ffffffff81ef3f2f>] start_kernel+0x370/0x428
[    0.000000]  [<ffffffff81ef39af>] ? set_init_arg+0x55/0x55
[    0.000000]  [<ffffffff81ef35ad>] x86_64_start_reservations+0x2a/0x2c
[    0.000000]  [<ffffffff81ef36b1>] x86_64_start_kernel+0x102/0x106
[    0.000000] Code: 98 01 00 00 0f 32 48 c1 ea 08 83 e2 1f 49 89 d4 31 c0 44 89 e6 48 c7 c7 f8 a1 bc 81 e8 4d 0e 88 00 45 85 e4 74 30 b9 cd 00 00 00 <0f> 32 83 e0 07 48 8d 1c db 48 c7 c7 28 a2 bc 81 89 c6 89 c0 48 
[    0.000000] RIP  [<ffffffff8100be2e>] try_msr_calibrate_tsc+0x7e/0x120
[    0.000000]  RSP <ffffffff81e03ea8>
[    0.000000] ---[ end trace 737113003369b763 ]---
[    0.000000] Kernel panic - not syncing: Attempted to kill the idle task!
[    0.000000] ---[ end Kernel panic - not syncing: Attempted to kill the idle task!
[    0.000000] random: nonblocking pool is initialized



grknight from #gentoo pegged the source as coming from line 107  http://lxr.free-electrons.com/source/arch/x86/kernel/tsc_msr.c#L83


History:
I have a 'working 3.10.7 kernel'  http://i.imgur.com/Yr4KaEv.png  but any kernel higher than that, crashes with the above panic. both 3.17.7 and 4.0.5 fail.
I used the same .config, I also tried make localyesconfig and I also tried to make a brand new VM using a bare bones kernel with absolutely nothing initialized. Just exit out of menuconfig, make && make modules_install.
Same kernel panic.

I started thinking it was the host. I fully upgraded from VirtualBox 4.3.23 to 5.0, both via the package manager and via direct download. Same kernel panic
Comment 1 brad 2015-10-13 22:00:30 UTC
gentoo-mini ~ # emerge --info
Portage 2.2.20.1 (python 2.7.10-final-0, default/linux/amd64/13.0, gcc-4.8.4, glibc-2.20-r2, 3.10.7-gentoo-r1 x86_64)
=================================================================
System uname: Linux-3.10.7-gentoo-r1-x86_64-Intel-R-_Pentium-R-_CPU_N3540_@_2.16GHz-with-gentoo-2.2
KiB Mem:      761364 total,    631176 free
KiB Swap:    1048572 total,   1048572 free
Timestamp of repository gentoo: Sun, 11 Oct 2015 20:00:01 +0000
sh bash 4.3_p39
ld GNU ld (Gentoo 2.25.1 p1.1) 2.25.1
app-shells/bash:          4.3_p39::gentoo
dev-lang/perl:            5.20.2::gentoo
dev-lang/python:          2.7.10::gentoo, 3.3.5-r1::gentoo, 3.4.3::gentoo
dev-util/cmake:           3.3.1-r1::gentoo
dev-util/pkgconfig:       0.28-r2::gentoo
sys-apps/baselayout:      2.2::gentoo
sys-apps/openrc:          0.17::gentoo
sys-apps/sandbox:         2.6-r1::gentoo
sys-devel/autoconf:       2.69::gentoo
sys-devel/automake:       1.13.4::gentoo, 1.14.1::gentoo, 1.15::gentoo
sys-devel/binutils:       2.25.1-r1::gentoo
sys-devel/gcc:            4.8.4::gentoo, 4.9.3::gentoo
sys-devel/gcc-config:     1.7.3::gentoo
sys-devel/libtool:        2.4.6::gentoo
sys-devel/make:           4.1-r1::gentoo
sys-kernel/linux-headers: 3.18::gentoo (virtual/os-headers)
sys-libs/glibc:           2.20-r2::gentoo
Repositories:

gentoo
    location: /usr/portage
    sync-type: rsync
    sync-uri: rsync://rsync.gentoo.org/gentoo-portage
    priority: -1000

ACCEPT_KEYWORDS="amd64"
ACCEPT_LICENSE="* -@EULA"
CBUILD="x86_64-pc-linux-gnu"
CFLAGS="-O1 -pipe"
CHOST="x86_64-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/share/easy-rsa /usr/share/gnupg/qualified.txt"
CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/env.d /etc/fonts/fonts.conf /etc/gconf /etc/gentoo-release /etc/php/apache2-php5.5/ext-active/ /etc/php/apache2-php5.6/ext-active/ /etc/php/cgi-php5.5/ext-active/ /etc/php/cgi-php5.6/ext-active/ /etc/php/cli-php5.5/ext-active/ /etc/php/cli-php5.6/ext-active/ /etc/revdep-rebuild /etc/sandbox.d /etc/terminfo"
CXXFLAGS="-O1 -pipe"
DISTDIR="/usr/portage/distfiles"
FCFLAGS="-O2 -pipe"
FEATURES="assume-digests binpkg-logs config-protect-if-modified distlocks ebuild-locks fixlafiles merge-sync news parallel-fetch preserve-libs protect-owned sandbox sfperms strict unknown-features-warn unmerge-logs unmerge-orphans userfetch userpriv usersandbox usersync"
FFLAGS="-O2 -pipe"
GENTOO_MIRRORS="http://distfiles.gentoo.org"
LANG="en_US.UTF-8"
LDFLAGS="-Wl,-O1 -Wl,--as-needed"
PKGDIR="/usr/portage/packages"
PORTAGE_CONFIGROOT="/"
PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --omit-dir-times --compress --force --whole-file --delete --stats --human-readable --timeout=180 --exclude=/distfiles --exclude=/local --exclude=/packages"
PORTAGE_TMPDIR="/var/tmp"
USE="APACHE2_MODULES acl amd64 apache2 berkdb bindist bzip2 cli cracklib crypt curl cxx dri fortran gdb gdbm iconv ipv6 mmx mmxext modules multilib mysql ncurses nls nptl openmp pam pcre pdo php python readline seccomp session sse sse2 ssl tcpd unicode zlib" ABI_X86="64" ALSA_CARDS="ali5451 als4000 atiixp atiixp-modem bt87x ca0106 cmipci emu10k1x ens1370 ens1371 es1938 es1968 fm801 hda-intel intel8x0 intel8x0m maestro3 trident usb-audio via82xx via82xx-modem ymfpci" APACHE2_MODULES="authn_core authz_core socache_shmcb unixd actions alias auth_basic authn_alias authn_anon authn_dbm authn_default authn_file authz_dbm authz_default authz_groupfile authz_host authz_owner authz_user autoindex cache cgi cgid dav dav_fs dav_lock deflate dir disk_cache env expires ext_filter file_cache filter headers include info log_config logio mem_cache mime mime_magic negotiation rewrite setenvif speling status unique_id userdir usertrack vhost_alias" CALLIGRA_FEATURES="kexi words flow plan sheets stage tables krita karbon braindump author" CAMERAS="ptp2" COLLECTD_PLUGINS="df interface irq load memory rrdtool swap syslog" CPU_FLAGS_X86="mmx mmxext sse sse2" ELIBC="glibc" GPSD_PROTOCOLS="ashtech aivdm earthmate evermore fv18 garmin garmintxt gpsclock itrax mtk3301 nmea ntrip navcom oceanserver oldstyle oncore rtcm104v2 rtcm104v3 sirf superstar2 timing tsip tripmate tnt ublox ubx" INPUT_DEVICES="keyboard mouse evdev" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LIBREOFFICE_EXTENSIONS="presenter-console presenter-minimizer" OFFICE_IMPLEMENTATION="libreoffice" PHP_TARGETS="php5-5" PYTHON_SINGLE_TARGET="python2_7" PYTHON_TARGETS="python2_7 python3_4" RUBY_TARGETS="ruby20 ruby21" USERLAND="GNU" VIDEO_CARDS="fbdev glint intel mach64 mga nouveau nv r128 radeon savage sis tdfx trident vesa via vmware dummy v4l" XTABLES_ADDONS="quota2 psd pknock lscan length2 ipv4options ipset ipp2p iface geoip fuzzy condition tee tarpit sysrq steal rawnat logmark ipmark dhcpmac delude chaos account"
Unset:  CC, CPPFLAGS, CTARGET, CXX, EMERGE_DEFAULT_OPTS, INSTALL_MASK, LC_ALL, MAKEOPTS, PORTAGE_BUNZIP2_COMMAND, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS, USE_PYTHON
Comment 2 brad 2015-10-14 00:23:18 UTC
I was able to get a 3.10.82 kernel to compile and boot.

gentoo-mini ~ # uname -ra
Linux gentoo-mini 3.10.82-gentoo #1 SMP Tue Oct 13 20:02:19 EDT 2015 x86_64 Intel(R) Pentium(R) CPU N3540 @ 2.16GHz GenuineIntel GNU/Linux

but that's still pretty old.

I used the default .config
Comment 3 brad 2015-10-14 09:17:49 UTC
I can get as high as 3.12.48 will successfully boot.
anything above 3.17.7 will fail with kernel panic.
Comment 4 brad 2015-10-14 10:24:50 UTC
Any kernel 3.12.999 or lower works.
=<3.14.0001  fails epicaly with the same kernel panic.

3.12.999 is the absolute ceiling that i can get to work on a Virtualbox VM.
Comment 5 Alice Ferrazzi Gentoo Infrastructure gentoo-dev 2017-02-14 18:37:10 UTC
could you try on a more recent gentoo-sources ?