Getting Virtualbox Running - Hitting kernel lock-related bug, forcing reboot. (Solved)

Hi, new user here. I slogged through the newbie links, but may have missed something. Please take it easy on me :slight_smile: PS- whats with the vampire sighting link??

Recently rolled Manjaro i3, came from Arch where I used VirtualBox with success (So not BIOS or hardware issue). I followed all the wikis and checked the forums. Installed VirtualBox, the host modules for my kernel version, joined the vboxusers group, rebooted. Ran it, found the issues, and so installed the virtualbox host dkms and linux headers as well hoping for a quick fix (didn't work).

Goal: get VirtualBox running properly
Current state: guest box will run for a second or two and then freeze the whole window, not just the guest OS. Sometimes it locks up the main virtualbox window. And sometimes it locks up the system forcing a reboot. Tested with XP and Windows 10 install media.

My system:

System:    Kernel: 5.6.4-1-rt3-MANJARO x86_64 bits: 64 compiler: gcc v: 9.3.0 
           parameters: BOOT_IMAGE=/boot/vmlinuz-5.6-rt-x86_64 
           root=UUID=7a1dfab1-c308-4c4f-8c2d-634f2e17c0a3 rw quiet udev.log_priority=3 
           Desktop: i3 4.18.1 info: i3bar dm: LightDM 1.30.0 Distro: Manjaro Linux 
Machine:   Type: Laptop System: LENOVO product: 20F6CTO1WW v: ThinkPad X260 serial: <filter> 
           Chassis: type: 10 serial: <filter> 
           Mobo: LENOVO model: 20F6CTO1WW v: SDK0J40697 WIN serial: <filter> UEFI: LENOVO 
           v: R02ET71W (1.44 ) date: 05/08/2019 
Battery:   ID-1: BAT0 charge: 16.1 Wh condition: 20.3/23.5 Wh (87%) volts: 12.0/11.4 
           model: LGC 45N1113 type: Li-ion serial: <filter> status: Unknown 
           ID-2: BAT1 charge: 57.5 Wh condition: 67.0/71.3 Wh (94%) volts: 12.4/10.8 
           model: SANYO 45N1777 type: Li-ion serial: <filter> status: Charging 
CPU:       Topology: Dual Core model: Intel Core i7-6600U bits: 64 type: MT MCP arch: Skylake 
           family: 6 model-id: 4E (78) stepping: 3 microcode: D6 L2 cache: 4096 KiB 
           flags: avx avx2 lm nx pae sse sse2 sse3 sse4_1 sse4_2 ssse3 vmx bogomips: 22408 
           Speed: 668 MHz min/max: 400/3400 MHz Core speeds (MHz): 1: 600 2: 600 3: 600 4: 600 
           Vulnerabilities: Type: itlb_multihit status: KVM: Split huge pages 
           Type: l1tf mitigation: PTE Inversion; VMX: conditional cache flushes, SMT vulnerable 
           Type: mds mitigation: Clear CPU buffers; SMT vulnerable 
           Type: meltdown mitigation: PTI 
           Type: spec_store_bypass 
           mitigation: Speculative Store Bypass disabled via prctl and seccomp 
           Type: spectre_v1 mitigation: usercopy/swapgs barriers and __user pointer sanitization 
           Type: spectre_v2 mitigation: Full generic retpoline, IBPB: conditional, IBRS_FW, STIBP: 
           conditional, RSB filling 
           Type: tsx_async_abort mitigation: Clear CPU buffers; SMT vulnerable 
Graphics:  Device-1: Intel Skylake GT2 [HD Graphics 520] vendor: Lenovo driver: i915 v: kernel 
           bus ID: 00:02.0 chip ID: 8086:1916 
           Display: x11 server: X.Org 1.20.8 driver: intel unloaded: modesetting 
           alternate: fbdev,vesa compositor: compton resolution: 1920x1080~60Hz, 1920x1080~60Hz 
           OpenGL: renderer: Mesa Intel HD Graphics 520 (SKL GT2) v: 4.6 Mesa 20.0.5 
           direct render: Yes 
Audio:     Device-1: Intel Sunrise Point-LP HD Audio vendor: Lenovo driver: snd_hda_intel v: kernel 
           bus ID: 00:1f.3 chip ID: 8086:9d70 
           Sound Server: ALSA v: k5.6.4-1-rt3-MANJARO 
Network:   Device-1: Intel Ethernet I219-LM vendor: Lenovo driver: e1000e v: 3.2.6-k port: efa0 
           bus ID: 00:1f.6 chip ID: 8086:156f 
           IF: enp0s31f6 state: down mac: <filter> 
           Device-2: Intel Wireless 8260 driver: iwlwifi v: kernel port: efa0 bus ID: 04:00.0 
           chip ID: 8086:24f3 
           IF: wlp4s0 state: up mac: <filter> 
Drives:    Local Storage: total: 1.38 TiB used: 30.31 GiB (2.2%) 
           ID-1: /dev/sda vendor: LITE-ON model: LCH-512V2S size: 476.94 GiB block size: 
           physical: 512 B logical: 512 B speed: 6.0 Gb/s serial: <filter> rev: 202 scheme: GPT 
           ID-2: /dev/sdb type: USB model: External USB3.0 size: 931.51 GiB block size: 
           physical: 4096 B logical: 512 B serial: <filter> rev: 0204 scheme: MBR 
Partition: ID-1: / raw size: 69.85 GiB size: 68.50 GiB (98.07%) used: 30.28 GiB (44.2%) fs: ext4 
           dev: /dev/sda5 
           ID-2: swap-1 size: 15.87 GiB used: 0 KiB (0.0%) fs: swap swappiness: 60 (default) 
           cache pressure: 100 (default) dev: /dev/sda6 
Sensors:   System Temperatures: cpu: 55.0 C mobo: N/A 
           Fan Speeds (RPM): cpu: 4137 
Info:      Processes: 180 Uptime: 36m Memory: 15.48 GiB used: 1.13 GiB (7.3%) Init: systemd v: 244 
           Compilers: gcc: 9.3.0 Shell: bash v: 5.0.16 running in: urxvtd inxi: 3.0.37 

Research: logs point to:

Apr 30 00:28:53 trentjaro kernel: BUG: using smp_processor_id() in preemptible [00000000] code: EMT/30>

I'd really like to get to the bottom of this for the sake of problem solving, and to get it working of course.

First thought after researching that kernel function at-
https://www.kernel.org/doc/htmldocs/kernel-hacking/routines-processorids.html
is that there is a bug with VirtualBox failing to do proc specific work within a lock, or some sort of parallelism issue. But realistically, its probably something on my system and not VirtualBox lol.

Here are some logs from the last time it forced a reboot. from journalctl. It shows the same bug.

Apr 30 00:28:53 trentjaro kernel:  ? supdrvIOCtlFast+0x66/0xb0 [vboxdrv]
Apr 30 00:28:53 trentjaro kernel:  ? VBoxDrvLinuxIOCtl_6_1_6+0x56/0x280 [vboxdrv]
Apr 30 00:28:53 trentjaro kernel:  ? ksys_ioctl+0x87/0xc0
Apr 30 00:28:53 trentjaro kernel:  ? __x64_sys_ioctl+0x16/0x20
Apr 30 00:28:53 trentjaro kernel:  ? do_syscall_64+0x4e/0x160
Apr 30 00:28:53 trentjaro kernel:  ? entry_SYSCALL_64_after_hwframe+0x44/0xa9
Apr 30 00:28:53 trentjaro kernel: BUG: using smp_processor_id() in preemptible [00000000] code: EMT/30>
Apr 30 00:28:53 trentjaro kernel: caller is VBoxHost_RTThreadPreemptRestore+0x12/0x30 [vboxdrv]
Apr 30 00:28:53 trentjaro kernel: CPU: 2 PID: 3008 Comm: EMT Tainted: G      D W  OE     5.6.4-1-rt3-M>
Apr 30 00:28:53 trentjaro kernel: Hardware name: LENOVO 20F6CTO1WW/20F6CTO1WW, BIOS R02ET71W (1.44 ) 0>
Apr 30 00:28:53 trentjaro kernel: Call Trace:
Apr 30 00:28:53 trentjaro kernel:  dump_stack+0x66/0x90
Apr 30 00:28:53 trentjaro kernel:  debug_smp_processor_id.cold+0x4e/0x53
Apr 30 00:28:53 trentjaro kernel:  VBoxHost_RTThreadPreemptRestore+0x12/0x30 [vboxdrv]
Apr 30 00:28:53 trentjaro kernel:  ? update_curr+0x100/0x240
Apr 30 00:28:53 trentjaro kernel:  ? supdrvIOCtlFast+0x66/0xb0 [vboxdrv]
Apr 30 00:28:53 trentjaro kernel:  ? VBoxDrvLinuxIOCtl_6_1_6+0x56/0x280 [vboxdrv]
Apr 30 00:28:53 trentjaro kernel:  ? ksys_ioctl+0x87/0xc0
Apr 30 00:28:53 trentjaro kernel:  ? __x64_sys_ioctl+0x16/0x20
Apr 30 00:28:53 trentjaro kernel:  ? do_syscall_64+0x4e/0x160
Apr 30 00:28:53 trentjaro kernel:  ? entry_SYSCALL_64_after_hwframe+0x44/0xa9
Apr 30 00:28:53 trentjaro kernel: BUG: using smp_processor_id() in preemptible [00000000] code: EMT/30>
Apr 30 00:28:53 trentjaro kernel: caller is VBoxHost_RTThreadPreemptDisable+0x12/0x30 [vboxdrv]
Apr 30 00:28:53 trentjaro kernel: CPU: 2 PID: 3008 Comm: EMT Tainted: G      D W  OE     5.6.4-1-rt3-M>
Apr 30 00:28:53 trentjaro kernel: Hardware name: LENOVO 20F6CTO1WW/20F6CTO1WW, BIOS R02ET71W (1.44 ) 0>
Apr 30 00:28:53 trentjaro kernel: Call Trace:
Apr 30 00:28:53 trentjaro kernel:  dump_stack+0x66/0x90
Apr 30 00:28:53 trentjaro kernel:  debug_smp_processor_id.cold+0x4e/0x53
Apr 30 00:28:53 trentjaro kernel:  VBoxHost_RTThreadPreemptDisable+0x12/0x30 [vboxdrv]
Apr 30 00:28:53 trentjaro kernel:  ? vprintk_emit+0x19b/0x520
Apr 30 00:28:53 trentjaro kernel:  ? is_bpf_image_address+0x70/0x80
Apr 30 00:28:53 trentjaro kernel:  ? kernel_text_address+0xf5/0x100
Apr 30 00:28:53 trentjaro kernel:  ? debug_smp_processor_id.cold+0x4e/0x53
Apr 30 00:28:53 trentjaro kernel:  ? VBoxHost_RTThreadPreemptRestore+0x12/0x30 [vboxdrv]
Apr 30 00:28:53 trentjaro kernel:  ? update_curr+0x100/0x240
Apr 30 00:28:53 trentjaro kernel:  ? supdrvIOCtlFast+0x66/0xb0 [vboxdrv]
Apr 30 00:28:53 trentjaro kernel:  ? VBoxDrvLinuxIOCtl_6_1_6+0x56/0x280 [vboxdrv]
Apr 30 00:28:53 trentjaro kernel:  ? ksys_ioctl+0x87/0xc0
Apr 30 00:28:53 trentjaro kernel:  ? __x64_sys_ioctl+0x16/0x20
Apr 30 00:28:53 trentjaro kernel:  ? do_syscall_64+0x4e/0x160
Apr 30 00:28:53 trentjaro kernel:  ? entry_SYSCALL_64_after_hwframe+0x44/0xa9
Apr 30 00:28:56 trentjaro kernel: segment-related general protection fault: 0040 [#3] PREEMPT_RT SMP P>
Apr 30 00:28:56 trentjaro kernel: CPU: 0 PID: 3008 Comm: EMT Tainted: G      D W  OE     5.6.4-1-rt3-M>
Apr 30 00:28:56 trentjaro kernel: Hardware name: LENOVO 20F6CTO1WW/20F6CTO1WW, BIOS R02ET71W (1.44 ) 0>
Apr 30 00:28:56 trentjaro kernel: RIP: 0010:0xffffffffc12e2d9a
Apr 30 00:28:56 trentjaro kernel: Code: 10 48 81 e1 ff ff fe ff 0f 22 c1 81 60 04 ff fd ff ff 0f 00 da>
Apr 30 00:28:56 trentjaro kernel: RSP: 0018:ffffad660b8f7b40 EFLAGS: 00010206
Apr 30 00:28:56 trentjaro kernel: RAX: ffff93301140b040 RBX: ffffad660b909000 RCX: 0000000000000000
Apr 30 00:28:56 trentjaro kernel: RDX: 0000000000000040 RSI: ffffad660b90df60 RDI: 0000000000000330
Apr 30 00:28:56 trentjaro kernel: RBP: ffffad660b8f7b68 R08: 0000000000000000 R09: 0000000000000000
Apr 30 00:28:56 trentjaro kernel: R10: ffffad66001b7480 R11: ffffad660b913000 R12: ffffad660b90d8f0
Apr 30 00:28:56 trentjaro kernel: R13: 0000000000000001 R14: 0000000000000a3e R15: 0000000000000a3e
Apr 30 00:28:56 trentjaro kernel: FS:  00007f3e365fc700(0000) GS:ffff933011400000(0000) knlGS:00000000>
Apr 30 00:28:56 trentjaro kernel: CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
Apr 30 00:28:56 trentjaro kernel: CR2: 0000000000000000 CR3: 000000037a08c002 CR4: 00000000003626f0
Apr 30 00:28:56 trentjaro kernel: DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
Apr 30 00:28:56 trentjaro kernel: DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400
Apr 30 00:28:56 trentjaro kernel: Call Trace:
Apr 30 00:28:56 trentjaro kernel:  ? enqueue_entity+0x13f/0x740
Apr 30 00:28:56 trentjaro kernel:  ? enqueue_task_fair+0x8a/0x480
Apr 30 00:28:56 trentjaro kernel:  ? resched_curr+0x24/0xf0
Apr 30 00:28:56 trentjaro kernel:  ? check_preempt_curr+0x50/0x90
Apr 30 00:28:56 trentjaro kernel:  ? ttwu_do_wakeup+0x19/0x1a0
Apr 30 00:28:56 trentjaro kernel:  ? _raw_spin_unlock_irqrestore+0x20/0x60
Apr 30 00:28:56 trentjaro kernel:  ? _raw_spin_unlock_irqrestore+0x20/0x60
Apr 30 00:28:56 trentjaro kernel:  ? supdrvOSGetCurrentGdtRw+0x1b/0x30 [vboxdrv]
Apr 30 00:28:56 trentjaro kernel:  ? _raw_spin_trylock+0x13/0x80
Apr 30 00:28:56 trentjaro kernel:  ? _raw_spin_unlock_irqrestore+0x20/0x60
Apr 30 00:28:56 trentjaro kernel:  ? ___ratelimit+0x9b/0xe7
Apr 30 00:28:56 trentjaro kernel:  ? debug_smp_processor_id+0x65/0x80
Apr 30 00:28:56 trentjaro kernel:  ? VBoxHost_RTThreadPreemptRestore+0x12/0x30 [vboxdrv]
Apr 30 00:28:56 trentjaro kernel:  ? SUPSemEventSignal+0x7b/0xa0 [vboxdrv]
Apr 30 00:28:56 trentjaro kernel:  ? update_curr+0x100/0x240
Apr 30 00:28:56 trentjaro kernel:  ? supdrvIOCtlFast+0x66/0xb0 [vboxdrv]
Apr 30 00:28:56 trentjaro kernel:  ? VBoxDrvLinuxIOCtl_6_1_6+0x56/0x280 [vboxdrv]
Apr 30 00:28:56 trentjaro kernel:  ? ksys_ioctl+0x87/0xc0
Apr 30 00:28:56 trentjaro kernel:  ? __x64_sys_ioctl+0x16/0x20
Apr 30 00:28:56 trentjaro kernel:  ? do_syscall_64+0x4e/0x160
Apr 30 00:28:56 trentjaro kernel:  ? entry_SYSCALL_64_after_hwframe+0x44/0xa9
Apr 30 00:28:56 trentjaro kernel: Modules linked in: rfcomm ccm fuse snd_hda_codec_hdmi uas snd_hda_co>
Apr 30 00:28:56 trentjaro kernel:  syscopyarea tpm_tis_core mei_me sysfillrect snd tpm sysimgblt mei e>
Apr 30 00:28:56 trentjaro kernel: ---[ end trace 0000000000000006 ]---
Apr 30 00:28:56 trentjaro kernel: RIP: 0010:0xffffffffc12e2d9a
Apr 30 00:28:56 trentjaro kernel: Code: 10 48 81 e1 ff ff fe ff 0f 22 c1 81 60 04 ff fd ff ff 0f 00 da>
Apr 30 00:28:56 trentjaro kernel: RSP: 0018:ffffad6601f5fb40 EFLAGS: 00010206
Apr 30 00:28:56 trentjaro kernel: RAX: ffff93301148b040 RBX: ffffad66029c6000 RCX: 0000000000000000
Apr 30 00:28:56 trentjaro kernel: RDX: 0000000000000040 RSI: ffffad66029caf60 RDI: 0000000000000330
Apr 30 00:28:56 trentjaro kernel: RBP: ffffad6601f5fb68 R08: 0000000000000000 R09: 0000000000000001
Apr 30 00:28:56 trentjaro kernel: R10: ffffad66003df480 R11: ffffad66029d0000 R12: ffffad66029ca8f0
Apr 30 00:28:56 trentjaro kernel: R13: 0000000000000001 R14: 0000000000000462 R15: 0000000000000462
Apr 30 00:28:56 trentjaro kernel: FS:  00007f3e365fc700(0000) GS:ffff933011400000(0000) knlGS:00000000>
Apr 30 00:28:56 trentjaro kernel: CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
Apr 30 00:28:56 trentjaro kernel: CR2: 0000000000000000 CR3: 000000037a08c002 CR4: 00000000003626f0
Apr 30 00:28:56 trentjaro kernel: DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
Apr 30 00:28:56 trentjaro kernel: DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400
-- Reboot --

Let me know what other info I can provide to better ask this question, and I'll get it ASAP. I'm motivated to learn how to debug this stuff better. Thanks for the help.

Trent

Hello,

You don't need those.

Update your system please.
sudo pacman-mirrors -f && sudo pacman -Syyu
reboot after that.

Thanks @bogdancovaciu I hate to admit it, but that's all it took. I thought I was keeping up to date with

sudo pacman -Syu

but it seems that the kernel wasn't getting updated unless I installed the package

linux-latest

I hadn't considered that this could be a possibility, but once I got up to 5.6.7 and installed the corresponding vbox host modules, everything worked.

Trent

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.

Forum kindly sponsored by