]> www.infradead.org Git - users/dwmw2/linux.git/commit
x86/fault: Dump RMP table information when RMP page faults occur
authorMichael Roth <michael.roth@amd.com>
Fri, 26 Jan 2024 04:11:09 +0000 (22:11 -0600)
committerBorislav Petkov (AMD) <bp@alien8.de>
Mon, 29 Jan 2024 16:27:25 +0000 (17:27 +0100)
commite8bbd303d7de3fb32be1434a5d5ce3e1cb182018
tree7b8cae9ac8dba520fe8d1c7072fccb52c919868d
parent54055344b232c917a9e492a8bf5864fed99ad6b8
x86/fault: Dump RMP table information when RMP page faults occur

RMP faults on kernel addresses are fatal and should never happen in
practice. They indicate a bug in the host kernel somewhere. Userspace
RMP faults shouldn't occur either, since even for VMs the memory used
for private pages is handled by guest_memfd and by design is not
mappable by userspace.

Dump RMP table information about the PFN corresponding to the faulting
HVA to help diagnose any issues of this sort when show_fault_oops() is
triggered by an RMP fault.

Signed-off-by: Michael Roth <michael.roth@amd.com>
Signed-off-by: Borislav Petkov (AMD) <bp@alien8.de>
Link: https://lore.kernel.org/r/20240126041126.1927228-10-michael.roth@amd.com
arch/x86/mm/fault.c