]> git.baikalelectronics.ru Git - kernel.git/commit
arm/arm64: KVM: Make default HYP mappings non-excutable
authorMarc Zyngier <marc.zyngier@arm.com>
Mon, 13 Jun 2016 14:00:49 +0000 (15:00 +0100)
committerChristoffer Dall <christoffer.dall@linaro.org>
Wed, 29 Jun 2016 12:01:34 +0000 (14:01 +0200)
commit3d36b3c631b4c0845e59b68a7426aefc6e15dee3
tree9fd6fce8a984beb595b3289100bfdd70d54525d7
parentd0894e8e047271a3e7f2ecf917373bb1f3888375
arm/arm64: KVM: Make default HYP mappings non-excutable

Structures that can be generally written to don't have any requirement
to be executable (quite the opposite). This includes the kvm and vcpu
structures, as well as the stacks.

Let's change the default to incorporate the XN flag.

Signed-off-by: Marc Zyngier <marc.zyngier@arm.com>
Signed-off-by: Christoffer Dall <christoffer.dall@linaro.org>
arch/arm/include/asm/pgtable.h
arch/arm64/include/asm/pgtable-prot.h