linux/arch/x86/crypto
Eric Biggers 9f6dbd0aa1 crypto: x86/sha256-avx2 - add missing vzeroupper
[ Upstream commit 57ce8a4e16 ]

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

Fixes: d34a460092 ("crypto: sha256 - Optimized sha256 x86_64 routine using AVX2's RORX instructions")
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>
2024-06-16 13:32:02 +02:00
..
.gitignore .gitignore: add SPDX License Identifier 2020-03-25 11:50:48 +01:00
aegis128-aesni-asm.S x86: Prepare asm files for straight-line-speculation 2022-07-25 11:26:28 +02:00
aegis128-aesni-glue.c crypto: remove CRYPTO_TFM_RES_BAD_KEY_LEN 2020-01-09 11:30:53 +08:00
aes_ctrby8_avx-x86_64.S x86: Prepare asm files for straight-line-speculation 2022-07-25 11:26:28 +02:00
aes_glue.c crypto: x86/aes - drop scalar assembler implementations 2019-07-26 14:56:02 +10:00
aesni-intel_asm.S x86: Prepare asm files for straight-line-speculation 2022-07-25 11:26:28 +02:00
aesni-intel_avx-x86_64.S x86: Prepare asm files for straight-line-speculation 2022-07-25 11:26:28 +02:00
aesni-intel_glue.c crypto: x86/aes-ni-xts - use direct calls to and 4-way stride 2021-03-20 10:43:43 +01:00
blake2s-core.S x86: Prepare asm files for straight-line-speculation 2022-07-25 11:26:28 +02:00
blake2s-glue.c lib/crypto: blake2s: include as built-in 2022-05-30 09:33:26 +02:00
blake2s-shash.c lib/crypto: blake2s: avoid indirect calls to compression function for Clang CFI 2022-05-30 09:33:26 +02:00
blowfish_glue.c treewide: Replace GPLv2 boilerplate/reference with SPDX - rule 156 2019-05-30 11:26:35 -07:00
blowfish-x86_64-asm_64.S x86: Prepare asm files for straight-line-speculation 2022-07-25 11:26:28 +02:00
camellia_aesni_avx2_glue.c crypto: remove CRYPTO_TFM_RES_BAD_KEY_LEN 2020-01-09 11:30:53 +08:00
camellia_aesni_avx_glue.c crypto: remove CRYPTO_TFM_RES_BAD_KEY_LEN 2020-01-09 11:30:53 +08:00
camellia_glue.c crypto: remove CRYPTO_TFM_RES_BAD_KEY_LEN 2020-01-09 11:30:53 +08:00
camellia-aesni-avx2-asm_64.S x86: Prepare asm files for straight-line-speculation 2022-07-25 11:26:28 +02:00
camellia-aesni-avx-asm_64.S x86: Prepare asm files for straight-line-speculation 2022-07-25 11:26:28 +02:00
camellia-x86_64-asm_64.S x86: Prepare asm files for straight-line-speculation 2022-07-25 11:26:28 +02:00
cast5_avx_glue.c treewide: Replace GPLv2 boilerplate/reference with SPDX - rule 156 2019-05-30 11:26:35 -07:00
cast5-avx-x86_64-asm_64.S x86: Prepare asm files for straight-line-speculation 2022-07-25 11:26:28 +02:00
cast6_avx_glue.c crypto: remove CRYPTO_TFM_RES_BAD_KEY_LEN 2020-01-09 11:30:53 +08:00
cast6-avx-x86_64-asm_64.S x86: Prepare asm files for straight-line-speculation 2022-07-25 11:26:28 +02:00
chacha_glue.c crypto: algapi - Remove skbuff.h inclusion 2020-08-20 14:04:28 +10:00
chacha-avx2-x86_64.S x86: Prepare asm files for straight-line-speculation 2022-07-25 11:26:28 +02:00
chacha-avx512vl-x86_64.S x86: Prepare asm files for straight-line-speculation 2022-07-25 11:26:28 +02:00
chacha-ssse3-x86_64.S x86: Prepare asm files for straight-line-speculation 2022-07-25 11:26:28 +02:00
crc32-pclmul_asm.S x86: Prepare asm files for straight-line-speculation 2022-07-25 11:26:28 +02:00
crc32-pclmul_glue.c crypto: Convert to new CPU match macros 2020-03-24 21:36:06 +01:00
crc32c-intel_glue.c crypto: x86/crc32c-intel - Use CRC32 mnemonic 2020-08-21 14:45:28 +10:00
crc32c-pcl-intel-asm_64.S x86: Prepare asm files for straight-line-speculation 2022-07-25 11:26:28 +02:00
crct10dif-pcl-asm_64.S x86: Prepare asm files for straight-line-speculation 2022-07-25 11:26:28 +02:00
crct10dif-pclmul_glue.c crypto: Convert to new CPU match macros 2020-03-24 21:36:06 +01:00
curve25519-x86_64.c crypto: x86/curve25519 - fix cpu feature checking logic in mod_exit 2021-07-14 16:56:06 +02:00
des3_ede_glue.c crypto: x86/des - switch to library interface 2019-08-22 14:57:33 +10:00
des3_ede-asm_64.S x86: Prepare asm files for straight-line-speculation 2022-07-25 11:26:28 +02:00
ghash-clmulni-intel_asm.S x86: Prepare asm files for straight-line-speculation 2022-07-25 11:26:28 +02:00
ghash-clmulni-intel_glue.c crypto: x86/ghash - fix unaligned access in ghash_setkey() 2023-03-11 16:39:19 +01:00
glue_helper-asm-avx2.S treewide: Replace GPLv2 boilerplate/reference with SPDX - rule 152 2019-05-30 11:26:32 -07:00
glue_helper-asm-avx.S treewide: Replace GPLv2 boilerplate/reference with SPDX - rule 157 2019-05-30 11:26:37 -07:00
glue_helper.c crypto: x86 - Regularize glue function prototypes 2019-12-11 16:36:54 +08:00
Makefile lib/crypto: blake2s: include as built-in 2022-05-30 09:33:26 +02:00
nh-avx2-x86_64.S crypto: x86/nh-avx2 - add missing vzeroupper 2024-06-16 13:32:02 +02:00
nh-sse2-x86_64.S x86: Prepare asm files for straight-line-speculation 2022-07-25 11:26:28 +02:00
nhpoly1305-avx2-glue.c crypto: algapi - Remove skbuff.h inclusion 2020-08-20 14:04:28 +10:00
nhpoly1305-sse2-glue.c crypto: algapi - Remove skbuff.h inclusion 2020-08-20 14:04:28 +10:00
poly1305_glue.c crypto: poly1305 - fix poly1305_core_setkey() declaration 2021-05-14 09:50:13 +02:00
poly1305-x86_64-cryptogams.pl crypto: x86/poly1305 - Fixup SLS 2022-07-25 11:26:32 +02:00
serpent_avx2_glue.c crypto: x86 - Regularize glue function prototypes 2019-12-11 16:36:54 +08:00
serpent_avx_glue.c crypto: x86 - Regularize glue function prototypes 2019-12-11 16:36:54 +08:00
serpent_sse2_glue.c crypto: x86 - Regularize glue function prototypes 2019-12-11 16:36:54 +08:00
serpent-avx2-asm_64.S x86: Prepare asm files for straight-line-speculation 2022-07-25 11:26:28 +02:00
serpent-avx-x86_64-asm_64.S x86: Prepare asm files for straight-line-speculation 2022-07-25 11:26:28 +02:00
serpent-sse2-i586-asm_32.S x86: Prepare asm files for straight-line-speculation 2022-07-25 11:26:28 +02:00
serpent-sse2-x86_64-asm_64.S x86: Prepare asm files for straight-line-speculation 2022-07-25 11:26:28 +02:00
sha1_avx2_x86_64_asm.S x86: Prepare asm files for straight-line-speculation 2022-07-25 11:26:28 +02:00
sha1_ni_asm.S x86: Prepare asm files for straight-line-speculation 2022-07-25 11:26:28 +02:00
sha1_ssse3_asm.S x86: Prepare asm files for straight-line-speculation 2022-07-25 11:26:28 +02:00
sha1_ssse3_glue.c crypto: lib/sha1 - remove unnecessary includes of linux/cryptohash.h 2020-05-08 15:32:17 +10:00
sha256_ni_asm.S x86: Prepare asm files for straight-line-speculation 2022-07-25 11:26:28 +02:00
sha256_ssse3_glue.c crypto: lib/sha1 - remove unnecessary includes of linux/cryptohash.h 2020-05-08 15:32:17 +10:00
sha256-avx2-asm.S crypto: x86/sha256-avx2 - add missing vzeroupper 2024-06-16 13:32:02 +02:00
sha256-avx-asm.S x86: Prepare asm files for straight-line-speculation 2022-07-25 11:26:28 +02:00
sha256-ssse3-asm.S x86: Prepare asm files for straight-line-speculation 2022-07-25 11:26:28 +02:00
sha512_ssse3_glue.c crypto: lib/sha1 - remove unnecessary includes of linux/cryptohash.h 2020-05-08 15:32:17 +10:00
sha512-avx2-asm.S x86: Prepare asm files for straight-line-speculation 2022-07-25 11:26:28 +02:00
sha512-avx-asm.S x86: Prepare asm files for straight-line-speculation 2022-07-25 11:26:28 +02:00
sha512-ssse3-asm.S x86: Prepare asm files for straight-line-speculation 2022-07-25 11:26:28 +02:00
twofish_avx_glue.c crypto: remove CRYPTO_TFM_RES_BAD_KEY_LEN 2020-01-09 11:30:53 +08:00
twofish_glue_3way.c crypto: x86 - Regularize glue function prototypes 2019-12-11 16:36:54 +08:00
twofish_glue.c
twofish-avx-x86_64-asm_64.S x86: Prepare asm files for straight-line-speculation 2022-07-25 11:26:28 +02:00
twofish-i586-asm_32.S x86: Prepare asm files for straight-line-speculation 2022-07-25 11:26:28 +02:00
twofish-x86_64-asm_64-3way.S x86: Prepare asm files for straight-line-speculation 2022-07-25 11:26:28 +02:00
twofish-x86_64-asm_64.S x86: Prepare asm files for straight-line-speculation 2022-07-25 11:26:28 +02:00