diff options
Diffstat (limited to 'arch/um/kernel/skas/mmu.c')
-rw-r--r-- | arch/um/kernel/skas/mmu.c | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/arch/um/kernel/skas/mmu.c b/arch/um/kernel/skas/mmu.c index 79c22707a637..4cd2ff546ef6 100644 --- a/arch/um/kernel/skas/mmu.c +++ b/arch/um/kernel/skas/mmu.c | |||
@@ -61,8 +61,10 @@ static int init_stub_pte(struct mm_struct *mm, unsigned long proc, | |||
61 | #endif | 61 | #endif |
62 | 62 | ||
63 | *pte = mk_pte(virt_to_page(kernel), __pgprot(_PAGE_PRESENT)); | 63 | *pte = mk_pte(virt_to_page(kernel), __pgprot(_PAGE_PRESENT)); |
64 | *pte = pte_mkexec(*pte); | 64 | /* This is wrong for the code page, but it doesn't matter since the |
65 | *pte = pte_wrprotect(*pte); | 65 | * stub is mapped by hand with the correct permissions. |
66 | */ | ||
67 | *pte = pte_mkwrite(*pte); | ||
66 | return(0); | 68 | return(0); |
67 | 69 | ||
68 | out_pmd: | 70 | out_pmd: |