android_kernel_oneplus_msm8998/arch
Dan Aloni fdfc07c137 ANDROID: arm64: fix leftover RWX when using CONFIG_UNMAP_KERNEL_AT_EL0
With CONFIG_UNMAP_KERNEL_AT_EL0 enabled, before this change, there was an RWX
mapping at a fixed `fixmap` address (as discovered using CONFIG_ARM64_PTDUMP).

0xffff7ffffe7fc000-0xffff7ffffe7fd000 4K RW x SHD AF UXN MEM/NORMAL

Having PAGE_KERNEL_ROX by default for this fixmap makes sense for a security
POV, for reducing the ability to load and run shellcode.

Originally, the commit that introduced CONFIG_UNMAP_KERNEL_AT_EL0, had the following:

     pgprot_t prot = rodata_enabled ? PAGE_KERNEL_ROX : PAGE_KERNEL_EXEC;

However rodata_enabled is not available in arch/arm64 on this early version of
the kernel.

Change-Id: I21f26df498fb591fc28e32f4dfad671a9ed3d8d3
Fixes: 39685f556c ("FROMLIST: arm64: mm: Map entry trampoline into
trampoline and kernel page tables")
Signed-off-by: Dan Aloni <daloni@magicleap.com>
2019-08-22 21:24:48 +00:00
..
alpha This is the 4.4.175 stable release 2019-02-20 10:44:26 +01:00
arc This is the 4.4.186 stable release 2019-07-22 15:54:20 +02:00
arm This is the 4.4.188 stable release 2019-08-06 18:36:03 +02:00
arm64 ANDROID: arm64: fix leftover RWX when using CONFIG_UNMAP_KERNEL_AT_EL0 2019-08-22 21:24:48 +00:00
avr32 BACKPORT: exit_thread: accept a task parameter to be exited 2018-02-05 08:58:29 -08:00
blackfin BACKPORT: exit_thread: remove empty bodies 2018-02-05 08:58:29 -08:00
c6x BACKPORT: exit_thread: remove empty bodies 2018-02-05 08:58:29 -08:00
cris This is the 4.4.168 stable release 2018-12-19 19:22:06 +01:00
frv This is the 4.4.133 stable release 2018-05-26 10:12:26 +02:00
h8300 This is the 4.4.179 stable release 2019-04-30 13:25:38 +02:00
hexagon This is the 4.4.160 stable release 2018-10-10 20:40:32 +02:00
ia64 This is the 4.4.185 stable release 2019-07-10 12:57:28 +02:00
m32r BACKPORT: exit_thread: remove empty bodies 2018-02-05 08:58:29 -08:00
m68k This is the 4.4.185 stable release 2019-07-10 12:57:28 +02:00
metag BACKPORT: exit_thread: accept a task parameter to be exited 2018-02-05 08:58:29 -08:00
microblaze This is the 4.4.146 stable release 2018-08-06 21:08:50 +02:00
mips This is the 4.4.188 stable release 2019-08-06 18:36:03 +02:00
mn10300 This is the 4.4.116 stable release 2018-02-20 16:23:06 +01:00
nios2 BACKPORT: exit_thread: remove empty bodies 2018-02-05 08:58:29 -08:00
openrisc This is the 4.4.157 stable release 2018-09-20 11:32:31 +02:00
parisc This is the 4.4.187 stable release 2019-08-04 09:53:45 +02:00
powerpc This is the 4.4.187 stable release 2019-08-04 09:53:45 +02:00
s390 This is the 4.4.186 stable release 2019-07-22 15:54:20 +02:00
score BACKPORT: exit_thread: remove empty bodies 2018-02-05 08:58:29 -08:00
sh This is the 4.4.187 stable release 2019-08-04 09:53:45 +02:00
sparc This is the 4.4.185 stable release 2019-07-10 12:57:28 +02:00
tile This is the 4.4.133 stable release 2018-05-26 10:12:26 +02:00
um This is the 4.4.187 stable release 2019-08-04 09:53:45 +02:00
unicore32 BACKPORT: exit_thread: remove empty bodies 2018-02-05 08:58:29 -08:00
x86 This is the 4.4.189 stable release 2019-08-11 15:42:33 +02:00
xtensa This is the 4.4.179 stable release 2019-04-30 13:25:38 +02:00
.gitignore
Kconfig BACKPORT: exit_thread: remove empty bodies 2018-02-05 08:58:29 -08:00