crypto: x86 - Add missing RETs
authorBorislav Petkov <bp@alien8.de>
Sat, 23 Jun 2018 10:36:22 +0000 (12:36 +0200)
committerHerbert Xu <herbert@gondor.apana.org.au>
Sun, 1 Jul 2018 15:33:20 +0000 (23:33 +0800)
commit221e00d1fce976d8a04ff591a0150caf84e176f8
tree1b5bc785c7b0a01ca8ae155ef3a8ecb1c11f7829
parenta068b94d74ddb7776ca707b6d39d1ac0d2d057e6
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>
arch/x86/crypto/aegis128-aesni-asm.S
arch/x86/crypto/aegis128l-aesni-asm.S
arch/x86/crypto/aegis256-aesni-asm.S
arch/x86/crypto/morus1280-avx2-asm.S
arch/x86/crypto/morus1280-sse2-asm.S
arch/x86/crypto/morus640-sse2-asm.S