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

Commit 21c935e5 authored by Paolo 'Blaisorblade' Giarrusso's avatar Paolo 'Blaisorblade' Giarrusso Committed by Linus Torvalds
Browse files

[PATCH] uml: correct removal of pte_mkexec



Correct commit 5906e417 - this makes more
sense: we turn pte_mkexec + pte_wrprotect to pte_mkread.  However, due to a
bug in pte_mkread, it does the exact same thing as pte_mkwrite, so this patch
improves the code but does not change anything in practice.  The pte_mkread
bug is fixed separately, as it may have big impact.

Signed-off-by: default avatarPaolo 'Blaisorblade' Giarrusso <blaisorblade@yahoo.it>
Cc: Jeff Dike <jdike@addtoit.com>
Signed-off-by: default avatarAndrew Morton <akpm@osdl.org>
Signed-off-by: default avatarLinus Torvalds <torvalds@osdl.org>
parent 1875a48f
Loading
Loading
Loading
Loading
+1 −4
Original line number Diff line number Diff line
@@ -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: