Skip to content
Commit 8e620b04 authored by Catalin Marinas's avatar Catalin Marinas
Browse files

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: default avatarCatalin Marinas <catalin.marinas@arm.com>
parent 77b67063
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment