chacha/asm/chacha-x86_64.pl: fix sporadic crash in AVX512 code path.
authorAndy Polyakov <appro@openssl.org>
Mon, 20 Nov 2017 16:07:51 +0000 (17:07 +0100)
committerAndy Polyakov <appro@openssl.org>
Sat, 25 Nov 2017 21:08:17 +0000 (22:08 +0100)
Only chacha_internal_test is affected, since this path is not used
from EVP.

Reviewed-by: Rich Salz <rsalz@openssl.org>
(Merged from https://github.com/openssl/openssl/pull/4758)

crypto/chacha/asm/chacha-x86_64.pl

index 0cfe8990faaa0b33f9ed030e0dbf341010362812..0510363ad88dfbf0bdbdb478639aa3de3392e593 100755 (executable)
@@ -2488,7 +2488,7 @@ $code.=<<___;
        dec             $len
        jnz             .Loop_tail_avx512
 
-       vmovdqa32       $a_,0x00(%rsp)
+       vmovdqu32       $a_,0x00(%rsp)
 
 .Ldone_avx512:
        vzeroall