Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 706086 - devs-libs/libressl-3.0.2: sign-file: LibreSSL 3.0.2 only supports SHA1
Summary: devs-libs/libressl-3.0.2: sign-file: LibreSSL 3.0.2 only supports SHA1
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: High normal (vote)
Assignee: Gentoo LibreSSL
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2020-01-22 11:18 UTC by David Duchesne
Modified: 2020-05-07 04:35 UTC (History)
0 users

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description David Duchesne 2020-01-22 11:18:37 UTC
Hello,
Using Libressl 3.0.2 (earlier are also affected), I'm unable to use SHA512 (only SHA1 is allowed) to sign my kernel modules.


user@localhost: make modules_install
  INSTALL arch/x86/crypto/camellia-aesni-avx-x86_64.ko
sign-file: LibreSSL 3.0.2 only supports SHA1 signing
make[1]: *** [scripts/Makefile.modinst:33: arch/x86/crypto/camellia-aesni-avx-x86_64.ko] Error 3
make: *** [Makefile:1320: _modinst_] Error 2

There is a kernel bug report for it, and reading this comment :
https://bugzilla.kernel.org/show_bug.cgi?id=202159#c8

It looks like it is fixed in Libressl : https://github.com/libressl-portable/portable/issues/448

Reproducible: Always
Comment 1 David Duchesne 2020-04-11 21:06:36 UTC
The following kernel patch https://patchwork.kernel.org/patch/11446123/ and Libressl 3.1.0 newly released (currently in testing) allows to finally sign modules with SHA512 (or else)

Hopefully, the kernel patch will be added to gentoo-sources.
Comment 2 David Duchesne 2020-04-12 04:34:24 UTC
Bug report closed.

Opened a new one to add the kernel patch to gentoo-sources :
https://bugs.gentoo.org/show_bug.cgi?id=717166
Comment 3 Mark Olesen 2020-05-07 04:35:46 UTC
Just tried installing gentoo on an older laptop today and encountered this issue. To resolve, I had to unmask LibreSSL and kernel sources. Following, update the system. Afterwards I was able to continue with the handbook "genkernel all".