ARM: KVM: be more thorough when invalidating TLBs
authorMarc Zyngier <marc.zyngier@arm.com>
Tue, 14 May 2013 11:11:34 +0000 (12:11 +0100)
committerGleb Natapov <gleb@redhat.com>
Mon, 3 Jun 2013 07:58:56 +0000 (10:58 +0300)
commitd4cb9df5d1f79950b34e78ec5d1b1b59d6e9c7b7
tree80f972e8772b026dd410e820580af48cba7af1c9
parente8180dcaa8470ceca21109f143876fdcd9fe050a
ARM: KVM: be more thorough when invalidating TLBs

The KVM/ARM MMU code doesn't take care of invalidating TLBs before
freeing a {pte,pmd} table. This could cause problems if the page
is reallocated and then speculated into by another CPU.

Reported-by: Catalin Marinas <catalin.marinas@arm.com>
Signed-off-by: Marc Zyngier <marc.zyngier@arm.com>
Acked-by: Catalin Marinas <catalin.marinas@arm.com>
Signed-off-by: Christoffer Dall <cdall@cs.columbia.edu>
arch/arm/kvm/mmu.c