Skip to content

Commit

Permalink
ARM: fix PAGE_KERNEL
Browse files Browse the repository at this point in the history
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 <[email protected]>
  • Loading branch information
Russell King committed Dec 24, 2009
1 parent 52e8bfd commit 6dc995a
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions arch/arm/mm/mmu.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit 6dc995a

Please sign in to comment.