Bug 16397 - module signing kernel feature does not work properly when KBUILD_DEFCONFIG is defined
Summary: module signing kernel feature does not work properly when KBUILD_DEFCONFIG is...
Status: RESOLVED FIXED
Alias: None
Product: Kernel
Classification: Yocto Project Subprojects
Component: kernel-configuration (show other bugs)
Version: unspecified
Hardware: All Multiple
: Medium+ normal
Target Milestone: 6.1 M3
Assignee: Bougrine Anis
QA Contact:
URL:
Whiteboard:
Depends on:
Blocks:
 
Reported: 2026-08-16 11:14 UTC by Bougrine Anis
Modified: 2026-11-09 23:16 UTC (History)
4 users (show)

See Also:
OS type for building Yocto: ---
Type of Regression: ---
Verified:
Documentation change: No (bug/feature does not impact docs)


Attachments

Note You need to log in before you can comment on or make changes to this bug.
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.