diff options
author | Catalin Marinas <catalin.marinas@arm.com> | 2020-01-06 15:35:39 +0100 |
---|---|---|
committer | Linus Torvalds <torvalds@linux-foundation.org> | 2020-01-06 19:10:07 +0100 |
commit | 24cecc37746393432d994c0dbc251fb9ac7c5d72 (patch) | |
tree | 31d0263e96ab98623c738299c27293fb7597dd97 /arch/arc/kernel | |
parent | Linux 5.5-rc5 (diff) | |
download | linux-24cecc37746393432d994c0dbc251fb9ac7c5d72.tar.xz linux-24cecc37746393432d994c0dbc251fb9ac7c5d72.zip |
arm64: Revert support for execute-only user mappings
The ARMv8 64-bit architecture supports execute-only user permissions by
clearing the PTE_USER and PTE_UXN bits, practically making it a mostly
privileged mapping but from which user running at EL0 can still execute.
The downside, however, is that the kernel at EL1 inadvertently reading
such mapping would not trip over the PAN (privileged access never)
protection.
Revert the relevant bits from commit cab15ce604e5 ("arm64: Introduce
execute-only page access permissions") so that PROT_EXEC implies
PROT_READ (and therefore PTE_USER) until the architecture gains proper
support for execute-only user mappings.
Fixes: cab15ce604e5 ("arm64: Introduce execute-only page access permissions")
Cc: <stable@vger.kernel.org> # 4.9.x-
Acked-by: Will Deacon <will@kernel.org>
Signed-off-by: Catalin Marinas <catalin.marinas@arm.com>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Diffstat (limited to 'arch/arc/kernel')
0 files changed, 0 insertions, 0 deletions