android_kernel_motorola_sm6375/arch
Repository files (latest commit first)
Filename Latest commit message Latest commit date
Catalin Marinas 623e5ae074 arm64: Revert support for execute-only user mappings
commit 24cecc37746393432d994c0dbc251fb9ac7c5d72 upstream.

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 cab15ce604 ("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: cab15ce604 ("arm64: Introduce execute-only page access permissions")
Cc: <[email protected]> # 4.9.x-
Acked-by: Will Deacon <[email protected]>
Signed-off-by: Catalin Marinas <[email protected]>
Signed-off-by: Linus Torvalds <[email protected]>
Signed-off-by: Greg Kroah-Hartman <[email protected]>
2020-01-09 10:20:01 +01:00
..
alpha
arc ARC: perf: Accommodate big-endian CPU 2019-10-22 09:59:43 -07:00
arm libfdt: define INT32_MAX and UINT32_MAX in libfdt_env.h 2020-01-04 19:18:28 +01:00
arm64 arm64: Revert support for execute-only user mappings 2020-01-09 10:20:01 +01:00
c6x
csky
h8300
hexagon
ia64 mm/memory_hotplug: shrink zones when offlining memory 2020-01-09 10:19:56 +01:00
m68k
microblaze
mips MIPS: Avoid VDSO ABI breakage due to global register variable 2020-01-09 10:19:56 +01:00
nds32
nios2
openrisc
parisc parisc: fix frame pointer in ftrace_regs_caller() 2019-10-30 21:24:40 +01:00
powerpc mm/memory_hotplug: shrink zones when offlining memory 2020-01-09 10:19:56 +01:00
riscv riscv: ftrace: correct the condition logic in function graph tracer 2020-01-09 10:19:59 +01:00
s390 mm/memory_hotplug: shrink zones when offlining memory 2020-01-09 10:19:56 +01:00
sh mm/memory_hotplug: shrink zones when offlining memory 2020-01-09 10:19:56 +01:00
sparc sparc64: implement ioremap_uc 2019-12-13 08:42:17 +01:00
um um: virtio: Keep reading on -EAGAIN 2020-01-04 19:18:24 +01:00
unicore32
x86 mm/memory_hotplug: shrink zones when offlining memory 2020-01-09 10:19:56 +01:00
xtensa xtensa: fix syscall_set_return_value 2019-12-21 11:04:35 +01:00
.gitignore
Kconfig