Yi Yang a8e0074ffb 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-05 13:52:51 +01:00
..
2024-04-02 10:49:38 +08:00
2024-04-02 10:49:38 +08:00
2024-04-02 10:49:38 +08:00
2023-12-08 11:59:46 +08:00
2024-02-02 18:08:12 +08:00
2024-04-02 10:49:38 +08:00
2023-11-17 19:16:29 +08:00
2024-04-02 10:49:38 +08:00
2024-06-07 19:46:39 +08:00
2024-04-02 10:49:38 +08:00
2024-04-02 10:49:38 +08:00
2024-06-07 19:46:39 +08:00
2020-02-28 08:43:21 +08:00
2023-02-14 13:39:33 +08:00
2024-04-02 10:49:38 +08:00
2024-04-02 10:49:38 +08:00
2022-12-02 18:12:40 +08:00
2024-04-02 10:49:38 +08:00
2024-04-02 10:49:38 +08:00
2024-04-02 10:49:38 +08:00
2024-04-02 10:49:38 +08:00
2022-04-08 16:12:46 +08:00
2022-12-02 18:12:40 +08:00
2024-06-07 19:46:39 +08:00
2023-10-27 18:04:24 +08:00
2022-06-10 16:40:16 +08:00
2024-10-04 16:37:15 +02:00
2021-11-08 16:55:21 -08:00