Re: [PATCH v5 14/14] kbuild: make CONFIG_MODULE_HASHES compatible with module stripping
Nicolas Schier <[email protected]> Tue, 4 Aug 2026 14:44:35 +0200
| Newsgroups | org.kernel.vger.linux-arch,org.kernel.vger.bpf,org.kernel.vger.linux-doc,org.kernel.vger.linux-integrity,org.kernel.vger.linux-kbuild,org.kernel.vger.linux-kernel,org.kernel.vger.linux-modules,org.kernel.vger.linux-security-module,org.ozlabs.lists.linuxppc-dev |
|---|---|
| Message-ID | <anHeswYHqwvKk3XL@levanger> |
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 <[email protected]> > --- > .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 <[email protected]> -- Nicolas