android_kernel_samsung_msm8976/drivers/crypto
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
..
amcc
caam crypto: caam - fix memory corruption in ahash_final_ctx 2015-09-13 09:07:59 -07:00
msm Merge tag 'LA.BR.1.3.6-05010-8976.0' of https://source.codeaurora.org/quic/la/kernel/msm-3.10 into cm-14.1-merge 2017-11-22 00:26:48 +01:00
nx crypto: nx - off by one bug in nx_of_update_msc() 2019-07-27 21:42:02 +02:00
ux500 crypto: ux500 - memmove the right size 2019-07-27 21:41:53 +02:00
atmel-aes-regs.h
atmel-aes.c
atmel-sha-regs.h
atmel-sha.c
atmel-tdes-regs.h
atmel-tdes.c
bfin_crc.c
geode-aes.c
geode-aes.h
hifn_795x.c
ixp4xx_crypto.c crypto: ixp4xx - Remove bogus BUG_ON on scattered dst buffer 2015-08-16 20:51:39 -07:00
Kconfig msm: crypto: Add CONFIG_FIPS_USE_RECOMPILE for FIPS enablement 2015-06-01 09:54:09 -07:00
Makefile
mv_cesa.c
mv_cesa.h
n2_asm.S
n2_core.c
n2_core.h
omap-aes.c
omap-sham.c
padlock-aes.c
padlock-sha.c
picoxcell_crypto.c
picoxcell_crypto_regs.h
s5p-sss.c
sahara.c
talitos.c Revert "crypto: talitos - convert to use be16_add_cpu()" 2015-07-10 10:40:21 -07:00
talitos.h
tegra-aes.c
tegra-aes.h