ARM: 8235/1: Support for the PXN CPU feature on ARMv7
authorJungseung Lee <js07.lee@gmail.com>
Sat, 29 Nov 2014 01:33:30 +0000 (02:33 +0100)
committerRussell King <rmk+kernel@arm.linux.org.uk>
Wed, 3 Dec 2014 15:57:45 +0000 (15:57 +0000)
commit1d4d37159d013a4c54d785407dd8902f901d7bc5
tree9d70738fee982093c907f004b2b834e32c86c8d8
parent44cb09c23f8e5838f24ef47d43dd2804b71b3a65
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>
arch/arm/include/asm/pgalloc.h
arch/arm/include/asm/pgtable-2level-hwdef.h
arch/arm/include/asm/pgtable-3level-hwdef.h
arch/arm/mm/mmu.c