linux/drivers/crypto/ccp
Tom Lendacky ce0cad4249 crypto: ccp - Fix AES XTS error for request sizes above 4096
[ Upstream commit ab6a11a7c8 ]

The ccp-crypto module for AES XTS support has a bug that can allow requests
greater than 4096 bytes in size to be passed to the CCP hardware. The CCP
hardware does not support request sizes larger than 4096, resulting in
incorrect output. The request should actually be handled by the fallback
mechanism instantiated by the ccp-crypto module.

Add a check to insure the request size is less than or equal to the maximum
supported size and use the fallback mechanism if it is not.

Cc: <stable@vger.kernel.org> # 3.14.x-
Signed-off-by: Tom Lendacky <thomas.lendacky@amd.com>
Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
Signed-off-by: Sasha Levin <sasha.levin@oracle.com>
History 2016-06-18 16:52:51 -04:00
..
ccp-crypto-aes-cmac.c crypto: ccp - Prevent information leakage on export 2016-05-08 21:21:51 -04:00
ccp-crypto-aes-xts.c crypto: ccp - Fix AES XTS error for request sizes above 4096 2016-06-18 16:52:51 -04:00
ccp-crypto-aes.c crypto: ccp - Remove user triggerable pr_err calls 2013-12-20 20:06:22 +08:00
ccp-crypto-main.c crypto: ccp - Check for CCP before registering crypto algs 2014-09-24 14:23:34 +08:00
ccp-crypto-sha.c crypto: ccp - Prevent information leakage on export 2016-05-08 21:21:51 -04:00
ccp-crypto.h crypto: ccp - Limit the amount of information exported 2016-04-12 09:10:19 -04:00
ccp-dev.c crypto: ccp - Check for CCP before registering crypto algs 2014-09-24 14:23:34 +08:00
ccp-dev.h crypto: ccp - Base AXI DMA cache settings on device tree 2014-07-23 21:28:38 +08:00
ccp-ops.c crypto: ccp - Do not sign extend input data to CCP 2014-08-01 22:36:13 +08:00
ccp-pci.c PCI: Remove DEFINE_PCI_DEVICE_TABLE macro use 2014-08-12 12:15:14 -06:00
ccp-platform.c crypto: ccp - Base AXI DMA cache settings on device tree 2014-07-23 21:28:38 +08:00
Kconfig crypto: ccp - Remove "select OF" from Kconfig 2014-07-24 16:52:12 +08:00
Makefile crypto: ccp - Add platform device support for arm64 2014-06-20 21:26:14 +08:00