linux-hardened/drivers/crypto/nx
Dan Carpenter e514cc0a49 crypto: nx - off by one bug in nx_of_update_msc()
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>
2016-07-19 12:01:47 +08:00
..
Kconfig crypto: nx - merge nx-compress and nx-compress-crypto 2015-07-23 18:14:31 +08:00
Makefile crypto: nx - make platform drivers directly register with crypto 2015-07-23 18:14:33 +08:00
nx-842-powernv.c crypto: nx-842 - Mask XERS0 bit in return value 2015-12-17 16:42:12 +08:00
nx-842-pseries.c crypto: 842 - Add CRC and validation support 2015-10-14 22:23:17 +08:00
nx-842.c treewide: Fix typo in printk 2016-02-15 11:18:22 +01:00
nx-842.h crypto: nx - make platform drivers directly register with crypto 2015-07-23 18:14:33 +08:00
nx-aes-cbc.c crypto: nx - Moving NX-AES-CBC to be processed logic 2014-11-06 23:15:00 +08:00
nx-aes-ccm.c crypto: nx - Fix timing leak in GCM and CCM decryption 2015-11-16 21:39:23 +08:00
nx-aes-ctr.c crypto: nx - Removing CTR mode from NX driver 2015-08-10 23:22:22 +08:00
nx-aes-ecb.c crypto: nx - Moving NX-AES-ECB to be processed logic 2014-11-06 23:15:01 +08:00
nx-aes-gcm.c crypto: nx - Fix timing leak in GCM and CCM decryption 2015-11-16 21:39:23 +08:00
nx-aes-xcbc.c crypto: nx - Fix reentrancy bugs 2015-07-08 15:14:13 +08:00
nx-sha256.c crypto: nx - respect sg limit bounds when building sg lists for SHA 2015-08-11 22:02:57 +08:00
nx-sha512.c crypto: nx - respect sg limit bounds when building sg lists for SHA 2015-08-11 22:02:57 +08:00
nx.c crypto: nx - off by one bug in nx_of_update_msc() 2016-07-19 12:01:47 +08:00
nx.h crypto: nx - Add forward declaration for struct crypto_aead 2015-08-17 19:49:13 +08:00
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