crypto: api - Only abort operations on fatal signal
Herbert Xu authored
commit 3fc89adb

 upstream.

Currently a number of Crypto API operations may fail when a signal
occurs.  This causes nasty problems as the caller of those operations
are often not in a good position to restart the operation.

In fact there is currently no need for those operations to be
interrupted by user signals at all.  All we need is for them to
be killable.

This patch replaces the relevant calls of signal_pending with
fatal_signal_pending, and wait_for_completion_interruptible with
wait_for_completion_killable, respectively.
Signed-off-by: default avatarHerbert Xu <herbert@gondor.apana.org.au>
Signed-off-by: default avatarJiri Slaby <jslaby@suse.cz>
b7775d1c
Name Last commit Last update
..
asymmetric_keys X.509: struct x509_certificate needs struct tm declaring
async_tx drivers/dma: remove unused support for MEMSET operations
842.c crypto: prefix module autoloading with "crypto-"
Kconfig Reinstate "crypto: crct10dif - Wrap crc_t10dif function all to use crypto transform framework"
Makefile crypto: crct10dif - Add fallback for broken initrds
ablkcipher.c crypto: api - Only abort operations on fatal signal
aead.c crypto: user - fix info leaks in report API
aes_generic.c crypto: add missing crypto module aliases
af_alg.c crypto: af_alg - fix backlog handling
ahash.c crypto: ahash - ensure statesize is non-zero
algapi.c crypto: api - Only abort operations on fatal signal
algboss.c crypto: algboss - Hold ref count on larval
algif_hash.c Revert "net: update consumers of MSG_MORE to recognize MSG_SENDPAGE_NOTLAST"
algif_skcipher.c crypto: algif - avoid excessive use of socket buffer in skcipher
ansi_cprng.c crypto: rng - RNGs must return 0 in success case
anubis.c crypto: prefix module autoloading with "crypto-"
api.c crypto: api - Only abort operations on fatal signal
arc4.c crypto: prefix module autoloading with "crypto-"
authenc.c crypto: include crypto- module prefix in template
authencesn.c crypto: include crypto- module prefix in template
blkcipher.c crypto: user - fix info leaks in report API
blowfish_common.c crypto: blowfish - split generic and common c code
blowfish_generic.c crypto: add missing crypto module aliases
camellia_generic.c crypto: add missing crypto module aliases
cast5_generic.c crypto: add missing crypto module aliases
cast6_generic.c crypto: add missing crypto module aliases
cast_common.c crypto: make tables used from assembler __visible
cbc.c crypto: include crypto- module prefix in template
ccm.c crypto: include crypto- module prefix in template
chainiv.c crypto: include crypto- module prefix in template
cipher.c crypto: cipher - Fix checkpatch errors
cmac.c crypto: include crypto- module prefix in template
compress.c crypto: compress - Fix checkpatch errors
crc32.c crypto: prefix module autoloading with "crypto-"
crc32c.c crypto: crc32c - add missing crypto module alias
crct10dif_common.c crypto: crct10dif - Add fallback for broken initrds
crct10dif_generic.c crypto: add missing crypto module aliases
cryptd.c crypto: include crypto- module prefix in template
crypto_null.c crypto: prefix module autoloading with "crypto-"
crypto_user.c crypto: api - Only abort operations on fatal signal
crypto_wq.c crypto: crypto_wq - Fix late crypto work queue initialization
ctr.c crypto: include crypto- module prefix in template
cts.c crypto: include crypto- module prefix in template
deflate.c crypto: prefix module autoloading with "crypto-"
des_generic.c crypto: add missing crypto module aliases
ecb.c crypto: include crypto- module prefix in template
eseqiv.c crypto: include crypto- module prefix in template
fcrypt.c crypto: prefix module autoloading with "crypto-"
fips.c crypto: api - Add fips_enable flag
gcm.c crypto: include crypto- module prefix in template
gf128mul.c
ghash-generic.c
hmac.c
internal.h
khazad.c
krng.c
lrw.c
lz4.c
lz4hc.c
lzo.c
md4.c
md5.c
michael_mic.c
pcbc.c
pcompress.c
pcrypt.c
proc.c
ripemd.h
rmd128.c
rmd160.c
rmd256.c
rmd320.c
rng.c
salsa20_generic.c
scatterwalk.c
seed.c
seqiv.c
serpent_generic.c
sha1_generic.c
sha256_generic.c
sha512_generic.c
shash.c
tcrypt.c
tcrypt.h
tea.c
testmgr.c
testmgr.h
tgr192.c
twofish_common.c
twofish_generic.c
vmac.c
wp512.c
xcbc.c
xor.c
xts.c
zlib.c