Bug 202159
Summary: | sign-file: LibreSSL 2.6.5 only supports SHA1 signing | ||
---|---|---|---|
Product: | Other | Reporter: | Jacekalex (wampir98) |
Component: | Other | Assignee: | other_other |
Status: | NEW --- | ||
Severity: | normal | CC: | fsaavedr, m.novosyolov, neotheuser, remarkable.armadillo.odgi, sounderweaver, spiritual.hare.nkii, useless.eel.sgvs |
Priority: | P1 | ||
Hardware: | All | ||
OS: | Linux | ||
Kernel Version: | 4.19.13 | Subsystem: | |
Regression: | No | Bisected commit-id: | |
Attachments: | Use CMS if LibreSSL >= 2.6.0 is present |
Description
Jacekalex
2019-01-05 11:08:33 UTC
Created attachment 281175 [details]
Use CMS if LibreSSL >= 2.6.0 is present
Allows signing of kernel modules with algorithms other
than SHA1 if LibreSSL is greater than or equal to 2.6.0.
Fixed! Let me know if it works for you, thank you for the report! (In reply to Alec Ari from comment #1) > Created attachment 281175 [details] > Use CMS if LibreSSL >= 2.6.0 is present > > Allows signing of kernel modules with algorithms other > than SHA1 if LibreSSL is greater than or equal to 2.6.0. Realy? openssl version LibreSSL 2.6.5 /usr/src/linux/scripts/sign-file sha512 /usr/src/linux/certs/signing_key.pem /usr/src/linux/certs/signing_key.x509 `modinfo -n sch_codel` sign-file: LibreSSL 2.6.5 only supports SHA1 signing LibreSSL 2.6.5 is greater than or equal to 2.6.0. OS: Gentoo. qlist -UqCv libressl dev-libs/libressl-2.6.5 abi_x86_32 abi_x86_64 asm static-libs Cheers It works here, are you sure you applied the patch right? I'm on Gentoo as well but using LibreSSL 2.8.3. It's important to run `make mrproper` as sign-file may not be getting recompiled. If you're using emerge to download kernel source, any changes to kernel files will be over-written on re-emerge. I see the problem now, the error occurs on module installation, not build. Sorry about this. -Alec Yes, the problem occurs after kernel image and modules build process. When try to sign the modules with other hash, it fails. So far, the patch does not work, because libressl does not have cms.h definitions and has the macro OPENSSL_NO_CMS defined. sign-file tries to use old openssl definitions and macros for CMS and thus it will not compile with libressl without a rework. CMS was enabled in LibreSSL > 3.0.2: https://github.com/libressl-portable/portable/issues/448 In v3.0.2 OPENSSL_NO_CMS can be manually undefined in include/openssl/opensslfeatures.h Patch https://patchwork.kernel.org/patch/11446123/ restores ability to use the newest LibreSSL |