]> git.baikalelectronics.ru Git - kernel.git/commit
s390: clear pt_regs::flags on irq entry
authorSven Schnelle <svens@linux.ibm.com>
Fri, 11 Jun 2021 14:08:18 +0000 (16:08 +0200)
committerVasily Gorbik <gor@linux.ibm.com>
Mon, 21 Jun 2021 09:19:18 +0000 (11:19 +0200)
commit044e08b22e54c98c323ea8393bd7ea926f72cb98
tree38203bd018acae7d0386ae45d7e3803a04bd626e
parent12786701574cac2f95640ddf468e658b620b282c
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 <hca@linux.ibm.com>
Signed-off-by: Sven Schnelle <svens@linux.ibm.com>
Reviewed-by: Heiko Carstens <hca@linux.ibm.com>
Fixes: f6b35bb7a899 ("s390: convert to generic entry")
Cc: <stable@vger.kernel.org> # 5.12
Signed-off-by: Vasily Gorbik <gor@linux.ibm.com>
arch/s390/kernel/entry.S