Commit eb7428cd authored by Jungseung Lee's avatar Jungseung Lee Committed by Jeffrey Vander Stoep
Browse files

BACKPORT: 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: default avatarCatalin Marinas <catalin.marinas@arm.com>
Signed-off-by: default avatarJungseung Lee <js07.lee@gmail.com>
Signed-off-by: default avatarRussell King <rmk+kernel@arm.linux.org.uk>

Bug: 31161206
Change-Id: I348c0c8f74ee68a0f206f9c1b305b6f0c21cad5b
parent ffa1c831
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment