]> git.baikalelectronics.ru Git - kernel.git/commit
arm64: Distinguish between user and kernel XN bits
authorCatalin Marinas <catalin.marinas@arm.com>
Thu, 15 Nov 2012 17:21:16 +0000 (17:21 +0000)
committerCatalin Marinas <catalin.marinas@arm.com>
Fri, 16 Nov 2012 15:50:25 +0000 (15:50 +0000)
commit300aaa7f675f5129fc6a0229248730d0569e41e8
tree259e48a52e0d3725b3f77167b6195066fe26d455
parente68bb186da76e0ca5a415527e86b8bb724bd13d1
arm64: Distinguish between user and kernel XN bits

On AArch64, the meaning of the XN bit has changed to UXN (user). The PXN
(privileged) bit must be set to prevent kernel execution. Without the
PXN bit set, the CPU may speculatively access device memory. This patch
ensures that all the mappings that the kernel must not execute from
(including user mappings) have the PXN bit set.

Signed-off-by: Catalin Marinas <catalin.marinas@arm.com>
arch/arm64/include/asm/io.h
arch/arm64/include/asm/pgtable-hwdef.h
arch/arm64/include/asm/pgtable.h