]> git.baikalelectronics.ru Git - 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)
committerMartin Schwidefsky <schwidefsky@de.ibm.com>
Thu, 22 Feb 2018 13:08:51 +0000 (14:08 +0100)
commit7aae716e4c44da682a54b71d8b06c1adf52706b5
tree08b4ea1c0b3c9c7857774eb7534fa058629295c1
parent4bb6c7f12e4cb09bfe9da0f10c8bb52f8db34120
s390: do not bypass BPENTER for interrupt system calls

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>
arch/s390/kernel/entry.S