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

BugLink: http://bugs.launchpad.net/bugs/1783418
[ Upstream commit 97489e0663fa700d6e7febddc43b58df98d7bcda ]

The return from the memmove, memset, memcpy, __memset16, __memset32 and
__memset64 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/lib/mem.S