ARM: KVM: be more thorough when invalidating TLBs
authorMarc Zyngier <[email protected]>
Tue, 14 May 2013 11:11:34 +0000 (12:11 +0100)
committerGleb Natapov <[email protected]>
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 <[email protected]>
Signed-off-by: Marc Zyngier <[email protected]>
Acked-by: Catalin Marinas <[email protected]>
Signed-off-by: Christoffer Dall <[email protected]>
arch/arm/kvm/mmu.c