summaryrefslogtreecommitdiffstats
path: root/arch/x86/mm/physaddr.c
diff options
context:
space:
mode:
authorMarc Zyngier <maz@kernel.org>2022-04-21 15:38:10 +0100
committerMarc Zyngier <maz@kernel.org>2022-04-27 23:02:23 +0100
commit85ea6b1ec915c9dd90caf3674b203999d8c7e062 (patch)
treedc832521b9ca39b8d727161fa8e53bf884622007 /arch/x86/mm/physaddr.c
parent8f6379e207e7d834065a080f407a60d67349d961 (diff)
downloadlinux-85ea6b1ec915c9dd90caf3674b203999d8c7e062.tar.bz2
KVM: arm64: Inject exception on out-of-IPA-range translation fault
When taking a translation fault for an IPA that is outside of the range defined by the hypervisor (between the HW PARange and the IPA range), we stupidly treat it as an IO and forward the access to userspace. Of course, userspace can't do much with it, and things end badly. Arguably, the guest is braindead, but we should at least catch the case and inject an exception. Check the faulting IPA against: - the sanitised PARange: inject an address size fault - the IPA size: inject an abort Reported-by: Christoffer Dall <christoffer.dall@arm.com> Signed-off-by: Marc Zyngier <maz@kernel.org>
Diffstat (limited to 'arch/x86/mm/physaddr.c')
0 files changed, 0 insertions, 0 deletions