Crypto Fixes for 4.15

From: Herbert Xu
Date: Fri Dec 22 2017 - 01:50:44 EST


Hi Linus:

This push fixes the following issues:

- Fix chacha20 crash on zero-length input due to unset IV.
- Fix potential race conditions in mcryptd with spinlock.
- Only wait once at top of algif recvmsg to avoid inconsistencies.
- Fix potential use-after-free in algif_aead/algif_skcipher.


Please pull from

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


Eric Biggers (1):
crypto: skcipher - set walk.iv for zero-length inputs

Sebastian Andrzej Siewior (1):
crypto: mcryptd - protect the per-CPU queue with a lock

Stephan Mueller (2):
crypto: af_alg - wait for data at beginning of recvmsg
crypto: af_alg - fix race accessing cipher request

crypto/af_alg.c | 6 ------
crypto/algif_aead.c | 16 +++++++++++-----
crypto/algif_skcipher.c | 16 +++++++++++-----
crypto/mcryptd.c | 23 ++++++++++-------------
crypto/skcipher.c | 10 ++++------
include/crypto/mcryptd.h | 1 +
6 files changed, 37 insertions(+), 35 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