summaryrefslogtreecommitdiffstats
path: root/arch/x86/crypto/aegis128l-aesni-asm.S
diff options
context:
space:
mode:
authorBorislav Petkov2018-06-23 12:36:22 +0200
committerHerbert Xu2018-07-01 17:33:20 +0200
commit221e00d1fce976d8a04ff591a0150caf84e176f8 (patch)
tree1b5bc785c7b0a01ca8ae155ef3a8ecb1c11f7829 /arch/x86/crypto/aegis128l-aesni-asm.S
parentcrypto: arm/speck - fix building in Thumb2 mode (diff)
downloadkernel-qcow2-linux-221e00d1fce976d8a04ff591a0150caf84e176f8.tar.gz
kernel-qcow2-linux-221e00d1fce976d8a04ff591a0150caf84e176f8.tar.xz
kernel-qcow2-linux-221e00d1fce976d8a04ff591a0150caf84e176f8.zip
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/aegis128l-aesni-asm.S')
-rw-r--r--arch/x86/crypto/aegis128l-aesni-asm.S1
1 files changed, 1 insertions, 0 deletions
diff --git a/arch/x86/crypto/aegis128l-aesni-asm.S b/arch/x86/crypto/aegis128l-aesni-asm.S
index 9263c344f2c7..4eda2b8db9e1 100644
--- a/arch/x86/crypto/aegis128l-aesni-asm.S
+++ b/arch/x86/crypto/aegis128l-aesni-asm.S
@@ -645,6 +645,7 @@ ENTRY(crypto_aegis128l_aesni_enc_tail)
state_store0
FRAME_END
+ ret
ENDPROC(crypto_aegis128l_aesni_enc_tail)
/*