android_kernel_lge_bullhead/drivers/crypto/nx
Dan Carpenter c0a803c102 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>
2016-10-20 00:46:31 +02:00
..
Kconfig powerpc/crypto: add 842 hardware compression driver 2012-08-01 17:47:56 +08:00
Makefile powerpc/crypto: add 842 hardware compression driver 2012-08-01 17:47:56 +08:00
nx-842.c powerpc+of: Add of node/property notification chain for adds and removes 2012-11-15 12:56:41 +11:00
nx-aes-cbc.c drivers/crypto/nx: Fixes for multiple races and issues 2013-05-24 18:11:10 +10:00
nx-aes-ccm.c crypto: drivers - remove cra_list initialization 2012-08-01 17:47:28 +08:00
nx-aes-ctr.c crypto: drivers - remove cra_list initialization 2012-08-01 17:47:28 +08:00
nx-aes-ecb.c drivers/crypto/nx: Fixes for multiple races and issues 2013-05-24 18:11:10 +10:00
nx-aes-gcm.c drivers/crypto/nx: Fixes for multiple races and issues 2013-05-24 18:11:10 +10:00
nx-aes-xcbc.c powerpc/crypto: AES-XCBC mode routines for nx encryption 2012-05-16 15:05:43 +10:00
nx-sha256.c drivers/crypto/nx: Fixes for multiple races and issues 2013-05-24 18:11:10 +10:00
nx-sha512.c drivers/crypto/nx: Fixes for multiple races and issues 2013-05-24 18:11:10 +10:00
nx.c crypto: nx - off by one bug in nx_of_update_msc() 2016-10-20 00:46:31 +02:00
nx.h
nx_csbcpb.h
nx_debugfs.c powerpc/crypto: debugfs routines and docs for the nx device driver 2012-05-16 15:05:45 +10:00