Skip to content

Commit d5feec0

Browse files
author
Martin Schwidefsky
committed
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>
1 parent 410d5e1 commit d5feec0

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

arch/s390/kernel/entry.S

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1440,6 +1440,7 @@ cleanup_critical:
14401440
stg %r15,__LC_SYSTEM_TIMER
14411441
0: # update accounting time stamp
14421442
mvc __LC_LAST_UPDATE_TIMER(8),__LC_SYNC_ENTER_TIMER
1443+
BPENTER __TI_flags(%r12),_TIF_ISOLATE_BP
14431444
# set up saved register r11
14441445
lg %r15,__LC_KERNEL_STACK
14451446
la %r9,STACK_FRAME_OVERHEAD(%r15)

0 commit comments

Comments
 (0)