Yi Yang 96001f52ae crypto: pcrypt - Call crypto layer directly when padata_do_parallel() return -EBUSY
[ Upstream commit 662f2f13e66d3883b9238b0b96b17886179e60e2 ]

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@huawei.com>
Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
Signed-off-by: Sasha Levin <sashal@kernel.org>
2024-12-14 19:50:44 +01:00
..
2020-08-28 16:58:28 +10:00
2021-03-26 19:55:55 +11:00
2023-03-10 09:39:11 +01:00
2022-08-17 14:24:19 +02:00
2022-08-17 14:24:19 +02:00
2020-02-28 08:43:21 +08:00
2023-03-10 09:39:11 +01:00
2021-08-21 15:44:58 +08:00
2021-06-11 15:03:30 +08:00
2024-10-17 15:10:42 +02:00