]> www.infradead.org Git - users/jedix/linux-maple.git/commit
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)
committerChuck Anderson <chuck.anderson@oracle.com>
Fri, 5 Feb 2016 03:28:26 +0000 (19:28 -0800)
commita56b038d966b83b650ff0036bfb6044f8d528896
treedb8a9e7a20fbd8cf595d969a8e75ea3c31302671
parente6c45bcaa364ab0f1bc47637ba1185bab09db6ed
crypto: api - Only abort operations on fatal signal

Orabug: 22623820

commit 3fc89adb9fa4beff31374a4bf50b3d099d88ae83 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: Herbert Xu <herbert@gondor.apana.org.au>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
(cherry picked from commit 4f277ccd28e4525d8c7bbe2de27f2710de8d4368)
Signed-off-by: Dan Duval <dan.duval@oracle.com>
crypto/ablkcipher.c
crypto/algapi.c
crypto/api.c
crypto/crypto_user.c