]> git.kernelconcepts.de Git - karo-tx-linux.git/commit
arm/arm64: KVM: Enforce Break-Before-Make on Stage-2 page tables
authorMarc Zyngier <marc.zyngier@arm.com>
Thu, 28 Apr 2016 15:16:31 +0000 (16:16 +0100)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 1 Jun 2016 19:15:48 +0000 (12:15 -0700)
commitab85830541e8cae251ab3f87409bd13a82554374
tree0583d492f13328746882a2b93f8dfa69a1efb5d9
parent44f47d94e8424c20b8f6b38bc46514bd3428b048
arm/arm64: KVM: Enforce Break-Before-Make on Stage-2 page tables

commit d4b9e0790aa764c0b01e18d4e8d33e93ba36d51f upstream.

The ARM architecture mandates that when changing a page table entry
from a valid entry to another valid entry, an invalid entry is first
written, TLB invalidated, and only then the new entry being written.

The current code doesn't respect this, directly writing the new
entry and only then invalidating TLBs. Let's fix it up.

Reported-by: Christoffer Dall <christoffer.dall@linaro.org>
Signed-off-by: Marc Zyngier <marc.zyngier@arm.com>
Signed-off-by: Christoffer Dall <christoffer.dall@linaro.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
arch/arm/kvm/mmu.c