crypto: api - Only abort operations on fatal signal
authorHerbert Xu <herbert@gondor.apana.org.au>
Mon, 19 Oct 2015 10:23:57 +0000 (18:23 +0800)
committerHerbert Xu <herbert@gondor.apana.org.au>
Tue, 20 Oct 2015 13:59:25 +0000 (21:59 +0800)
commit3fc89adb9fa4beff31374a4bf50b3d099d88ae83
treec9df7595414423aaadf10a8488a88a85139420a6
parent8996eafdcbad149ac0f772fb1649fbb75c482a6a
crypto: api - Only abort operations on fatal signal

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.

Cc: stable@vger.kernel.org
Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
crypto/ablkcipher.c
crypto/algapi.c
crypto/api.c
crypto/crypto_user.c