Re: [PATCH] crypto: pcrypt - Call crypto layer directly when padata_do_parallel() return -EBUSY

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Tue, Oct 15, 2024 at 02:09:35AM +0000, Yi Yang wrote:
> Since commit 8f4f68e788c3 ("crypto: pcrypt - Fix hungtask for
> PADATA_RESET"), the pcrypt encryption and decryption operations return
> -EAGAIN when the CPU goes online or offline. In alg_test(), a WARN is
> generated when pcrypt_aead_decrypt() or pcrypt_aead_encrypt() returns
> -EAGAIN, the unnecessary panic will occur when panic_on_warn set 1.
> Fix this issue by calling crypto layer directly without parallelization
> in that case.
> 
> Fixes: 8f4f68e788c3 ("crypto: pcrypt - Fix hungtask for PADATA_RESET")
> Signed-off-by: Yi Yang <yiyang13@xxxxxxxxxx>
> ---
>  crypto/pcrypt.c | 12 ++++++++----
>  1 file changed, 8 insertions(+), 4 deletions(-)

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




[Index of Archives]     [Kernel]     [Gnu Classpath]     [Gnu Crypto]     [DM Crypt]     [Netfilter]     [Bugtraq]
  Powered by Linux