Skip to content

Commit f1bf5d8

Browse files
herbertxgregkh
authored andcommitted
crypto: sha1-ssse3 - Disable avx2
commit b82ce24426a4071da9529d726057e4e642948667 upstream. It has been reported that sha1-avx2 can cause page faults by reading beyond the end of the input. This patch disables it until it can be fixed. Fixes: 7c1da8d ("crypto: sha - SHA1 transform x86_64 AVX2") Reported-by: Jan Stancek <jstancek@redhat.com> Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
1 parent fc43f09 commit f1bf5d8

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

arch/x86/crypto/sha1_ssse3_glue.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -201,7 +201,7 @@ asmlinkage void sha1_transform_avx2(u32 *digest, const char *data,
201201

202202
static bool avx2_usable(void)
203203
{
204-
if (avx_usable() && boot_cpu_has(X86_FEATURE_AVX2)
204+
if (false && avx_usable() && boot_cpu_has(X86_FEATURE_AVX2)
205205
&& boot_cpu_has(X86_FEATURE_BMI1)
206206
&& boot_cpu_has(X86_FEATURE_BMI2))
207207
return true;

0 commit comments

Comments
 (0)