Re: [PATCH 2/4] crypto: hisilicon/sec2 - fix scheduling while atomic in aead soft fallback

From: Herbert Xu

Date: Mon Sep 28 2026 - 01:15:14 EST


On Wed, Sep 23, 2026 at 05:55:43PM +0800, huangchenghai wrote:
>
> I try to use SYNC_AEAD_REQUEST_ON_STACK instead, but it does not
> work here: crypto_alloc_sync_aead() enforces a MAX_SYNC_AEAD_REQSIZE
> limit of 384 bytes, and several composite AEAD algorithms supported
> by sec2 (e.g. ccm(sm4), authenc(hmac(sha512),cbc(aes))) have a larger
> reqsize, so the sync tfm allocation fails with -EINVAL.

How big are these algorithms, is there any reason why we can't
increase MAX_SYNC_AEAD_REQSIZE to accommodate them?

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