android_kernel_samsung_msm8976/drivers/crypto/nx
Dan Carpenter 789ec0bd6e crypto: nx - off by one bug in nx_of_update_msc()
commit e514cc0a492a3f39ef71b31590a7ef67537ee04b upstream.

The props->ap[] array is defined like this:

	struct alg_props ap[NX_MAX_FC][NX_MAX_MODE][3];

So we can see that if msc->fc and msc->mode are == to NX_MAX_FC or
NX_MAX_MODE then we're off by one.

Fixes: ae0222b728 ('powerpc/crypto: nx driver code supporting nx encryption')
Signed-off-by: Dan Carpenter <dan.carpenter@oracle.com>
Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
Signed-off-by: Willy Tarreau <w@1wt.eu>
2019-07-27 21:42:02 +02:00
..
Kconfig
Makefile
nx-842.c
nx-aes-cbc.c
nx-aes-ccm.c
nx-aes-ctr.c
nx-aes-ecb.c
nx-aes-gcm.c
nx-aes-xcbc.c
nx-sha256.c
nx-sha512.c
nx.c
nx.h
nx_csbcpb.h
nx_debugfs.c