Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 9345c544 authored by Laura Abbott's avatar Laura Abbott
Browse files

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: default avatarLaura Abbott <lauraa@codeaurora.org>
parent dccfa0a3
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -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;
	}

	/*