crypto: aesni - add wrapper for generic gcm(aes)
authorSabrina Dubroca <sd@queasysnail.net>
Wed, 13 Dec 2017 13:54:36 +0000 (14:54 +0100)
committerHerbert Xu <herbert@gondor.apana.org.au>
Fri, 22 Dec 2017 08:52:46 +0000 (19:52 +1100)
commitfc8517bf627c9b834f80274a1bc9ecd39b27231b
tree2acc7aa35f3a41515c2b2acae9a97d99de5cbc23
parent106840c41096a01079d3a2025225029c13713802
crypto: aesni - add wrapper for generic gcm(aes)

When I added generic-gcm-aes I didn't add a wrapper like the one
provided for rfc4106(gcm(aes)). We need to add a cryptd wrapper to fall
back on in case the FPU is not available, otherwise we might corrupt the
FPU state.

Fixes: cce2ea8d90fe ("crypto: aesni - add generic gcm(aes)")
Cc: <stable@vger.kernel.org>
Reported-by: Ilya Lesokhin <ilyal@mellanox.com>
Signed-off-by: Sabrina Dubroca <sd@queasysnail.net>
Reviewed-by: Stefano Brivio <sbrivio@redhat.com>
Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
arch/x86/crypto/aesni-intel_glue.c