The Linux Kernel Mailing List
 help / color / mirror / Atom feed
* crypto self-test errors kernel 6.12.4
@ 2025-05-06 20:12 Ryan Wanner
  2025-05-07  0:53 ` Herbert Xu
  0 siblings, 1 reply; 4+ messages in thread
From: Ryan Wanner @ 2025-05-06 20:12 UTC (permalink / raw)
  To: linux-crypto, open list; +Cc: Herbert Xu

Hello,

I upgraded my ARM kernel from v6.6.9 to v6.12.4 and I am seeing some
crypto self test errors that I did not see before. Shown below. These
errors are different every boot and I did not see them on 6.6.9 kernel.
I did notice that when I compile the crypto HW acceleration drivers as
modules like this:
CONFIG_CRYPTO_DEV_ATMEL_AES [=m]
CONFIG_CRYPTO_DEV_ATMEL_TDES [=m]
CONFIG_CRYPTO_DEV_ATMEL_SHA [=m]

and have them loaded by systemd at boot I do not get errors and all the
self tests pass.

Is there a race condition I am not aware of? Or is the new asynchronous
crypto tests creating bugs in the HW acceleration drivers.


DRBG: could not allocate digest TFM handle: hmac(sha512)
alg: drbg: Failed to reset rng
alg: drbg: Test 0 failed for drbg_nopr_hmac_sha512
alg: self-tests for stdrng using drbg_nopr_hmac_sha512 failed (rc=-22)
------------[ cut here ]------------
WARNING: CPU: 0 PID: 90 at crypto/testmgr.c:5928 0xc0397fd0
alg: self-tests for stdrng using drbg_nopr_hmac_sha512 failed (rc=-22)

alg: hash: error allocating hmac(sha512-generic) (generic impl of
hmac(sha512)): -17
alg: self-tests for hmac(sha512) using atmel-hmac-sha512 failed (rc=-17)
------------[ cut here ]------------
WARNING: CPU: 0 PID: 53 at crypto/testmgr.c:5928 0xc0397fd0
alg: self-tests for hmac(sha512) using atmel-hmac-sha512 failed (rc=-17)


Best,
Ryan

^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2025-05-08  5:07 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2025-05-06 20:12 crypto self-test errors kernel 6.12.4 Ryan Wanner
2025-05-07  0:53 ` Herbert Xu
2025-05-07 15:27   ` Ryan Wanner
2025-05-08  5:07     ` Herbert Xu

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox