]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
crypto: x86/nh-avx2 - add missing vzeroupper
authorEric Biggers <ebiggers@google.com>
Sat, 6 Apr 2024 00:26:08 +0000 (20:26 -0400)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Sun, 16 Jun 2024 11:39:17 +0000 (13:39 +0200)
commitd15b50f2ef6bebb98021940ca5f898d9719f101d
tree7030026be892b27b5a0e65a4c2b44ec1d9453121
parentb975277e6d7b8322e7219a4840cb1af39cfa3b0a
crypto: x86/nh-avx2 - add missing vzeroupper

[ Upstream commit 4ad096cca942959871d8ff73826d30f81f856f6e ]

Since nh_avx2() uses ymm registers, execute vzeroupper before returning
from it.  This is necessary to avoid reducing the performance of SSE
code.

Fixes: 0f961f9f670e ("crypto: x86/nhpoly1305 - add AVX2 accelerated NHPoly1305")
Signed-off-by: Eric Biggers <ebiggers@google.com>
Acked-by: Tim Chen <tim.c.chen@linux.intel.com>
Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
Signed-off-by: Sasha Levin <sashal@kernel.org>
arch/x86/crypto/nh-avx2-x86_64.S