[<prev] [next>] [thread-next>] [day] [month] [year] [list]
Message-ID: <468a8e17-d564-441d-9893-72b0ed48d8bb@microchip.com>
Date: Tue, 6 May 2025 13:12:31 -0700
From: Ryan Wanner <ryan.wanner@...rochip.com>
To: <linux-crypto@...r.kernel.org>, open list <linux-kernel@...r.kernel.org>
CC: Herbert Xu <herbert@...dor.apana.org.au>
Subject: crypto self-test errors kernel 6.12.4
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
Powered by blists - more mailing lists