]> git.proxmox.com Git - mirror_ubuntu-bionic-kernel.git/commit
s390: do not bypass BPENTER for interrupt system calls
authorMartin Schwidefsky <schwidefsky@de.ibm.com>
Thu, 22 Feb 2018 12:42:29 +0000 (13:42 +0100)
committerSeth Forshee <seth.forshee@canonical.com>
Fri, 16 Mar 2018 14:29:53 +0000 (09:29 -0500)
commita0076afdee37c413f50a348ac66faabc18472b47
treeec75fe4becaaf11805d4d74827a39d7ddf9e9cb4
parente88a8c70c139f9cb2f006b8373ffdbf47ddac61c
s390: do not bypass BPENTER for interrupt system calls

BugLink: http://bugs.launchpad.net/bugs/1754580
The system call path can be interrupted before the switch back to the
standard branch prediction with BPENTER has been done. The critical
section cleanup code skips forward to .Lsysc_do_svc and bypasses the
BPENTER. In this case the kernel and all subsequent code will run with
the limited branch prediction.

Fixes: eacf67eb9b32 ("s390: run user space and KVM guests with modified branch prediction")
Signed-off-by: Martin Schwidefsky <schwidefsky@de.ibm.com>
(cherry picked from commit d5feec04fe578c8dbd9e2e1439afc2f0af761ed4)
Signed-off-by: Seth Forshee <seth.forshee@canonical.com>
arch/s390/kernel/entry.S