Bug 16397

Summary: module signing kernel feature does not work properly when KBUILD_DEFCONFIG is defined
Product: [Yocto Project Subprojects] Kernel Reporter: Bougrine Anis <anis.bougrine10>
Component: kernel-configurationAssignee: Bougrine Anis <anis.bougrine10>
Status: RESOLVED FIXED QA Contact:
Severity: normal    
Priority: Medium+ CC: ccasciato, randy.macleod, yp.kernel.watcher, yp.watcher
Version: unspecified   
Target Milestone: 6.1 M3   
Hardware: All   
OS: Multiple   
Whiteboard:
OS type for building Yocto: --- Type of Regression: ---
Verified: Documentation change: No (bug/feature does not impact docs)

Description Bougrine Anis 2026-08-16 11:14:09 UTC
In yocto-kernel-cache, module signing feature does not set module auto-signing explicitly.

Module auto-signing requires CONFIG_MODULE_SIG and CONFIG_MODULE_SIG_ALL.

In the normal configuration flow, enabling CONFIG_MODULE_SIG is sufficient to enable module auto-signing because CONFIG_MODULE_SIG_ALL defaults to y.

However, when KBUILD_DEFCONFIG is used in do_kernel_configme(), merge_config.sh is invoked with -n, which uses allnoconfig as the base configuration. In this case, CONFIG_MODULE_SIG_ALL is not enabled by its default value.

This leaves module signature verification enabled while kernel modules are not automatically signed during modules_install.

Explicitly enable CONFIG_MODULE_SIG_ALL to ensure that modules are automatically signed.
Comment 2 Bougrine Anis 2026-08-17 13:02:35 UTC
Note that a patch has been submitted to linux-yocto@lists.yoctoproject.org regarding this: https://lists.yoctoproject.org/g/linux-yocto/topic/kernel_cache_patch/120774566
Comment 3 Randy MacLeod 2026-08-20 14:34:51 UTC
Once we get the oe-core srcrev kernel bump, please 
provide the linux-yocto and oe-core and close the issue.