1
linux/arch/s390/crypto
Harald Freudenberger 7bbe449d0b s390/paes: Reestablish retry loop in paes
With commit ed6776c96c ("s390/crypto: remove retry
loop with sleep from PAES pkey invocation") the retry
loop to retry derivation of a protected key from a
secure key has been removed. This was based on the
assumption that theses retries are not needed any
more as proper retries are done in the zcrypt layer.

However, tests have revealed that there exist some
cases with master key change in the HSM and immediately
(< 1 second) attempt to derive a protected key from a
secure key with exact this HSM may eventually fail.

The low level functions in zcrypt_ccamisc.c and
zcrypt_ep11misc.c detect and report this temporary
failure and report it to the caller as -EBUSY. The
re-established retry loop in the paes implementation
catches exactly this -EBUSY and eventually may run
some retries.

Fixes: ed6776c96c ("s390/crypto: remove retry loop with sleep from PAES pkey invocation")
Signed-off-by: Harald Freudenberger <freude@linux.ibm.com>
Reviewed-by: Ingo Franzki <ifranzki@linux.ibm.com>
Reviewed-by: Holger Dengler <dengler@linux.ibm.com>
Signed-off-by: Alexander Gordeev <agordeev@linux.ibm.com>
2024-05-01 11:52:54 +02:00
..
aes_s390.c crypto: s390/aes - Fix buffer overread in CTR mode 2023-12-08 11:59:45 +08:00
arch_random.c
chacha-glue.c s390/fpu: decrease stack usage for some cases 2024-02-16 14:30:16 +01:00
chacha-s390.h
chacha-s390.S s390/fpu: move, rename, and merge header files 2024-02-16 14:30:14 +01:00
crc32-vx.c s390/crc32le: convert to C 2024-02-16 14:30:18 +01:00
crc32-vx.h s390/crc32le: convert to C 2024-02-16 14:30:18 +01:00
crc32be-vx.c s390/crc32be: convert to C 2024-02-16 14:30:18 +01:00
crc32le-vx.c s390/crc32le: convert to C 2024-02-16 14:30:18 +01:00
des_s390.c
ghash_s390.c
Kconfig
Makefile
paes_s390.c s390/paes: Reestablish retry loop in paes 2024-05-01 11:52:54 +02:00
prng.c
sha1_s390.c
sha3_256_s390.c
sha3_512_s390.c
sha256_s390.c
sha512_s390.c
sha_common.c
sha.h