Skip to content

kernel: Test to validates the kernel module signing and out-of-tree m…#514

Open
manjeetp89 wants to merge 1 commit into
qualcomm-linux:mainfrom
manjeetp89:sandbox/manjeetp/module_sign
Open

kernel: Test to validates the kernel module signing and out-of-tree m…#514
manjeetp89 wants to merge 1 commit into
qualcomm-linux:mainfrom
manjeetp89:sandbox/manjeetp/module_sign

Conversation

@manjeetp89

@manjeetp89 manjeetp89 commented Jul 17, 2026

Copy link
Copy Markdown

kernel: Test to validates the kernel module signing and out-of-tree modules

This test validates the kernel module signing and out-of-tree modules on Qualcomm platforms with Yocto builds.

Sample Logs:
[INFO] 2026-07-16 04:34:32 - ------------------------------------------------- [INFO] 2026-07-16 04:34:32 - ----------- Starting Kernel_Module_Signing Test ------------- [INFO] 2026-07-16 04:34:32 - --- Checking CONFIG_MODULE_SIG kernel config --- [PASS] 2026-07-16 04:34:32 - Kernel config CONFIG_MODULE_SIG is enabled [PASS] 2026-07-16 04:34:32 - CONFIG_MODULE_SIG is enabled in kernel config. [INFO] 2026-07-16 04:34:32 - CONFIG_MODULE_SIG_FORCE is enabled (unsigned modules will be rejected). [INFO] 2026-07-16 04:34:32 - --- Checking module signature via modinfo --- [INFO] 2026-07-16 04:34:33 - Inspecting module: /usr/lib/modules/6.8.0-117-generic/updates/dkms/zfs.ko [PASS] 2026-07-16 04:34:33 - Module '/usr/lib/modules/6.8.0-117-generic/updates/dkms/zfs.ko' contains a signature field — module signing is active.
[INFO] 2026-07-16 04:34:33 - sig_id : PKCS#7
[INFO] 2026-07-16 04:34:33 - signer : las-colo41-d19-18 Secure Boot Module Signature key
[INFO] 2026-07-16 04:34:33 - sig_hashalgo: sha512
[INFO] 2026-07-16 04:34:33 - --- Checking for out-of-tree kernel modules ---
[INFO] 2026-07-16 04:34:33 - Scanning dmesg for out-of-tree module taints...
[INFO] 2026-07-16 04:34:33 - Out-of-tree modules detected in dmesg:
[INFO] 2026-07-16 04:34:33 - [65034.832869] tc956x_pcie_eth: loading out-of-tree module taints kernel.
[INFO] 2026-07-16 04:34:33 - Scanning /sys/module/*/taint for out-of-tree flags...
[INFO] 2026-07-16 04:34:40 - Out-of-tree module (taint=O): openafs
[INFO] 2026-07-16 04:34:43 - Out-of-tree module (taint=O): spl
[INFO] 2026-07-16 04:34:45 - Out-of-tree module (taint=O): zfs
[INFO] 2026-07-16 04:34:45 - --- Locating out-of-tree .ko files outside kernel/ subdirectory ---
dir: /usr/lib/modules/6.8.0-117-generic
[INFO] 2026-07-16 04:34:45 - Potential out-of-tree .ko files found (outside kernel/ tree):
[INFO] 2026-07-16 04:34:45 - /usr/lib/modules/6.8.0-117-generic/updates/dkms/zfs.ko
[INFO] 2026-07-16 04:34:45 - /usr/lib/modules/6.8.0-117-generic/updates/dkms/spl.ko
[INFO] 2026-07-16 04:34:46 - /usr/lib/modules/6.8.0-117-generic/updates/dkms/openafs.ko.zst
[INFO] 2026-07-16 04:34:46 - --- Verifying signatures on out-of-tree modules ---
[PASS] 2026-07-16 04:34:46 - SIGNED : /usr/lib/modules/6.8.0-117-generic/updates/dkms/zfs.ko
[PASS] 2026-07-16 04:34:46 - SIGNED : /usr/lib/modules/6.8.0-117-generic/updates/dkms/spl.ko
[PASS] 2026-07-16 04:34:46 - SIGNED : /usr/lib/modules/6.8.0-117-generic/updates/dkms/openafs.ko.zst
[INFO] 2026-07-16 04:34:46 - --- Final Output ---
[INFO] 2026-07-16 04:34:46 - CONFIG_MODULE_SIG enabled : YES
[INFO] 2026-07-16 04:34:46 - In-tree module signed : YES
[INFO] 2026-07-16 04:34:46 - Out-of-tree modules found : YES
[PASS] 2026-07-16 04:34:46 - Kernel_Module_Signing PASSED — Module signing is active and kernel config is valid.

Signed-off-by: Manjeet Pawar manjeetp@qti.qualcomm.com

…odules

This test validates the kernel module signing and out-of-tree modules on Qualcomm platforms
with Yocto builds.

Sample Logs:
[INFO] 2026-07-16 04:34:32 - -------------------------------------------------
[INFO] 2026-07-16 04:34:32 - ----------- Starting Kernel_Module_Signing Test -------------
[INFO] 2026-07-16 04:34:32 - --- Checking CONFIG_MODULE_SIG kernel config ---
[PASS] 2026-07-16 04:34:32 - Kernel config CONFIG_MODULE_SIG is enabled
[PASS] 2026-07-16 04:34:32 - CONFIG_MODULE_SIG is enabled in kernel config.
[INFO] 2026-07-16 04:34:32 - CONFIG_MODULE_SIG_FORCE is enabled (unsigned modules will be rejected).
[INFO] 2026-07-16 04:34:32 - --- Checking module signature via modinfo ---
[INFO] 2026-07-16 04:34:33 - Inspecting module: /usr/lib/modules/6.8.0-117-generic/updates/dkms/zfs.ko
[PASS] 2026-07-16 04:34:33 - Module '/usr/lib/modules/6.8.0-117-generic/updates/dkms/zfs.ko' contains a signature field — module signing is active.
[INFO] 2026-07-16 04:34:33 -   sig_id      : PKCS#7
[INFO] 2026-07-16 04:34:33 -   signer      :         las-colo41-d19-18 Secure Boot Module Signature key
[INFO] 2026-07-16 04:34:33 -   sig_hashalgo: sha512
[INFO] 2026-07-16 04:34:33 - --- Checking for out-of-tree kernel modules ---
[INFO] 2026-07-16 04:34:33 - Scanning dmesg for out-of-tree module taints...
[INFO] 2026-07-16 04:34:33 - Out-of-tree modules detected in dmesg:
[INFO] 2026-07-16 04:34:33 -   [65034.832869] tc956x_pcie_eth: loading out-of-tree module taints kernel.
[INFO] 2026-07-16 04:34:33 - Scanning /sys/module/*/taint for out-of-tree flags...
[INFO] 2026-07-16 04:34:40 -   Out-of-tree module (taint=O): openafs
[INFO] 2026-07-16 04:34:43 -   Out-of-tree module (taint=O): spl
[INFO] 2026-07-16 04:34:45 -   Out-of-tree module (taint=O): zfs
[INFO] 2026-07-16 04:34:45 - --- Locating out-of-tree .ko files outside kernel/ subdirectory ---
dir: /usr/lib/modules/6.8.0-117-generic
[INFO] 2026-07-16 04:34:45 - Potential out-of-tree .ko files found (outside kernel/ tree):
[INFO] 2026-07-16 04:34:45 -   /usr/lib/modules/6.8.0-117-generic/updates/dkms/zfs.ko
[INFO] 2026-07-16 04:34:45 -   /usr/lib/modules/6.8.0-117-generic/updates/dkms/spl.ko
[INFO] 2026-07-16 04:34:46 -   /usr/lib/modules/6.8.0-117-generic/updates/dkms/openafs.ko.zst
[INFO] 2026-07-16 04:34:46 - --- Verifying signatures on out-of-tree modules ---
[PASS] 2026-07-16 04:34:46 -   SIGNED   : /usr/lib/modules/6.8.0-117-generic/updates/dkms/zfs.ko
[PASS] 2026-07-16 04:34:46 -   SIGNED   : /usr/lib/modules/6.8.0-117-generic/updates/dkms/spl.ko
[PASS] 2026-07-16 04:34:46 -   SIGNED   : /usr/lib/modules/6.8.0-117-generic/updates/dkms/openafs.ko.zst
[INFO] 2026-07-16 04:34:46 - --- Final Output ---
[INFO] 2026-07-16 04:34:46 - CONFIG_MODULE_SIG enabled : YES
[INFO] 2026-07-16 04:34:46 - In-tree module signed     : YES
[INFO] 2026-07-16 04:34:46 - Out-of-tree modules found : YES
[PASS] 2026-07-16 04:34:46 - Kernel_Module_Signing PASSED — Module signing is active and kernel config is valid.

Signed-off-by: Manjeet Pawar <manjeetp@qti.qualcomm.com>
@smuppand

Copy link
Copy Markdown
Contributor

manjeetp89 Could you look into the workflows that are failing and resolve them?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants