Bug 224646

Summary: Attempts to load non-PAE modules into a PAE-kernel should be rejected
Product: Base System Reporter: Mikhail Teterin <mi>
Component: kernAssignee: freebsd-bugs (Nobody) <bugs>
Status: New ---    
Severity: Affects Only Me    
Priority: ---    
Version: 11.1-STABLE   
Hardware: Any   
OS: Any   

Description Mikhail Teterin freebsd_committer 2017-12-28 16:01:28 UTC
When a module is built outside of the normal "make kernel" process, it may not have the PAE defined. There may also be a problem in the other direction.

I was recently bitten by this as documented in Bug #224616 -- vboxguest.ko installed by the emulators/virtualbox-ose-additions would load, but fail to initialize itself with an incomprehensible -- and easy to miss -- error-message.

The port-maintainer(s) may fix the problem with the port, but the kldload and/or kernel need to detect such miscompilations and reject attempts to load the module -- with an easy to understand error.