s390/entry: compare gmap asce to determine guest/host fault
authorSven Schnelle <svens@linux.ibm.com>
Wed, 13 Mar 2024 08:51:22 +0000 (09:51 +0100)
committerHeiko Carstens <hca@linux.ibm.com>
Sun, 17 Mar 2024 18:08:50 +0000 (19:08 +0100)
commit64c3431808bdab2ccef97d7a444018c416b080b5
tree86657c918eb6219cb77e73670da92783a9ec694a
parent29e5bc0f023a1110d1539d75ccac3b4cdcadec5e
s390/entry: compare gmap asce to determine guest/host fault

With the current implementation, there are some cornercases where
a host fault would be treated as a guest fault, for example
when the sie instruction causes a program check. Therefore store
the gmap asce in ptregs, and use that to compare the primary asce
from the fault instead of matching instruction addresses.

Suggested-by: Heiko Carstens <hca@linux.ibm.com>
Signed-off-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/entry.S
arch/s390/mm/fault.c