summaryrefslogtreecommitdiffstats
path: root/security/keys
diff options
context:
space:
mode:
authorTaehee Yoo <ap420073@gmail.com>2023-02-10 18:15:41 +0000
committerHerbert Xu <herbert@gondor.apana.org.au>2023-02-14 13:39:33 +0800
commit8b84475318641c2b89320859332544cf187e1cbd (patch)
tree89ade0f75b86903cdcd6c2617cbb86bf2caa8cc7 /security/keys
parenteb33108858b64ebc0f79a582123731c2585ae63b (diff)
downloadlinux-8b84475318641c2b89320859332544cf187e1cbd.tar.gz
linux-8b84475318641c2b89320859332544cf187e1cbd.tar.bz2
linux-8b84475318641c2b89320859332544cf187e1cbd.zip
crypto: x86/aria-avx - Do not use avx2 instructions
vpbroadcastb and vpbroadcastd are not AVX instructions. But the aria-avx assembly code contains these instructions. So, kernel panic will occur if the aria-avx works on AVX2 unsupported CPU. vbroadcastss, and vpshufb are used to avoid using vpbroadcastb in it. Unfortunately, this change reduces performance by about 5%. Also, vpbroadcastd is simply replaced by vmovdqa in it. Fixes: ba3579e6e45c ("crypto: aria-avx - add AES-NI/AVX/x86_64/GFNI assembler implementation of aria cipher") Reported-by: Herbert Xu <herbert@gondor.apana.org.au> Reported-by: Erhard F. <erhard_f@mailbox.org> Signed-off-by: Taehee Yoo <ap420073@gmail.com> Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
Diffstat (limited to 'security/keys')
0 files changed, 0 insertions, 0 deletions