1
0
Fork 0
alistair23-linux/drivers/crypto/hisilicon
Mikulas Patocka d9add5d7d9 crypto: hisilicon - don't sleep of CRYPTO_TFM_REQ_MAY_SLEEP was not specified
commit 5ead051780 upstream.

There is this call chain:
sec_alg_skcipher_encrypt -> sec_alg_skcipher_crypto ->
sec_alg_alloc_and_calc_split_sizes -> kcalloc
where we call sleeping allocator function even if CRYPTO_TFM_REQ_MAY_SLEEP
was not specified.

Signed-off-by: Mikulas Patocka <mpatocka@redhat.com>
Cc: stable@vger.kernel.org	# v4.19+
Fixes: 915e4e8413 ("crypto: hisilicon - SEC security accelerator driver")
Acked-by: Jonathan Cameron <Jonathan.Cameron@huawei.com>
Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2020-08-19 08:16:27 +02:00
..
sec crypto: hisilicon - don't sleep of CRYPTO_TFM_REQ_MAY_SLEEP was not specified 2020-08-19 08:16:27 +02:00
zip crypto: hisilicon - Use the offset fields in sqe to avoid need to split scatterlists 2020-02-11 04:35:30 -08:00
Kconfig crypto: hisilicon - Use the offset fields in sqe to avoid need to split scatterlists 2020-02-11 04:35:30 -08:00
Makefile crypto: hisilicon - add HiSilicon ZIP accelerator support 2019-08-09 15:11:54 +10:00
qm.c crypto: hisilicon - Fix warning on printing %p with dma_addr_t 2019-08-22 14:57:34 +10:00
qm.h crypto: hisilicon - add debugfs for ZIP and QM 2019-08-09 15:11:57 +10:00
sgl.c crypto: hisilicon - init curr_sgl_dma to fix compile warning 2019-08-15 21:52:12 +10:00
sgl.h crypto: hisilicon - add hardware SGL support 2019-08-09 15:11:53 +10:00