Re: [PATCH] crypto: tstmgr - guard xxhash tests

From: Herbert Xu

Date: Wed Apr 08 2026 - 04:11:43 EST


On Tue, Apr 07, 2026 at 12:28:59PM -0700, Hamza Mahfooz wrote:
> If the kernel isn't built with CONFIG_CRYPTO_XXHASH and booted with FIPS
> mode enabled it will currently panic. So, only benchmark xxhash64 if
> CRYPTO_XXHASH is enabled.
>
> Cc: Jeff Barnes <jeffbarnes@xxxxxxxxxxxxxxxxxxx>
> Cc: Paul Monson <paul.monson@xxxxxxxxxxxxx>
> Signed-off-by: Hamza Mahfooz <hamzamahfooz@xxxxxxxxxxxxxxxxxxx>
> ---
> crypto/testmgr.c | 2 ++
> 1 file changed, 2 insertions(+)

Please show me the panic. Normally it's not an issue if an algorithm
is not present while the test vectors are.

Thanks,
--
Email: Herbert Xu <herbert@xxxxxxxxxxxxxxxxxxx>
Home Page: http://gondor.apana.org.au/~herbert/
PGP Key: http://gondor.apana.org.au/~herbert/pubkey.txt