<?xml version="1.0" encoding="UTF-8" standalone="yes" ?>
<!DOCTYPE bugzilla SYSTEM "https://bugzilla.yoctoproject.org/page.cgi?id=bugzilla.dtd">

<bugzilla version="5.0.6"
          urlbase="https://bugzilla.yoctoproject.org/"
          
          maintainer="it-coreprojects-helpdesk@linuxfoundation.org"
>

    <bug>
          <bug_id>16397</bug_id>
          
          <creation_ts>2026-08-16 11:14:09 +0000</creation_ts>
          <short_desc>module signing kernel feature does not work properly when KBUILD_DEFCONFIG is defined</short_desc>
          <delta_ts>2026-11-09 23:16:29 +0000</delta_ts>
          <reporter_accessible>1</reporter_accessible>
          <cclist_accessible>1</cclist_accessible>
          <classification_id>6</classification_id>
          <classification>Yocto Project Subprojects</classification>
          <product>Kernel</product>
          <component>kernel-configuration</component>
          <version>unspecified</version>
          <rep_platform>All</rep_platform>
          <op_sys>Multiple</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>FIXED</resolution>
          
          
          <bug_file_loc></bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords></keywords>
          <priority>Medium+</priority>
          <bug_severity>normal</bug_severity>
          <target_milestone>6.1 M3</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Bougrine Anis">anis.bougrine10</reporter>
          <assigned_to name="Bougrine Anis">anis.bougrine10</assigned_to>
          <cc>ccasciato</cc>
    
    <cc>randy.macleod</cc>
    
    <cc>yp.kernel.watcher</cc>
    
    <cc>yp.watcher</cc>
          
          
          <cf_os>---</cf_os>
          <cf_regression_type>---</cf_regression_type>
          
          <cf_docchange>No (bug/feature does not impact docs)</cf_docchange>

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>106539</commentid>
    <comment_count>0</comment_count>
    <who name="Bougrine Anis">anis.bougrine10</who>
    <bug_when>2026-08-16 11:14:09 +0000</bug_when>
    <thetext>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.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>106545</commentid>
    <comment_count>1</comment_count>
    <who name="Clayton Casciato">ccasciato</who>
    <bug_when>2026-08-17 12:54:08 +0000</bug_when>
    <thetext>Relevant Yocto kernel cache configs:
https://git.yoctoproject.org/yocto-kernel-cache/tree/features/module-signing/signing.cfg
https://git.yoctoproject.org/yocto-kernel-cache/tree/features/module-signing/force-signing.cfg</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>106546</commentid>
    <comment_count>2</comment_count>
    <who name="Bougrine Anis">anis.bougrine10</who>
    <bug_when>2026-08-17 13:02:35 +0000</bug_when>
    <thetext>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</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>106586</commentid>
    <comment_count>3</comment_count>
    <who name="Randy MacLeod">randy.macleod</who>
    <bug_when>2026-08-20 14:34:51 +0000</bug_when>
    <thetext>Once we get the oe-core srcrev kernel bump, please 
provide the linux-yocto and oe-core and close the issue.</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>