Bug 218679 - linux-6.8.3 fails to build: modpost: "srso_alias_untrain_ret" [arch/x86/kvm/kvm-amd.ko] undefined
Summary: linux-6.8.3 fails to build: modpost: "srso_alias_untrain_ret" [arch/x86/kvm/k...
Status: RESOLVED CODE_FIX
Alias: None
Product: Platform Specific/Hardware
Classification: Unclassified
Component: x86-64 (show other bugs)
Hardware: All Linux
: P3 normal
Assignee: platform_x86_64@kernel-bugs.osdl.org
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2024-04-03 16:15 UTC by Petr Pisar
Modified: 2024-04-06 11:45 UTC (History)
1 user (show)

See Also:
Kernel Version: 6.8.3
Subsystem:
Regression: Yes
Bisected commit-id:


Attachments
Kernel configuation file (118.97 KB, text/plain)
2024-04-03 16:15 UTC, Petr Pisar
Details
fix (2.04 KB, patch)
2024-04-03 16:53 UTC, Borislav Petkov
Details | Diff

Description Petr Pisar 2024-04-03 16:15:41 UTC
Created attachment 306083 [details]
Kernel configuation file

When I try to build linux-6.8.3 on AMD x86_64 for the for same platform with enabled KVM (see an attached .config file), the build fails:

# make
  CALL    scripts/checksyscalls.sh
  DESCEND objtool
  INSTALL libsubcmd_headers
  MODPOST Module.symvers
ERROR: modpost: "srso_alias_untrain_ret" [arch/x86/kvm/kvm-amd.ko] undefined!
make[2]: *** [scripts/Makefile.modpost:145: Module.symvers] Chyba 1
make[1]: *** [/usr/src/linux-6.8.3/Makefile:1873: modpost] Chyba 2
make: *** [Makefile:240: __sub-make] Chyba 2

I have gcc-13.2.1 and binutils-2.41.0.
Linux-6.8.2 builds fine.
Comment 1 Borislav Petkov 2024-04-03 16:53:29 UTC
Created attachment 306084 [details]
fix

See if this fixes it.
Comment 2 Petr Pisar 2024-04-03 17:38:15 UTC
Thanks for the quick patch. I confirm it fixes the problem for me. The kernel builds and runs.

Note that the patch does not apply cleanly to 6.8.3.
Comment 3 Borislav Petkov 2024-04-03 17:41:14 UTC
Thanks for reporting and testing. I'll backport it to stable.
Comment 4 Artem S. Tashkinov 2024-04-06 10:00:57 UTC
Sadly isn't fixed in 6.8.4.

ERROR: modpost: "srso_alias_untrain_ret" [arch/x86/kvm/kvm-amd.ko] undefined!
make[2]: *** [scripts/Makefile.modpost:145: Module.symvers] Error 1
make[1]: *** [/tmp/linux-6.8/Makefile:1873: modpost] Error 2
make: *** [Makefile:240: __sub-make] Error 2

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