mbox series

[0/4] crypto: sun4i-ss: Fix problem reported by CONFIG_CRYPTO_EXTRA_TESTS

Message ID 20190418081735.19002-1-clabbe.montjoie@gmail.com
Headers show
Series crypto: sun4i-ss: Fix problem reported by CONFIG_CRYPTO_EXTRA_TESTS | expand

Message

Corentin Labbe April 18, 2019, 8:17 a.m. UTC
Hello

Loading sun4i-ss with CONFIG_CRYPTO_EXTRA_TESTS, lead to hung tasks.
This patchset fix the two deadlock (one in hash, one in cipher) found.
This patchset fix also some invalid IV handling found while debugging
thoses issues.

Regards

Corentin Labbe (4):
  crypto: sun4i-ss: Handle better absence/presence of IV
  crypto: sun4i-ss: remove ivsize from ECB
  crypto: sun4i-ss: Fix invalid calculation of hash end
  crypto: sun4i-ss: fallback when length is not multiple of blocksize

 drivers/crypto/sunxi-ss/sun4i-ss-cipher.c | 67 ++++++++++++++++++-----
 drivers/crypto/sunxi-ss/sun4i-ss-core.c   | 19 ++++---
 drivers/crypto/sunxi-ss/sun4i-ss-hash.c   |  5 +-
 drivers/crypto/sunxi-ss/sun4i-ss.h        |  2 +
 4 files changed, 71 insertions(+), 22 deletions(-)

-- 
2.21.0

Comments

Herbert Xu April 25, 2019, 7:50 a.m. UTC | #1
On Thu, Apr 18, 2019 at 10:17:31AM +0200, Corentin Labbe wrote:
> Hello

> 

> Loading sun4i-ss with CONFIG_CRYPTO_EXTRA_TESTS, lead to hung tasks.

> This patchset fix the two deadlock (one in hash, one in cipher) found.

> This patchset fix also some invalid IV handling found while debugging

> thoses issues.

> 

> Regards

> 

> Corentin Labbe (4):

>   crypto: sun4i-ss: Handle better absence/presence of IV

>   crypto: sun4i-ss: remove ivsize from ECB

>   crypto: sun4i-ss: Fix invalid calculation of hash end

>   crypto: sun4i-ss: fallback when length is not multiple of blocksize

> 

>  drivers/crypto/sunxi-ss/sun4i-ss-cipher.c | 67 ++++++++++++++++++-----

>  drivers/crypto/sunxi-ss/sun4i-ss-core.c   | 19 ++++---

>  drivers/crypto/sunxi-ss/sun4i-ss-hash.c   |  5 +-

>  drivers/crypto/sunxi-ss/sun4i-ss.h        |  2 +

>  4 files changed, 71 insertions(+), 22 deletions(-)


All applied.  Thanks.
-- 
Email: Herbert Xu <herbert@gondor.apana.org.au>
Home Page: http://gondor.apana.org.au/~herbert/
PGP Key: http://gondor.apana.org.au/~herbert/pubkey.txt