Re: [PATCH v6 1/8] crypto: qce - Fix HMAC self-test failures for empty messages

From: Herbert Xu

Date: Sun Jul 26 2026 - 19:09:01 EST


On Thu, Jul 23, 2026 at 12:25:14PM -0700, Eric Biggers wrote:
>
> I'm trying to understand how this is intended to work. This uses
> crypto_tfm::fb. But this driver doesn't set CRYPTO_ALG_NEED_FALLBACK,
> so crypto_tfm::fb is actually just a pointer to the same crypto_tfm.
> (See crypto_create_tfm_node() and crypto_ahash_init_tfm().) Doesn't
> this just result in an infinite recursive loop and a crash?

Every async driver gets a fallback by default, unless you set
the bit CRYPTO_ALG_NO_FALLBACK or you declare that you support
CRYPTO_ALG_REQ_VIRT (which no driver does).

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