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:
Laura Abbott 2014-08-29 12:57:40 -07:00
parent dccfa0a38e
commit 9345c54477

View file

@ -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;
}
/*