]> git.proxmox.com Git - mirror_ubuntu-bionic-kernel.git/commit
s390/crc32-vx: use expoline for indirect branches
authorMartin Schwidefsky <schwidefsky@de.ibm.com>
Wed, 23 May 2018 16:22:03 +0000 (18:22 +0200)
committerStefan Bader <stefan.bader@canonical.com>
Tue, 14 Aug 2018 10:28:16 +0000 (12:28 +0200)
commit65c8dc42a1a0cd8f98935a890dbb956af4ad63f5
tree42475f07e67c02821a01da5acefc3b503ecc7a3b
parentf8b4f8714f5dbd6ae4031bae90388bb4fff9f20f
s390/crc32-vx: use expoline for indirect branches

BugLink: http://bugs.launchpad.net/bugs/1783418
[ 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>
Signed-off-by: Kamal Mostafa <kamal@canonical.com>
Signed-off-by: Khalid Elmously <khalid.elmously@canonical.com>
arch/s390/crypto/crc32be-vx.S
arch/s390/crypto/crc32le-vx.S