Crypto Fixes for 4.13

From: Herbert Xu
Date: Fri Sep 01 2017 - 03:54:03 EST


Hi Linus:

This push fixes the following issues:

- Regression in chacha20 handling of chunked input.
- Crash in algif_skcipher when used with async io.
- Potential bogus pointer dereference in lib/mpi.


Please pull from

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


Ard Biesheuvel (2):
crypto: chacha20 - fix handling of chunked input
crypto: testmgr - add chunked test cases for chacha20

Stephan Mueller (2):
lib/mpi: kunmap after finishing accessing buffer
crypto: algif_skcipher - only call put_page on referenced and used pages

crypto/algif_skcipher.c | 9 +++++++--
crypto/chacha20_generic.c | 9 +++++++--
crypto/testmgr.h | 7 +++++++
lib/mpi/mpicoder.c | 4 +++-
4 files changed, 24 insertions(+), 5 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