summaryrefslogtreecommitdiffstats
path: root/arch/x86/crypto/aegis256-aesni-asm.S
diff options
context:
space:
mode:
authorBorislav Petkov <bp@alien8.de>2018-06-23 12:36:22 +0200
committerHerbert Xu <herbert@gondor.apana.org.au>2018-07-01 23:33:20 +0800
commit221e00d1fce976d8a04ff591a0150caf84e176f8 (patch)
tree1b5bc785c7b0a01ca8ae155ef3a8ecb1c11f7829 /arch/x86/crypto/aegis256-aesni-asm.S
parenta068b94d74ddb7776ca707b6d39d1ac0d2d057e6 (diff)
downloadlinux-221e00d1fce976d8a04ff591a0150caf84e176f8.tar.bz2
crypto: x86 - Add missing RETs
Add explicit RETs to the tail calls of AEGIS and MORUS crypto algorithms otherwise they run into INT3 padding due to ("x86/asm: Pad assembly functions with INT3 instructions") leading to spurious debug exceptions. Mike Galbraith <efault@gmx.de> took care of all the remaining callsites. Signed-off-by: Borislav Petkov <bp@suse.de> Acked-by: Ondrej Mosnacek <omosnacek@gmail.com> Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
Diffstat (limited to 'arch/x86/crypto/aegis256-aesni-asm.S')
-rw-r--r--arch/x86/crypto/aegis256-aesni-asm.S1
1 files changed, 1 insertions, 0 deletions
diff --git a/arch/x86/crypto/aegis256-aesni-asm.S b/arch/x86/crypto/aegis256-aesni-asm.S
index 1d977d515bf9..32aae8397268 100644
--- a/arch/x86/crypto/aegis256-aesni-asm.S
+++ b/arch/x86/crypto/aegis256-aesni-asm.S
@@ -543,6 +543,7 @@ ENTRY(crypto_aegis256_aesni_enc_tail)
state_store0
FRAME_END
+ ret
ENDPROC(crypto_aegis256_aesni_enc_tail)
/*