[patch 2/7] x86, cpa: remove USER permission from the very early identity mapping attribute

From: Suresh Siddha
Date: Thu Sep 11 2008 - 17:19:41 EST

remove USER from the PTE/PDE attributes for the very early identity
mapping. We overwrite these mappings with KERNEL attribute later
in the boot. Just being paranoid here as there is no need for USER bit
to be set.

If this breaks something(don't know the history), then we can simply drop
this change.

Signed-off-by: Suresh Siddha <suresh.b.siddha@xxxxxxxxx>

Index: tip/include/asm-x86/pgtable.h
--- tip.orig/include/asm-x86/pgtable.h 2008-09-11 11:15:53.000000000 -0700
+++ tip/include/asm-x86/pgtable.h 2008-09-11 11:16:04.000000000 -0700
@@ -138,8 +138,8 @@
#ifdef CONFIG_X86_64
-#define PTE_IDENT_ATTR 0x007 /* PRESENT+RW+USER */
+#define PTE_IDENT_ATTR 0x003 /* PRESENT+RW */
#define PGD_IDENT_ATTR 0x001 /* PRESENT (no other attributes) */


To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/