diff options
author | Marc Zyngier <maz@kernel.org> | 2022-04-21 15:38:10 +0100 |
---|---|---|
committer | Marc Zyngier <maz@kernel.org> | 2022-04-27 23:02:23 +0100 |
commit | 85ea6b1ec915c9dd90caf3674b203999d8c7e062 (patch) | |
tree | dc832521b9ca39b8d727161fa8e53bf884622007 /arch/x86/mm/pgtable.c | |
parent | 8f6379e207e7d834065a080f407a60d67349d961 (diff) | |
download | linux-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/pgtable.c')
0 files changed, 0 insertions, 0 deletions