Bug 1539165 - version magic errors when compiling bbswitch or vboxconfig
Summary: version magic errors when compiling bbswitch or vboxconfig
Keywords:
Status: CLOSED CURRENTRELEASE
Alias: None
Product: Fedora
Classification: Fedora
Component: kernel
Version: 27
Hardware: x86_64
OS: Linux
unspecified
high
Target Milestone: ---
Assignee: Kernel Maintainer List
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2018-01-26 19:45 UTC by slartibart70
Modified: 2018-01-29 21:19 UTC (History)
21 users (show)

Fixed In Version:
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
Environment:
Last Closed: 2018-01-29 21:19:43 UTC
Type: Bug
Embargoed:


Attachments (Terms of Use)

Description slartibart70 2018-01-26 19:45:09 UTC
I just installed kernel 4.14.15-300 on a lenovo t470 laptop with nvidia card (i am using bumblebee/bbswitch to turn off nvidia if not used)

I get the following compilation errors when compiling bbswitch

T470 bbswitch: version magic '4.14.15-300.fc27.x86_64 SMP mod_unload ' should be '4.14.15-300.fc27.x86_64 SMP mod_unload retpoline '

This leads to bbswitch not being loadable and therefore not active (to disable the nvidia card)

Same problem with virtualbox 5.2.6, journalctl shows that same problem for vboxconfig

T470 kernel: vboxdrv: version magic '4.14.15-300.fc27.x86_64 SMP mod_unload ' should be '4.14.15-300.fc27.x86_64 SMP mod_unload retpoline '

leading to virtualbox not being usable because of missing modules...

Trying this (virtualbox-config) on an amd machine with kernel 4.14.15 leads to the same results

amdfx kernel: nvidia: version magic '4.14.15-300.fc27.x86_64 SMP mod_unload ' should be '4.14.15-300.fc27.x86_64 SMP mod_unload retpoline '

Any ideas how to fix this (and load the modules again)???

Comment 1 Didier G 2018-01-27 14:51:49 UTC
Same problem with vboxconfig and

kernel-4.14.15-300.fc27.x86_64
VirtualBox-5.2-5.2.6_120293_fedora26-1.x86_64


No problem with:

kernel-4.14.14-300.fc27.x86_64

Comment 2 Didier G 2018-01-27 15:14:03 UTC
I just opened https://www.virtualbox.org/ticket/17505

Comment 3 dherault 2018-01-27 16:32:24 UTC
Same issue but i'm not using bbswitch or bumbleblee.

Only nvidia card (1080gtx), nvidia drivers + last kernel.

dmesg | grep nvidia
[    1.973527] nvidia: version magic '4.14.15-300.fc27.x86_64 SMP mod_unload ' should be '4.14.15-300.fc27.x86_64 SMP mod_unload retpoline '
[    2.054548] nvidia: version magic '4.14.15-300.fc27.x86_64 SM

Comment 4 dherault 2018-01-27 20:33:12 UTC
I confirm. Bug present on 4.14.15-300 but not on kernel-4.14.14-300.

Comment 5 Laura Abbott 2018-01-27 20:55:15 UTC
https://koji.fedoraproject.org/koji/buildinfo?buildID=1021338 should have a revert, please test this (x86_64 should be finished)

Comment 6 dherault 2018-01-27 21:31:20 UTC
For me , issue solved with 4.14.15-301.fc27.

Thanks Laura.

Comment 7 Didier G 2018-01-27 23:07:18 UTC
For vboxconfig fixed by kernel-4.14.15-301.fc27.x86_64

Thanks for your job.

Comment 8 Laura Abbott 2018-01-28 08:28:24 UTC
Thank Justin, he was the one who made the build :)

It should be filed in bodhi sometime soon

Comment 9 Justin M. Forbes 2018-01-29 21:19:43 UTC
Something to consider, I backed out the patch that was enforcement, but what was really happening is it was refusing to load any module that was built with a non retpoline capable compiler (gcc builds 7.2.1-7 and 7.3.1-1 in Fedora have retpoline support). So currently, your modules load, but you are exposed for spectre variant 2 through those modules. Probably not a huge concern, but you may consider installing gcc-7.3.1-1 from koji https://koji.fedoraproject.org/koji/buildinfo?buildID=1020649 and rebuilding the modules just to be covered. It should be filed as an update soon.


Note You need to log in before you can comment on or make changes to this bug.