s390: add separate program check exit path
authorHeiko Carstens <hca@linux.ibm.com>
Wed, 11 Nov 2020 17:46:26 +0000 (18:46 +0100)
committerHeiko Carstens <hca@linux.ibm.com>
Fri, 20 Nov 2020 18:17:24 +0000 (19:17 +0100)
commit0cd9b7230cc57b0f9cfd13ef5c3830c7db1a68d4
tree2737925e71c97d28634b6412e12f371bad9a3df0
parent6c816038016f96751ec2bd992f0ca702eadabff0
s390: add separate program check exit path

System call and program check handler both use the system call exit
path when returning to previous context. However the program check
handler jumps right to the end of the system call exit path if the
previous context is kernel context.

This lead to the quite odd double disabling of interrupts in the
system call exit path introduced with commit ce9dfafe29be ("s390:
fix system call exit path").

To avoid that have a separate program check handler exit path if the
previous context is kernel context.

Reviewed-by: Sven Schnelle <svens@linux.ibm.com>
Signed-off-by: Heiko Carstens <hca@linux.ibm.com>
arch/s390/kernel/entry.S