]> git.baikalelectronics.ru Git - kernel.git/commit
crypto: camellia_aesni_avx - Fix CPU feature checks
authorBen Hutchings <ben@decadent.org.uk>
Tue, 6 Oct 2015 11:31:33 +0000 (12:31 +0100)
committerHerbert Xu <herbert@gondor.apana.org.au>
Thu, 8 Oct 2015 13:36:49 +0000 (21:36 +0800)
commit160579adf54cc279b294410fc4d7d9ed8efefac4
treee860cc87ce78453c7fe0a124b84fb105cc3df725
parentd0af919182d24fe3cd8fca81bfcb95c2efb13fc4
crypto: camellia_aesni_avx - Fix CPU feature checks

We need to explicitly check the AVX and AES CPU features, as we can't
infer them from the related XSAVE feature flags.  For example, the
Core i3 2310M passes the XSAVE feature test but does not implement
AES-NI.

Reported-and-tested-by: Stéphane Glondu <glondu@debian.org>
References: https://bugs.debian.org/800934
Fixes: 688170bd6281 ("x86/fpu, crypto x86/camellia_aesni_avx: Simplify...")
Signed-off-by: Ben Hutchings <ben@decadent.org.uk>
Cc: stable <stable@vger.kernel.org> # 4.2
Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
arch/x86/crypto/camellia_aesni_avx_glue.c