android_kernel_oneplus_msm8998/drivers/crypto/ccp
Tom Lendacky 1575fcd167 crypto: ccp - Prevent information leakage on export
commit f709b45ec461b548c41a00044dba1f1b572783bf upstream.

Prevent information from leaking to userspace by doing a memset to 0 of
the export state structure before setting the structure values and copying
it. This prevents un-initialized padding areas from being copied into the
export area.

Reported-by: Ben Hutchings <ben@decadent.org.uk>
Signed-off-by: Tom Lendacky <thomas.lendacky@amd.com>
Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2016-05-04 14:48:44 -07:00
..
ccp-crypto-aes-cmac.c crypto: ccp - Prevent information leakage on export 2016-05-04 14:48:44 -07:00
ccp-crypto-aes-xts.c crypto: ccp - Updates for checkpatch warnings/errors 2015-02-27 22:48:47 +13:00
ccp-crypto-aes.c crypto: ccp - Updates for checkpatch warnings/errors 2015-02-27 22:48:47 +13:00
ccp-crypto-main.c crypto: ccp - Replace BUG_ON with WARN_ON and a return code 2015-10-08 21:42:15 +08:00
ccp-crypto-sha.c crypto: ccp - Prevent information leakage on export 2016-05-04 14:48:44 -07:00
ccp-crypto.h crypto: ccp - Limit the amount of information exported 2016-04-12 09:08:45 -07:00
ccp-dev.c crypto: ccp - Convert calls to their devm_ counterparts 2015-02-27 22:48:48 +13:00
ccp-dev.h crypto: ccp - Updates for checkpatch warnings/errors 2015-02-27 22:48:47 +13:00
ccp-ops.c crypto: ccp - Replace BUG_ON with WARN_ON and a return code 2015-10-08 21:42:15 +08:00
ccp-pci.c crypto: ccp - Use module name in driver structures 2015-10-08 21:42:18 +08:00
ccp-platform.c Merge branch 'acpi-pci' 2015-11-07 01:30:10 +01:00
Kconfig crypto: ccp - Change references to accelerator to offload 2015-10-08 21:42:18 +08:00
Makefile crypto: ccp - Update CCP build support 2015-02-27 22:48:48 +13:00