Thread (27 messages) 27 messages, 5 authors, 2026-08-04

Re: [PATCH v5 14/14] kbuild: make CONFIG_MODULE_HASHES compatible with module stripping

From: Nicolas Schier <nsc@kernel.org>
Date: 2026-08-04 12:45:25
Also in: bpf, linux-arch, linux-doc, linux-integrity, linux-kbuild, linux-modules, linux-security-module, lkml

On Tue, May 05, 2026 at 11:05:18AM +0200, Thomas Weißschuh wrote:
CONFIG_MODULE_HASHES needs to process the modules at build time in the
exact form they will be loaded at runtime. If the modules are stripped
afterwards they will not be loadable anymore.

Also evaluate INSTALL_MOD_STRIP at build time and build the hashes based
on modules stripped this way.

If users specify inconsistent values of INSTALL_MOD_STRIP between build
and installation time, an error is reported.

Signed-off-by: Thomas Weißschuh <linux@weissschuh.net>
---
 .gitignore                | 1 +
 kernel/module/Kconfig     | 5 +++++
 scripts/Makefile.modfinal | 9 +++++++++
 scripts/Makefile.modinst  | 4 ++--
 scripts/Makefile.vmlinux  | 2 +-
 5 files changed, 18 insertions(+), 3 deletions(-)
For kbuild:

Reviewed-by: Nicolas Schier <nsc@kernel.org>

-- 
Nicolas
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help