Skip to content

Commit ca1f4d7

Browse files
svens-s390Vasily Gorbik
authored andcommitted
s390: clear pt_regs::flags on irq entry
The current irq entry code doesn't initialize pt_regs::flags. On exit to user mode arch_do_signal_or_restart() tests whether PIF_SYSCALL is set, which might yield wrong results. Fix this by clearing pt_regs::flags in the entry.S irq handler code. Reported-by: Heiko Carstens <[email protected]> Signed-off-by: Sven Schnelle <[email protected]> Reviewed-by: Heiko Carstens <[email protected]> Fixes: 56e62a7 ("s390: convert to generic entry") Cc: <[email protected]> # 5.12 Signed-off-by: Vasily Gorbik <[email protected]>
1 parent fc66127 commit ca1f4d7

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
@@ -418,6 +418,7 @@ ENTRY(\name)
418418
xgr %r6,%r6
419419
xgr %r7,%r7
420420
xgr %r10,%r10
421+
xc __PT_FLAGS(8,%r11),__PT_FLAGS(%r11)
421422
mvc __PT_R8(64,%r11),__LC_SAVE_AREA_ASYNC
422423
stmg %r8,%r9,__PT_PSW(%r11)
423424
tm %r8,0x0001 # coming from user space?

0 commit comments

Comments
 (0)