s390/crc32-vx: use expoline for indirect branches
authorMartin Schwidefsky <schwidefsky@de.ibm.com>
Wed, 23 May 2018 16:21:46 +0000 (18:21 +0200)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Fri, 25 May 2018 14:12:57 +0000 (16:12 +0200)
commitf37bfc0d20a0031f82ec46c1107501c40c1626b2
treef806bc00a232ed9e3eca8b9ac9054607e0335220
parent4a5c26ddfb8657402073f8b43393ede53ad82e6a
s390/crc32-vx: use expoline for indirect branches

[ Upstream commit 467a3bf219cee12259182c5cb4821f88fd518a51 ]

The return from the crc32_le_vgfm_16/crc32c_le_vgfm_16 and the
crc32_be_vgfm_16 functions are done with "br %r14". These are indirect
branches as well and need to use execute trampolines for CONFIG_EXPOLINE=y.

Cc: stable@vger.kernel.org # 4.16
Fixes: f19fbd5ed6 ("s390: introduce execute-trampolines for branches")
Reviewed-by: Hendrik Brueckner <brueckner@linux.vnet.ibm.com>
Signed-off-by: Martin Schwidefsky <schwidefsky@de.ibm.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
arch/s390/crypto/crc32be-vx.S
arch/s390/crypto/crc32le-vx.S