Bug 246889 - Kernel panic after upgrading to FreeBSD 12.1
Summary: Kernel panic after upgrading to FreeBSD 12.1
Status: New
Alias: None
Product: Base System
Classification: Unclassified
Component: kern (show other bugs)
Version: 12.1-STABLE
Hardware: amd64 Any
: --- Affects Only Me
Assignee: freebsd-bugs (Nobody)
URL:
Keywords: panic, regression
Depends on:
Blocks:
 
Reported: 2020-05-31 06:37 UTC by Eugene Hutorny
Modified: 2020-06-01 08:13 UTC (History)
0 users

See Also:


Attachments
core.txt.3 (177.33 KB, text/plain)
2020-05-31 06:37 UTC, Eugene Hutorny
no flags Details
core.txt.0 (182.59 KB, text/plain)
2020-05-31 06:38 UTC, Eugene Hutorny
no flags Details
core.txt.1 (177.09 KB, text/plain)
2020-05-31 06:38 UTC, Eugene Hutorny
no flags Details
core.txt.2 (179.26 KB, text/plain)
2020-05-31 06:39 UTC, Eugene Hutorny
no flags Details
core.txt.4 (245.07 KB, text/plain)
2020-06-01 04:03 UTC, Eugene Hutorny
no flags Details

Note You need to log in before you can comment on or make changes to this bug.
Description Eugene Hutorny 2020-05-31 06:37:47 UTC
Created attachment 215089 [details]
core.txt.3

Suspecting VBoxDrvFreeBSDIOCtl
Comment 1 Eugene Hutorny 2020-05-31 06:38:30 UTC
Created attachment 215090 [details]
core.txt.0
Comment 2 Eugene Hutorny 2020-05-31 06:38:50 UTC
Created attachment 215091 [details]
core.txt.1
Comment 3 Eugene Hutorny 2020-05-31 06:39:20 UTC
Created attachment 215092 [details]
core.txt.2
Comment 4 Andriy Gapon freebsd_committer 2020-05-31 10:14:41 UTC
Recompile VirtualBox. Its kernel module does snot match your new kernel.
Comment 5 Eugene Hutorny 2020-05-31 10:28:31 UTC
I have installed VirtualBox with 

# pkg install virtualbox-ose

on top of a fresh FreeBSD 12.1
The same setup used to work in 11.3
Comment 6 Andriy Gapon freebsd_committer 2020-05-31 11:10:35 UTC
Right. This is not guaranteed to work, unfortunately. To be safe, you always need to compile kernel modules yourself. Modules from package may or may not work. You can read a lot about that on the mailing lists and forums.
Comment 7 Eugene Hutorny 2020-06-01 04:03:03 UTC
Created attachment 215120 [details]
core.txt.4

Replacing vbox kernel modules with self-compiled has not fixed the issue.
When the host (FreeBSD) crashed, the guest (Ubuntu 20) was reporting numerous I/O errors. Unfortunately, guest has not saved any crash logs.

Also I noticed that NAT networking does not work with both stock and self-compiled modules. Perhaps this is caused by

module_register_init: MOD_LOAD (ng_vboxnetflt, 0xffffffff82ab0c50, 0xffffffff82aa7960) error 22
/etc/rc: WARNING: Can't load vboxnetflt module.

Not sure if it is related to the crash.
Comment 8 Andriy Gapon freebsd_committer 2020-06-01 08:00:56 UTC
What source tree did you use when you compiled the modules?
Is it an exact match for the kernel that you have installed?
Comment 9 Eugene Hutorny 2020-06-01 08:13:21 UTC
What would be a proof for that?