kernel_samsung_a53x/crypto
Yi Yang 02cf812784 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-17 13:23:59 +01:00
..
asymmetric_keys Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
async_tx Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
842.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
acompress.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
adiantum.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
aead.c crypto: aead,cipher - zeroize key buffer after use 2024-11-19 14:19:40 +01:00
aegis.h Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
aegis128-core.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
aegis128-neon-inner.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
aegis128-neon.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
aes_generic.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
aes_ti.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
af_alg.c crypto: af_alg - Disallow multiple in-flight AIO requests 2024-11-18 12:12:26 +01:00
ahash.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
akcipher.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
algapi.c Revert "crypto: api - Disallow identical driver names" 2024-11-19 11:32:38 +01:00
algboss.c exit: Rename module_put_and_exit to module_put_and_kthread_exit 2024-11-19 12:27:50 +01:00
algif_aead.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
algif_hash.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
algif_rng.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
algif_skcipher.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
ansi_cprng.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
anubis.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
api.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
arc4.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
authenc.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
authencesn.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
blake2b_generic.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
blake2s_generic.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
blowfish_common.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
blowfish_generic.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
camellia_generic.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
cast5_generic.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
cast6_generic.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
cast_common.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
cbc.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
ccm.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
cfb.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
chacha20poly1305.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
chacha_generic.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
cipher.c crypto: aead,cipher - zeroize key buffer after use 2024-11-19 14:19:40 +01:00
cmac.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
compress.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
crc32_generic.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
crc32c_generic.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
crct10dif_common.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
crct10dif_generic.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
cryptd.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
crypto_engine.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
crypto_null.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
crypto_user_base.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
crypto_user_stat.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
ctr.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
cts.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
curve25519-generic.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
deflate.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
des_generic.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
dh.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
dh_helper.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
drbg.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
ecb.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
ecc.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
ecc.h Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
ecc_curve_defs.h Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
ecdh.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
ecdh_helper.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
echainiv.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
ecrdsa.c crypto: ecrdsa - Fix module auto-load on add_key 2024-11-19 12:27:18 +01:00
ecrdsa_defs.h Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
ecrdsa_params.asn1 Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
ecrdsa_pub_key.asn1 Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
essiv.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
fcrypt.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
fips.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
fips140-alg-registration.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
fips140-defs.h Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
fips140-eval-testing-uapi.h Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
fips140-eval-testing.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
fips140-generated-testvecs.h Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
fips140-module.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
fips140-module.h Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
fips140-refs.S Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
fips140-selftests.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
fips140.h Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
fips140_gen_hmac.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
fips140_integrity.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
fips140_out.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
fips140_post.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
fips140_test.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
fips140_test.h Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
fips140_test_tv.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
gcm.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
geniv.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
gf128mul.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
ghash-generic.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
hash_info.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
hmac.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
internal.h Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
jitterentropy-kcapi.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
jitterentropy.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
jitterentropy.h Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
Kconfig crypto/zram: Add lz4fast algorithm 2024-10-04 20:09:29 -03:00
keywrap.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
khazad.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
kpp.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
lrw.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
lz4.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
lz4fast.c crypto/zram: Add lz4fast algorithm 2024-10-04 20:09:29 -03:00
lz4hc.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
lzo-rle.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
lzo.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
Makefile crypto/zram: Add lz4fast algorithm 2024-10-04 20:09:29 -03:00
md4.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
md5.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
michael_mic.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
nhpoly1305.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
ofb.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
pcbc.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
pcrypt.c crypto: pcrypt - Call crypto layer directly when padata_do_parallel() return -EBUSY 2024-12-17 13:23:59 +01:00
poly1305_generic.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
proc.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
ripemd.h Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
rmd128.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
rmd160.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
rmd256.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
rmd320.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
rng.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
rsa-pkcs1pad.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
rsa.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
rsa_helper.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
rsaprivkey.asn1 Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
rsapubkey.asn1 Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
salsa20_generic.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
scatterwalk.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
scompress.c crypto: scomp - fix req->dst buffer overflow 2024-11-18 12:12:27 +01:00
seed.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
seqiv.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
serpent_generic.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
sha1_generic.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
sha3_generic.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
sha256_generic.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
sha512_generic.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
shash.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
simd.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
skcipher.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
sm2.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
sm2signature.asn1 Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
sm3_generic.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
sm4_generic.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
streebog_generic.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
tcrypt.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
tcrypt.h Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
tea.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
testmgr.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
testmgr.h Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
tgr192.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
twofish_common.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
twofish_generic.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
vmac.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
wp512.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
xcbc.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
xor.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
xts.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
xxhash_generic.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
zstd.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00