From: Russell King Date: Thu, 24 Dec 2009 10:16:21 +0000 (+0000) Subject: ARM: fix PAGE_KERNEL X-Git-Tag: upstream/snapshot3+hdmi~16011^2~3 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=6dc995a3da9adfa83d61ccf06aa1afa5f6ab764f;p=platform%2Fadaptation%2Frenesas_rcar%2Frenesas_kernel.git ARM: fix PAGE_KERNEL PAGE_KERNEL should not be executable; any area marked executable can be prefetched into the instruction cache. We don't want vmalloc areas to be read in this way. Signed-off-by: Russell King --- diff --git a/arch/arm/mm/mmu.c b/arch/arm/mm/mmu.c index 8c7fbd1..1708da8 100644 --- a/arch/arm/mm/mmu.c +++ b/arch/arm/mm/mmu.c @@ -453,8 +453,7 @@ static void __init build_mem_type_table(void) pgprot_user = __pgprot(L_PTE_PRESENT | L_PTE_YOUNG | user_pgprot); pgprot_kernel = __pgprot(L_PTE_PRESENT | L_PTE_YOUNG | - L_PTE_DIRTY | L_PTE_WRITE | - L_PTE_EXEC | kern_pgprot); + L_PTE_DIRTY | L_PTE_WRITE | kern_pgprot); mem_types[MT_LOW_VECTORS].prot_l1 |= ecc_mask; mem_types[MT_HIGH_VECTORS].prot_l1 |= ecc_mask;