]> git.proxmox.com Git - mirror_ubuntu-kernels.git/commit
crypto: x86/aegis,morus - Do not require OSXSAVE for SSE2
authorOndrej Mosnacek <omosnace@redhat.com>
Wed, 5 Sep 2018 07:26:41 +0000 (09:26 +0200)
committerHerbert Xu <herbert@gondor.apana.org.au>
Fri, 14 Sep 2018 06:08:27 +0000 (14:08 +0800)
commit24568b47d48ec8c906fd0f589489a08b17e1edca
treeac768cb20b815992cd0aedb65f06370f8ee0032c
parent3702a0585e64d70d5bf73bf3e943b8d6005b72c1
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>
arch/x86/crypto/aegis128-aesni-glue.c
arch/x86/crypto/aegis128l-aesni-glue.c
arch/x86/crypto/aegis256-aesni-glue.c
arch/x86/crypto/morus1280-sse2-glue.c
arch/x86/crypto/morus640-sse2-glue.c