Commit:     1463fdbcc797dfcb8574ababbd39cf6205f6ed00
Parent:     14251809b1921b1216568700f1be2f91a1cbb5c7
Author:     Jeff Dike <[EMAIL PROTECTED]>
AuthorDate: Wed Feb 28 20:13:33 2007 -0800
Committer:  Linus Torvalds <[EMAIL PROTECTED]>
CommitDate: Thu Mar 1 14:53:38 2007 -0800

    [PATCH] uml: pte_mkread fix
    Fix the fact that pte_mkread set _PAGE_RW instead of _PAGE_USER (the logic 
    copied from i386 in most place, so it is really as bad as you're thinking).
    Thus currently page tables are more permissive than they should.
    Such a change may trigger other latent bugs, so be careful with this.
    Signed-off-by: Paolo 'Blaisorblade' Giarrusso <[EMAIL PROTECTED]>
    Signed-off-by: Jeff Dike <[EMAIL PROTECTED]>
    Cc: Paolo 'Blaisorblade' Giarrusso <[EMAIL PROTECTED]>
    Signed-off-by: Andrew Morton <[EMAIL PROTECTED]>
    Signed-off-by: Linus Torvalds <[EMAIL PROTECTED]>
 include/asm-um/pgtable.h |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/include/asm-um/pgtable.h b/include/asm-um/pgtable.h
index e57ff13..1b1090a 100644
--- a/include/asm-um/pgtable.h
+++ b/include/asm-um/pgtable.h
@@ -270,7 +270,7 @@ static inline pte_t pte_wrprotect(pte_t pte)
 static inline pte_t pte_mkread(pte_t pte)
-       pte_set_bits(pte, _PAGE_RW);
+       pte_set_bits(pte, _PAGE_USER);
To unsubscribe from this list: send the line "unsubscribe git-commits-head" in
the body of a message to [EMAIL PROTECTED]
More majordomo info at

Reply via email to