]> git.proxmox.com Git - mirror_ubuntu-bionic-kernel.git/commit
crypto: aesni - add wrapper for generic gcm(aes)
authorSabrina Dubroca <sd@queasysnail.net>
Wed, 13 Dec 2017 13:54:36 +0000 (14:54 +0100)
committerSeth Forshee <seth.forshee@canonical.com>
Sat, 3 Feb 2018 17:40:38 +0000 (18:40 +0100)
commit8eea2db17bacd176ec59ca6415edc1bcff2ae962
tree7ec6e08d374d4e7fa81cc55bb3c2d2eb87d50468
parent76e29f6e081fa40eec7c387656d9574bf8b020eb
crypto: aesni - add wrapper for generic gcm(aes)

BugLink: http://bugs.launchpad.net/bugs/1747169
commit fc8517bf627c9b834f80274a1bc9ecd39b27231b upstream.

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)")
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>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Signed-off-by: Seth Forshee <seth.forshee@canonical.com>
arch/x86/crypto/aesni-intel_glue.c