]> git.baikalelectronics.ru Git - kernel.git/commit
crypto: vmx - Fix memory corruption caused by p8_ghash
authorMarcelo Cerri <marcelo.cerri@canonical.com>
Wed, 28 Sep 2016 16:42:10 +0000 (13:42 -0300)
committerHerbert Xu <herbert@gondor.apana.org.au>
Sun, 2 Oct 2016 14:26:42 +0000 (22:26 +0800)
commit3a8db1da9f9f40fab7dfced8e478a6cb522efaec
tree07d05485c86275960e270a968ded8baded310d2a
parent0001fae2fa973d6c1e89dda34da2e02678fdf143
crypto: vmx - Fix memory corruption caused by p8_ghash

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: 17be19a0f4f7 ("crypto: vmx - Adding GHASH routines for VMX module")
Cc: stable@vger.kernel.org
Signed-off-by: Marcelo Cerri <marcelo.cerri@canonical.com>
Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
drivers/crypto/vmx/ghash.c