android_kernel_oneplus_msm8998/drivers/crypto/vmx
Marcelo Cerri 78e1355d42 crypto: vmx - Fix memory corruption caused by p8_ghash
commit 80da44c29d997e28c4442825f35f4ac339813877 upstream.

This patch changes the p8_ghash driver to use ghash-generic as a fixed
fallback implementation. This allows the correct value of descsize to be
defined directly in its shash_alg structure and avoids problems with
incorrect buffer sizes when its state is exported or imported.

Reported-by: Jan Stancek <jstancek@redhat.com>
Fixes: cc333cd68d ("crypto: vmx - Adding GHASH routines for VMX module")
Signed-off-by: Marcelo Cerri <marcelo.cerri@canonical.com>
Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2016-10-22 12:26:56 +02:00
..
aes.c crypto: vmx - Adding enable_kernel_vsx() to access VSX instructions 2015-07-14 14:56:48 +08:00
aes_cbc.c crypto: vmx - IV size failing on skcipher API 2016-09-15 08:27:48 +02:00
aes_ctr.c crypto: vmx - IV size failing on skcipher API 2016-09-15 08:27:48 +02:00
aesp8-ppc.h crypto: vmx - Reindent to kernel style 2015-06-16 14:35:02 +08:00
aesp8-ppc.pl crypto: vmx - Fixing AES-CTR counter bug 2015-08-18 10:30:35 +08:00
ghash.c crypto: vmx - Fix memory corruption caused by p8_ghash 2016-10-22 12:26:56 +02:00
ghashp8-ppc.pl crypto: vmx - Fixing GHASH Key issue on little endian 2015-08-18 10:30:36 +08:00
Kconfig crypto: vmx - Remove duplicate PPC64 dependency 2015-06-16 14:35:01 +08:00
Makefile crypto: vmx - fix two mistyped texts 2015-05-15 14:57:46 +08:00
ppc-xlate.pl crypto: vmx - Fix ABI detection 2016-09-15 08:27:48 +02:00
vmx.c crypto: vmx - Reindent to kernel style 2015-06-16 14:35:02 +08:00