aboutsummaryrefslogtreecommitdiffstats
path: root/arch/arm/include/asm/pgtable-3level-hwdef.h
diff options
context:
space:
mode:
authorJungseung Lee <js07.lee@gmail.com>2014-11-29 02:33:30 +0100
committerRussell King <rmk+kernel@arm.linux.org.uk>2014-12-03 15:57:45 +0000
commit1d4d37159d013a4c54d785407dd8902f901d7bc5 (patch)
tree9d70738fee982093c907f004b2b834e32c86c8d8 /arch/arm/include/asm/pgtable-3level-hwdef.h
parentARM: 8218/1: warn if bad IRQ was scheduled (diff)
downloadlinux-dev-1d4d37159d013a4c54d785407dd8902f901d7bc5.tar.xz
linux-dev-1d4d37159d013a4c54d785407dd8902f901d7bc5.zip
ARM: 8235/1: Support for the PXN CPU feature on ARMv7
Modern ARMv7-A/R cores optionally implement below new hardware feature: - PXN: Privileged execute-never(PXN) is a security feature. PXN bit determines whether the processor can execute software from the region. This is effective solution against ret2usr attack. On an implementation that does not include the LPAE, PXN is optionally supported. This patch set PXN bit on user page table for preventing user code execution with privilege mode. Reviewed-by: Catalin Marinas <catalin.marinas@arm.com> Signed-off-by: Jungseung Lee <js07.lee@gmail.com> Signed-off-by: Russell King <rmk+kernel@arm.linux.org.uk>
Diffstat (limited to 'arch/arm/include/asm/pgtable-3level-hwdef.h')
-rw-r--r--arch/arm/include/asm/pgtable-3level-hwdef.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/arch/arm/include/asm/pgtable-3level-hwdef.h b/arch/arm/include/asm/pgtable-3level-hwdef.h
index 9fd61c72a33a..f8f1cff62065 100644
--- a/arch/arm/include/asm/pgtable-3level-hwdef.h
+++ b/arch/arm/include/asm/pgtable-3level-hwdef.h
@@ -76,6 +76,7 @@
#define PTE_EXT_SHARED (_AT(pteval_t, 3) << 8) /* SH[1:0], inner shareable */
#define PTE_EXT_AF (_AT(pteval_t, 1) << 10) /* Access Flag */
#define PTE_EXT_NG (_AT(pteval_t, 1) << 11) /* nG */
+#define PTE_EXT_PXN (_AT(pteval_t, 1) << 53) /* PXN */
#define PTE_EXT_XN (_AT(pteval_t, 1) << 54) /* XN */
/*