]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
s390/traps: Copy monitor code to pt_regs
authorHeiko Carstens <hca@linux.ibm.com>
Fri, 9 Jan 2026 15:31:40 +0000 (16:31 +0100)
committerHeiko Carstens <hca@linux.ibm.com>
Tue, 27 Jan 2026 11:16:16 +0000 (12:16 +0100)
commitee44f4e7ebb56f1a2a3aaed8b01ea052fc225680
treefe248efae5536b506d79ca01148dad9ec68ba470
parent8cbfd13601af7d71bb86c2ea686489a6f139c0ba
s390/traps: Copy monitor code to pt_regs

In case of a monitor call program check the CPU stores the monitor code to
lowcore. Let the program check handler copy it to the pt_regs structure so
it can be used by the monitor call exception handler.

Instead of increasing the pt_regs size add a union which contains both
orig_gpr2 and monitor_code, since orig_gpr2 is not used in case of a
program check.

Reviewed-by: Sven Schnelle <svens@linux.ibm.com>
Signed-off-by: Heiko Carstens <hca@linux.ibm.com>
arch/s390/include/asm/ptrace.h
arch/s390/kernel/traps.c