]> git.proxmox.com Git - mirror_ubuntu-bionic-kernel.git/commit
s390: extend expoline to BC instructions
authorMartin Schwidefsky <schwidefsky@de.ibm.com>
Wed, 23 May 2018 16:22:08 +0000 (18:22 +0200)
committerStefan Bader <stefan.bader@canonical.com>
Tue, 14 Aug 2018 10:28:20 +0000 (12:28 +0200)
commite60311ae685dc13be843027b6b9b4c1f5fd7bb73
tree58388b5a7a96f1fb65ab17ee4c7ef9e90f98343f
parentea49d186549437ff1b5e2afba21e727dd13faa04
s390: extend expoline to BC instructions

BugLink: http://bugs.launchpad.net/bugs/1783418
[ Upstream commit 6deaa3bbca804b2a3627fd685f75de64da7be535 ]

The BPF JIT uses a 'b <disp>(%r<x>)' instruction in the definition
of the sk_load_word and sk_load_half functions.

Add support for branch-on-condition instructions contained in the
thunk code of an expoline.

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/include/asm/nospec-insn.h
arch/s390/kernel/nospec-branch.c