[PATCH v5 14/14] kbuild: make CONFIG_MODULE_HASHES compatible with module stripping
Nicolas Schier
nsc at kernel.org
Tue Aug 4 12:44:35 UTC 2026
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 at 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 at kernel.org>
--
Nicolas
More information about the Linux-security-module-archive
mailing list