* CI: another regression on linux-next with s390 sha384/sha512
@ 2025-06-24 11:38 Ingo Franzki
2025-06-24 14:14 ` Eric Biggers
0 siblings, 1 reply; 2+ messages in thread
From: Ingo Franzki @ 2025-06-24 11:38 UTC (permalink / raw)
To: Eric Biggers, Herbert Xu, linux-crypto
Cc: Harald Freudenberger, Holger Dengler
Hi Herber, Eric,
in last nights CI run a new regression was found that I guess is related to the movent of sha512 to the library.
However it behaves different now with sha384/sha512 compared with sha224/sha256 (which has been moved to the library earlier)....
First of all sha512_s390.ko is no longer there. I guess that intended.
However, /proc/crypto does show
name : sha256
driver : sha256-s390
module : kernel
and
name : sha224
driver : sha224-s390
module : kernel
but no -s390 driver for sha512 and sha384. It only shows
name : sha512
driver : sha512-lib
module : kernel
and
name : sha384
driver : sha384-lib
module : kernel
The -lib variants are also shown for sha224 and sha256, but those also have the s390 variants.
So it looks like the s390 optimized sha384 and sha512 are now missing ?
Similar, the -generic variants are only available for sha256 and sha224, but not for sha384 and sha512:
name : sha256
driver : sha256-generic
module : kernel
Can this please be fixed? We really want to keep the s390 optimized versions of all digests!
--
Ingo Franzki
eMail: ifranzki@linux.ibm.com
Tel: ++49 (0)7031-16-4648
Linux on IBM Z Development, Schoenaicher Str. 220, 71032 Boeblingen, Germany
IBM Deutschland Research & Development GmbH
Vorsitzender des Aufsichtsrats: Gregor Pillen
Geschäftsführung: David Faller
Sitz der Gesellschaft: Böblingen / Registergericht: Amtsgericht Stuttgart, HRB 243294
IBM DATA Privacy Statement: https://www.ibm.com/privacy/us/en/
^ permalink raw reply [flat|nested] 2+ messages in thread
* Re: CI: another regression on linux-next with s390 sha384/sha512
2025-06-24 11:38 CI: another regression on linux-next with s390 sha384/sha512 Ingo Franzki
@ 2025-06-24 14:14 ` Eric Biggers
0 siblings, 0 replies; 2+ messages in thread
From: Eric Biggers @ 2025-06-24 14:14 UTC (permalink / raw)
To: Ingo Franzki
Cc: Herbert Xu, linux-crypto, Harald Freudenberger, Holger Dengler
On Tue, Jun 24, 2025 at 01:38:54PM +0200, Ingo Franzki wrote:
> First of all sha512_s390.ko is no longer there. I guess that intended.
Yes.
> However, /proc/crypto does show
>
> name : sha256
> driver : sha256-s390
> module : kernel
>
> and
>
> name : sha224
> driver : sha224-s390
> module : kernel
>
> but no -s390 driver for sha512 and sha384. It only shows
>
> name : sha512
> driver : sha512-lib
> module : kernel
>
> and
>
> name : sha384
> driver : sha384-lib
> module : kernel
>
> The -lib variants are also shown for sha224 and sha256, but those also have the s390 variants.
>
> So it looks like the s390 optimized sha384 and sha512 are now missing ?
>
> Similar, the -generic variants are only available for sha256 and sha224, but not for sha384 and sha512:
>
> name : sha256
> driver : sha256-generic
> module : kernel
>
> Can this please be fixed? We really want to keep the s390 optimized versions of all digests!
sha384-lib and sha512-lib are s390 optimized (when the kernel is built for s390
and the CPU supports the CPACF_KIMD_SHA_512 instruction). Please see
lib/crypto/s390/sha512.h.
So, SHA-384 and SHA-512 are still fully optimized for s390.
Yes, I'll be making the same change to SHA-224 and SHA-256 so that it's
consistent. Sorry about the temporary inconsistency. Note that sha224-lib and
sha256-lib are already s390-optimized as well; the difference is just that the
unnecessary sha224-generic, sha256-generic, sha224-$(ARCH), and sha256-$(ARCH)
algorithms are still being registered. The *-lib ones just do the right thing,
and they are all that's needed.
- Eric
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2025-06-24 14:15 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2025-06-24 11:38 CI: another regression on linux-next with s390 sha384/sha512 Ingo Franzki
2025-06-24 14:14 ` Eric Biggers
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).