diff options
author | Ondrej Mosnacek <omosnace@redhat.com> | 2018-09-05 09:26:41 +0200 |
---|---|---|
committer | Herbert Xu <herbert@gondor.apana.org.au> | 2018-09-14 14:08:27 +0800 |
commit | 24568b47d48ec8c906fd0f589489a08b17e1edca (patch) | |
tree | ac768cb20b815992cd0aedb65f06370f8ee0032c /arch/x86/crypto/morus640-sse2-glue.c | |
parent | 3702a0585e64d70d5bf73bf3e943b8d6005b72c1 (diff) | |
download | linux-stable-24568b47d48ec8c906fd0f589489a08b17e1edca.tar.gz linux-stable-24568b47d48ec8c906fd0f589489a08b17e1edca.tar.bz2 linux-stable-24568b47d48ec8c906fd0f589489a08b17e1edca.zip |
crypto: x86/aegis,morus - Do not require OSXSAVE for SSE2
It turns out OSXSAVE needs to be checked only for AVX, not for SSE.
Without this patch the affected modules refuse to load on CPUs with SSE2
but without AVX support.
Fixes: 877ccce7cbe8 ("crypto: x86/aegis,morus - Fix and simplify CPUID checks")
Cc: <stable@vger.kernel.org> # 4.18
Reported-by: Zdenek Kaspar <zkaspar82@gmail.com>
Signed-off-by: Ondrej Mosnacek <omosnace@redhat.com>
Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
Diffstat (limited to 'arch/x86/crypto/morus640-sse2-glue.c')
-rw-r--r-- | arch/x86/crypto/morus640-sse2-glue.c | 1 |
1 files changed, 0 insertions, 1 deletions
diff --git a/arch/x86/crypto/morus640-sse2-glue.c b/arch/x86/crypto/morus640-sse2-glue.c index 615fb7bc9a32..9afaf8f8565a 100644 --- a/arch/x86/crypto/morus640-sse2-glue.c +++ b/arch/x86/crypto/morus640-sse2-glue.c @@ -40,7 +40,6 @@ MORUS640_DECLARE_ALGS(sse2, "morus640-sse2", 400); static int __init crypto_morus640_sse2_module_init(void) { if (!boot_cpu_has(X86_FEATURE_XMM2) || - !boot_cpu_has(X86_FEATURE_OSXSAVE) || !cpu_has_xfeatures(XFEATURE_MASK_SSE, NULL)) return -ENODEV; |