Since commit 8f4f68e788c3 ("crypto: pcrypt - Fix hungtask for PADATA_RESET"), The encryption and decryption using padata be failed when the CPU goes online and offline. We should try to re-encrypt or re-decrypt when -EAGAIN happens rather than generate WARN. The unnecessary panic will occur when panic_on_warn set 1. Fixes: 8f4f68e788c3 ("crypto: pcrypt - Fix hungtask for PADATA_RESET") Signed-off-by: Yi Yang <yiyang13@xxxxxxxxxx> --- crypto/testmgr.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/crypto/testmgr.c b/crypto/testmgr.c index f02cb075bd68..15e0f5e4ba6f 100644 --- a/crypto/testmgr.c +++ b/crypto/testmgr.c @@ -5905,7 +5905,7 @@ int alg_test(const char *driver, const char *alg, u32 type, u32 mask) } pr_warn("alg: self-tests for %s using %s failed (rc=%d)", alg, driver, rc); - WARN(rc != -ENOENT, + WARN(rc != -ENOENT && rc != -EAGAIN, "alg: self-tests for %s using %s failed (rc=%d)", alg, driver, rc); } else { -- 2.25.1