Crypto Fixes for 4.5

From: Herbert Xu
Date: Tue Feb 09 2016 - 12:54:26 EST


Hi Linus:

This push fixes the following issues:

API:

* Fix async algif_skcipher, it was broken by recent fixes.
* Fix potential race condition in algif_skcipher with ctx.
* Fix potential memory corruption in algif_skcipher.
* Add missing lock to crypto_user when doing an alg dump.

Drivers:

* marvell/cesa was testing the wrong variable for NULL after
allocation.
* Fix potential double-free in atmel-sha.
* Fix illegal call to sleepin function from atomic context in
atmel-sha.


Please pull from

git://git.kernel.org/pub/scm/linux/kernel/git/herbert/crypto-2.6.git linus


Boris BREZILLON (1):
crypto: marvell/cesa - fix test in mv_cesa_dev_dma_init()

Cyrille Pitchen (2):
crypto: atmel-sha - fix atmel_sha_remove()
crypto: atmel-sha - remove calls of clk_prepare() from atomic contexts

Herbert Xu (3):
crypto: algif_skcipher - Do not assume that req is unchanged
crypto: algif_skcipher - Do not dereference ctx without socket lock
crypto: algif_skcipher - Do not set MAY_BACKLOG on the async path

Mathias Krause (1):
crypto: user - lock crypto_alg_list on alg dump

crypto/algif_skcipher.c | 80 +++++++++++++++++++++--------------------
crypto/crypto_user.c | 6 +++-
drivers/crypto/atmel-sha.c | 23 ++++++------
drivers/crypto/marvell/cesa.c | 2 +-
4 files changed, 60 insertions(+), 51 deletions(-)

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