Re: 'make O=' indigestion with module signing

From: Ingo Molnar
Date: Mon May 10 2021 - 09:02:56 EST



* Ingo Molnar <mingo@xxxxxxxxxx> wrote:

>
> * Ingo Molnar <mingo@xxxxxxxxxx> wrote:
>
> > Correction - there appears to be something else going on, but the
> > error messages are similar:
> >
> > At main.c:291:
> > - SSL error:02001002:system library:fopen:No such file or directory: ../crypto/bio/bss_file.c:69
> > - SSL error:2006D080:BIO routines:BIO_new_file:no such file: ../crypto/bio/bss_file.c:76
> > sign-file: debian/linux-image/lib/modules/5.12.0-custom/kernel/arch/x86/crypto/aegis128-aesni.ko: No such file or directory
> > At main.c:291:
> >
> > The error messages look pretty obscure to me. :-/
>
> I didn't find any stray build files left in the tree, so 'make mrproper'
> is innocent I believe.
>
> I ended up with the config tweak below to get the kernel package to build,
> which is not an ideal solution. :-/
>
> Let me know if you'd like me to send you the .config and/or any diagnostic
> messages or other details.

Update: I now have a config that builds & boots fine, and I've done a
.config bisection to figure out which config option combination breaks the
build, which turned out to be the new MODULE_COMPRESS options:

--- .config.good.002 2021-05-10 14:34:48.932206255 +0200
+++ .config.bad.002 2021-05-10 14:40:48.587450742 +0200
@@ -899,8 +899,8 @@ CONFIG_MODULE_SIG_ALL=y
# CONFIG_MODULE_SIG_SHA384 is not set
CONFIG_MODULE_SIG_SHA512=y
CONFIG_MODULE_SIG_HASH="sha512"
-CONFIG_MODULE_COMPRESS_NONE=y
-# CONFIG_MODULE_COMPRESS_GZIP is not set
+# CONFIG_MODULE_COMPRESS_NONE is not set
+CONFIG_MODULE_COMPRESS_GZIP=y
# CONFIG_MODULE_COMPRESS_XZ is not set
# CONFIG_MODULE_COMPRESS_ZSTD is not set
# CONFIG_MODULE_ALLOW_MISSING_NAMESPACE_IMPORTS is not set

Setting it to gzip triggered this build bug.

Thanks,

Ingo