mirror of
https://github.com/team-infusion-developers/android_kernel_samsung_msm8976.git
synced 2024-09-20 19:34:46 +00:00
arm64: Don't set executable permissions for pages
For memory security requirements, we should never have executable and writable pages at the same time. Change the page permissions from PAGE_KERNEL_EXEC to just PAGE_KERNEL. Change-Id: I7af470908bd02eee948a9d8934c90e9e44f06570 Signed-off-by: Laura Abbott <lauraa@codeaurora.org>
This commit is contained in:
parent
dccfa0a38e
commit
9345c54477
|
@ -315,7 +315,7 @@ static void __init alloc_init_pmd(pud_t *pud, unsigned long addr,
|
|||
prot_pte = __pgprot(PROT_DEVICE_nGnRE);
|
||||
} else {
|
||||
prot_sect = prot_sect_kernel;
|
||||
prot_pte = PAGE_KERNEL_EXEC;
|
||||
prot_pte = PAGE_KERNEL;
|
||||
}
|
||||
|
||||
/*
|
||||
|
|
Loading…
Reference in a new issue