]> git.baikalelectronics.ru Git - kernel.git/commit
arm64: KVM: Fix host crash when injecting a fault into a 32bit guest
authorMarc Zyngier <marc.zyngier@arm.com>
Thu, 27 Aug 2015 15:10:01 +0000 (16:10 +0100)
committerWill Deacon <will.deacon@arm.com>
Thu, 27 Aug 2015 15:16:55 +0000 (16:16 +0100)
commit2d1fa5ddf72f73d5b1bece1e49ea6a204884f0e1
tree2658e0934d7d9140890db83d19964133c60d906d
parent47aaaed9f8e3a71506f097f8a19e6074179306bc
arm64: KVM: Fix host crash when injecting a fault into a 32bit guest

When injecting a fault into a misbehaving 32bit guest, it seems
rather idiotic to also inject a 64bit fault that is only going
to corrupt the guest state. This leads to a situation where we
perform an illegal exception return at EL2 causing the host
to crash instead of killing the guest.

Just fix the stupid bug that has been there from day 1.

Cc: <stable@vger.kernel.org>
Reported-by: Russell King <rmk+kernel@arm.linux.org.uk>
Tested-by: Russell King <rmk+kernel@arm.linux.org.uk>
Signed-off-by: Marc Zyngier <marc.zyngier@arm.com>
Signed-off-by: Will Deacon <will.deacon@arm.com>
arch/arm64/kvm/inject_fault.c