Bug 1559163

Summary: kernel 4.15.12-300.fc27.x86_64 breaks out-of-tree-module builds
Product: [Fedora] Fedora Reporter: Harald Reindl <h.reindl>
Component: kernelAssignee: Kernel Maintainer List <kernel-maint>
Status: CLOSED INSUFFICIENT_DATA QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: 27CC: airlied, bskeggs, cz172638, ewk, hdegoede, ichavero, itamar, jarodwilson, jglisse, john.j5live, jonathan, josef, kernel-maint, labbott, linville, mchehab, mjg59, robatino, sezeroz, steved
Target Milestone: ---Flags: jforbes: needinfo?
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2018-08-29 15:02:54 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:
Attachments:
Description Flags
build-script and output for vmware
none
vboxconfig console log
none
vboxconfig output log none

Description Harald Reindl 2018-03-21 20:49:18 UTC
Created attachment 1411446 [details]
build-script and output for vmware

that out-of-tree-modules break between kernel-version-jumps is ecpected but between 4.15.11 and 4.15.12 it is unacceptable given that this moring 4.15.11 built fine and nothing else changed

attachment because the debug-output is too long for inline

Comment 1 Didier G 2018-03-22 13:41:09 UTC
Problem to build kernel modules for VirtualBox too.
vboxconfig works fine with 4.15.11 and previous
vboxconfig fails with 4.15.12


Configuration:
kernel-4.15.12-300.fc27.x86_64
kernel-core-4.15.12-300.fc27.x86_64
kernel-devel-4.15.12-300.fc27.x86_64
kernel-headers-4.15.12-300.fc27.x86_64
kernel-modules-4.15.12-300.fc27.x86_64
kernel-modules-extra-4.15.12-300.fc27.x86_64
VirtualBox-5.2-5.2.8_121009_fedora26-1.x86_64

Output from vboxconfig:
make V=1 CONFIG_MODULE_SIG= -C /lib/modules/4.15.12-300.fc27.x86_64/build SUBDIRS=/tmp/vbox.0 SRCROOT=/tmp/vbox.0 -j4 modules
make[1]: warning: -jN forced in submake: disabling jobserver mode.
test -e include/generated/autoconf.h -a -e include/config/auto.conf || (	\
echo >&2;							\
echo >&2 "  ERROR: Kernel configuration is invalid.";		\
echo >&2 "         include/generated/autoconf.h or include/config/auto.conf are missing.";\
echo >&2 "         Run 'make oldconfig && make prepare' on kernel src to fix it.";	\
echo >&2 ;							\
/bin/false)
mkdir -p /tmp/vbox.0/.tmp_versions ; rm -f /tmp/vbox.0/.tmp_versions/*
make -f ./scripts/Makefile.build obj=/tmp/vbox.0
make[2]: *** No rule to make target '/tmp/vbox.0/linux/SUPDrv-linux.o', needed by '/tmp/vbox.0/vboxdrv.o'.  Stop.
make[1]: *** [Makefile:1518: _module_/tmp/vbox.0] Error 2
make: *** [/tmp/vbox.0/Makefile.include.footer:101: vboxdrv] Error 2

Comment 2 Laura Abbott 2018-03-22 14:56:17 UTC
So I did some tweaking for what goes into kernel-devel but it shouldn't affect anything here. All of these errors seem to be coming from the virtual box itself which is doubly irritating. Can you try running the make prepare step before building the modules to see if that makes a difference?

Comment 3 Didier G 2018-03-22 16:03:48 UTC
Created attachment 1411795 [details]
vboxconfig console log

Comment 4 Didier G 2018-03-22 16:04:38 UTC
Created attachment 1411796 [details]
vboxconfig output log

vboxconfig output log

Comment 5 Didier G 2018-03-22 16:06:10 UTC
I tried to run "make oldconfig && make prepare" before vboxconfig.

Different issue but fails again with kernel 4.15.12.

Comment 6 Laura Abbott 2018-03-22 16:58:22 UTC
Thanks for that, that was helpful.

/bin/sh: ./scripts/recordmcount: No such file or directory

I think the dependencies are wrong for this such that it isn't getting re-built. I'll take a look.

Comment 7 Laura Abbott 2018-03-22 18:39:33 UTC
*** Bug 1559545 has been marked as a duplicate of this bug. ***

Comment 8 Didier G 2018-03-22 22:03:09 UTC
Great job Laura, 4.15.12-301 fixes VirtualBox kernel modules build problem.

Comment 9 Harald Reindl 2018-03-22 22:45:16 UTC
VMware Workstation also works with 4.15.12-301.fc27.x86_64

[harry@srv-rhsoft:~]$ uname -a
Linux srv-rhsoft.rhsoft.net 4.15.12-301.fc27.x86_64 #1 SMP Thu Mar 22 19:25:27 UTC 2018 x86_64 x86_64 x86_64 GNU/Linux

[harry@srv-rhsoft:~]$ lsmod | grep vm
vmw_vmci               81920  0
vmmon                 102400  22
vmnet                  61440  12

Comment 10 Justin M. Forbes 2018-07-23 15:06:24 UTC
*********** MASS BUG UPDATE **************

We apologize for the inconvenience.  There are a large number of bugs to go through and several of them have gone stale.  Due to this, we are doing a mass bug update across all of the Fedora 27 kernel bugs.

Fedora 27 has now been rebased to 4.17.7-100.fc27.  Please test this kernel update (or newer) and let us know if you issue has been resolved or if it is still present with the newer kernel.

If you have moved on to Fedora 28, and are still experiencing this issue, please change the version to Fedora 28.

If you experience different issues, please open a new bug report for those.

Comment 11 Justin M. Forbes 2018-08-29 15:02:54 UTC
*********** MASS BUG UPDATE **************
This bug is being closed with INSUFFICIENT_DATA as there has not been a response in 5 weeks. If you are still experiencing this issue, please reopen and attach the relevant data from the latest kernel you are running and any data that might have been requested previously.