[PATCH] uml: correct removal of pte_mkexec
Changes
1 files changed · +1 −4
| File | Status | Add | Del | Content |
|---|---|---|---|---|
| arch/um/kernel/skas/mmu.c | modified | +1 | −4 | View file |
arch/um/kernel/skas/mmu.c
View filediff --git a/arch/um/kernel/skas/mmu.c b/arch/um/kernel/skas/mmu.c
index c17eddc..2c6d090 100644
--- a/arch/um/kernel/skas/mmu.c
+++ b/arch/um/kernel/skas/mmu.c
@@ -60,10 +60,7 @@ static int init_stub_pte(struct mm_struct *mm, unsigned long proc,
#endif
*pte = mk_pte(virt_to_page(kernel), __pgprot(_PAGE_PRESENT));
- /* This is wrong for the code page, but it doesn't matter since the
- * stub is mapped by hand with the correct permissions.
- */
- *pte = pte_mkwrite(*pte);
+ *pte = pte_mkread(*pte);
return(0);
out_pmd: