Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!

Bug 595504

Summary: app-emulation/virtualbox-modules-5.1.6: vboxdrv fails to load on linux-4.7.5
Product: Gentoo Linux Reporter: Livid <g.livid>
Component: Current packagesAssignee: Lars Wendler (Polynomial-C) (RETIRED) <polynomial-c>
Status: RESOLVED DUPLICATE    
Severity: normal CC: v_2e
Priority: Normal    
Version: unspecified   
Hardware: All   
OS: Linux   
Whiteboard:
Package list:
Runtime testing required: ---
Attachments: emerge --info

Description Livid 2016-09-29 09:43:34 UTC
Created attachment 448398 [details]
emerge --info

vboxdrv fails to load on 4.7 kernels:

[  753.196314] vboxdrv: Unknown symbol mod_timer_pinned (err 0)
[  753.196351] vboxdrv: Unknown symbol __cpu_present_mask (err 0)
[  753.196380] vboxdrv: Unknown symbol schedule_hrtimeout_range (err 0)
[  753.196395] vboxdrv: Unknown symbol __get_vm_area (err 0)
[  753.196412] vboxdrv: Unknown symbol sched_setscheduler (err 0)
[  753.196431] vboxdrv: Unknown symbol set_pages_nx (err 0)
[  753.196450] vboxdrv: Unknown symbol get_user_pages (err 0)
[  753.196469] vboxdrv: Unknown symbol smp_call_function (err 0)
[  753.196515] vboxdrv: Unknown symbol map_vm_area (err 0)
[  753.196553] vboxdrv: Unknown symbol set_pages_x (err 0)

That said, it does build.

Here's a relevant upstream issue: https://www.virtualbox.org/ticket/15566?cversion=0&cnum_hist=4 -- but it's reportedly fixed in ubuntu's v4.7-rc7 kernel. I'm not exactly sure what's going wrong here.
Comment 1 Lars Wendler (Polynomial-C) (RETIRED) gentoo-dev 2016-09-29 15:05:55 UTC
Strange... I am using kernel 4.7.5 and I have successfully loaded vboxdrv...
Comment 2 Livid 2016-09-29 15:18:14 UTC
(In reply to Lars Wendler (Polynomial-C) from comment #1)
> Strange... I am using kernel 4.7.5 and I have successfully loaded vboxdrv...

Okay, so my guess would be that this is CONFIG_TRIM_UNUSED_KSYMS. I just found this in my kernel config. Not entirely sure how or when that happened -- either I flipped that accidentally, or it was on by default at some point. I'm going to check if flipping that back makes any difference now.
Comment 3 Livid 2016-09-29 15:21:49 UTC
Yep, that was it. Sorry for the noise, I have no idea why that flag was on. Maybe ebuilds should check for this flag to avoid such problems?
Comment 4 Lars Wendler (Polynomial-C) (RETIRED) gentoo-dev 2016-09-30 08:25:21 UTC

*** This bug has been marked as a duplicate of bug 592138 ***