Re: [PATCH 1/2] cpt-crypto: don't sleep of CRYPTO_TFM_REQ_MAY_SLEEP was not specified

2020-06-25 Thread Herbert Xu
On Wed, Jun 17, 2020 at 09:48:56AM -0400, Mikulas Patocka wrote: > There is this call chain: > cvm_encrypt -> cvm_enc_dec -> cptvf_do_request -> process_request -> kzalloc > where we call sleeping allocator function even if CRYPTO_TFM_REQ_MAY_SLEEP > was not specified. > > Signed-off-by: Mikulas

[PATCH 1/2] cpt-crypto: don't sleep of CRYPTO_TFM_REQ_MAY_SLEEP was not specified

2020-06-17 Thread Mikulas Patocka
There is this call chain: cvm_encrypt -> cvm_enc_dec -> cptvf_do_request -> process_request -> kzalloc where we call sleeping allocator function even if CRYPTO_TFM_REQ_MAY_SLEEP was not specified. Signed-off-by: Mikulas Patocka Cc: sta...@vger.kernel.org # v4.11+ Fixes: c694b233295b ("crypt