]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit4bd34c8a39ed9f8f2f1c8519fed43ddfcac209d6
tree9d70738fee982093c907f004b2b834e32c86c8d8
parent6b17bd23c2433cba50521d48f5e64bc6640e8a37
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