Bug 229391 - [VirtualBox] page fault while in kernel mode
Summary: [VirtualBox] page fault while in kernel mode
Status: New
Alias: None
Product: Base System
Classification: Unclassified
Component: kern (show other bugs)
Version: 11.2-RELEASE
Hardware: Any Any
: --- Affects Some People
Assignee: vbox
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2018-06-28 15:08 UTC by Ludger Bolmerg
Modified: 2018-06-29 00:17 UTC (History)
2 users (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Ludger Bolmerg 2018-06-28 15:08:15 UTC
While upgrading from 11.1-RELEASE to 11.2-RELEASE using freebsd-update(8) system gets fatal trap 12
virtualbox-ose-5.2.8_1 and virtualbox-ose-kmod-5.2.8_1 are installed on the system

Jun 28 15:39:29 ludger-thinkpad kernel: Fatal trap 12: page fault while in kernel mode
Jun 28 15:39:29 ludger-thinkpad kernel: cpuid = 3; apic id = 05
Jun 28 15:39:29 ludger-thinkpad kernel: fault virtual address   = 0x134
Jun 28 15:39:29 ludger-thinkpad kernel: fault code              = supervisor read data, page not present
Jun 28 15:39:29 ludger-thinkpad kernel: instruction pointer     = 0x20:0xffffffff80a98280
Jun 28 15:39:29 ludger-thinkpad kernel: stack pointer           = 0x28:0xffffffff82315bf0
Jun 28 15:39:29 ludger-thinkpad kernel: frame pointer           = 0x28:0xffffffff82315c20
Jun 28 15:39:29 ludger-thinkpad kernel: code segment            = base rx0, limit 0xfffff, type 0x1b
Jun 28 15:39:29 ludger-thinkpad kernel: = DPL 0, pres 1, long 1, def32 0, gran 1
Jun 28 15:39:29 ludger-thinkpad kernel: processor eflags        = interrupt enabled, resume, IOPL = 0
Jun 28 15:39:29 ludger-thinkpad kernel: current process         = 0 (swapper)
Jun 28 15:39:29 ludger-thinkpad kernel: trap number             = 12
Jun 28 15:39:29 ludger-thinkpad kernel: panic: page fault
Jun 28 15:39:29 ludger-thinkpad kernel: cpuid = 3
Jun 28 15:39:29 ludger-thinkpad kernel: KDB: stack backtrace:
Jun 28 15:39:29 ludger-thinkpad kernel: #0 0xffffffff80b3d567 at kdb_backtrace+0x67
Jun 28 15:39:29 ludger-thinkpad kernel: #1 0xffffffff80af6b07 at vpanic+0x177
Jun 28 15:39:29 ludger-thinkpad kernel: #2 0xffffffff80af6983 at panic+0x43
Jun 28 15:39:29 ludger-thinkpad kernel: #3 0xffffffff80f77faf at trap_fatal+0x35f
Jun 28 15:39:29 ludger-thinkpad kernel: #4 0xffffffff80f78009 at trap_pfault+0x49
Jun 28 15:39:29 ludger-thinkpad kernel: #5 0xffffffff80f777d7 at trap+0x2c7
Jun 28 15:39:29 ludger-thinkpad kernel: #6 0xffffffff80f5769c at calltrap+0x8
Jun 28 15:39:29 ludger-thinkpad kernel: #7 0xffffffff80a980d7 at destroy_dev+0x37
Jun 28 15:39:29 ludger-thinkpad kernel: #8 0xffffffff82250127 at VBoxDrvFreeBSDModuleEvent+0x117
Jun 28 15:39:29 ludger-thinkpad kernel: #9 0xffffffff80ad5f5f at module_register_init+0xbf
Jun 28 15:39:29 ludger-thinkpad kernel: #10 0xffffffff80a92898 at mi_startup+0x118
Jun 28 15:39:29 ludger-thinkpad kernel: #11 0xffffffff8031002c at btext+0x2c
Jun 28 15:39:29 ludger-thinkpad kernel: Uptime: 1s
Jun 28 15:39:29 ludger-thinkpad kernel: Automatic reboot in 15 seconds - press a key on the console to abort
Jun 28 15:39:29 ludger-thinkpad kernel: Rebooting...

Workaround: 
change vboxnet_enable from "YES" to "NO" in /etc/rc.conf
comment #vboxdrv_load="YES" in /boot/loader.conf

Maybe a hint should be given in release notes
Comment 1 rkoberman 2018-06-28 23:04:37 UTC
After OS upgrade, it is critical that all ports system installed kernel modules be rebuilt. This is a known issue. Only virtualbox-ose-kmod need be reinstalled, either by rebuilding the port or installing the package, but the current version is 5.2.12, so you will need to reinstall virtualbox-ose, as well and update the guest additions on all guests.
Comment 2 rkoberman 2018-06-29 00:17:08 UTC
(In reply to rkoberman from comment #1)
I just realized that packages are probably built from the oldest supported minor version of each major version, do hye package will not help. You will have to rebuild from the port.

I also suggest that an errata should list any/all ports that provide modules that may be broken after a minor release.