diff options
author | Harald Freudenberger <freude@linux.ibm.com> | 2019-05-27 15:24:20 +0200 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2019-06-09 09:17:16 +0200 |
commit | badbe1abbd5985da9cfe1d5910f64c4965407d08 (patch) | |
tree | 9ebf5950f8f113bd676450230962e3bfcf91e3bc /scripts/gcc-plugins/latent_entropy_plugin.c | |
parent | 83c874cf6861b880dbb21f59fdb61394033950bd (diff) |
s390/crypto: fix possible sleep during spinlock aquired
commit 1c2c7029c008922d4d48902cc386250502e73d51 upstream.
This patch fixes a complain about possible sleep during
spinlock aquired
"BUG: sleeping function called from invalid context at
include/crypto/algapi.h:426"
for the ctr(aes) and ctr(des) s390 specific ciphers.
Instead of using a spinlock this patch introduces a mutex
which is save to be held in sleeping context. Please note
a deadlock is not possible as mutex_trylock() is used.
Signed-off-by: Harald Freudenberger <freude@linux.ibm.com>
Reported-by: Julian Wiedmann <jwi@linux.ibm.com>
Cc: stable@vger.kernel.org
Signed-off-by: Heiko Carstens <heiko.carstens@de.ibm.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'scripts/gcc-plugins/latent_entropy_plugin.c')
0 files changed, 0 insertions, 0 deletions