[dm-devel] Deadlock when using crypto API for block devices

Herbert Xu herbert at gondor.apana.org.au
Fri Aug 24 11:24:35 UTC 2018

On Fri, Aug 24, 2018 at 07:06:32AM -0400, Mikulas Patocka wrote:
> A quick search through the crypto code shows that ahash_save_req and 
> seqiv_aead_encrypt return -ENOMEM.
> Will you fix them?

These only trigger for unaligned buffers.  It would be much better
if dm-crypt can ensure that the input/output is properly unaligned
and if otherwise do the allocation in dm-crypt.

Email: Herbert Xu <herbert at gondor.apana.org.au>
Home Page: http://gondor.apana.org.au/~herbert/
PGP Key: http://gondor.apana.org.au/~herbert/pubkey.txt

More information about the dm-devel mailing list