mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
From: Jeff Chua <jeff.chua.linux@gmail.com>
To: lkml <linux-kernel@vger.kernel.org>,
	Linus Torvalds <torvalds@linux-foundation.org>,
	Suresh Siddha <suresh.b.siddha@intel.com>
Subject: linux 2.6.27 kernel panic on x86 - please revert commit 3a85e770aa77e4f1a4096275c97b64c10cd7323e
Date: Wed, 15 Oct 2008 19:05:02 +0800 (SGT)	[thread overview]
Message-ID: <Pine.LNX.4.64.0810151902510.19590@boston.corp.fedex.com> (raw)



Commit 3a85e770aa77e4f1a4096275c97b64c10cd7323e broke linux boot on x86 
resulting in kernel panic. Here's the console output ...

Net: Registered protocol family 17
Using IPI No-Shortcut mode
RAMDISK: Compressed image found at block 0
VFS: Mounted root (ext2 filesystem (readonly).
Freeing unsued kernel memory: 312k freed
init[1]: segfault at ffffe01c up b7f0dc28 sp bfc26628 error 5 in ld-2.7.90.so[b7f0b000+1c000]
Kernel panic - not syncing: Attempted to kill init!


Thanks,
Jeff.


Please revert this ...

commit 3a85e770aa77e4f1a4096275c97b64c10cd7323e
Author: Suresh Siddha <suresh.b.siddha@intel.com>
Date:   Tue Sep 23 14:00:37 2008 -0700

     x86, cpa: remove USER permission from the very early identity mapping attribute

     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@intel.com>
     Cc: Suresh Siddha <suresh.b.siddha@intel.com>
     Cc: arjan@linux.intel.com
     Cc: venkatesh.pallipadi@intel.com
     Cc: jeremy@goop.org
     Signed-off-by: Ingo Molnar <mingo@elte.hu>

diff --git a/include/asm-x86/pgtable.h b/include/asm-x86/pgtable.h
index 0ff73e7..bbf0f59 100644
--- a/include/asm-x86/pgtable.h
+++ b/include/asm-x86/pgtable.h
@@ -138,8 +138,8 @@
  #ifdef CONFIG_X86_64
  #define __PAGE_KERNEL_IDENT_LARGE_EXEC	__PAGE_KERNEL_LARGE_EXEC
  #else
-#define PTE_IDENT_ATTR	 0x007		/* PRESENT+RW+USER */
-#define PDE_IDENT_ATTR	 0x067		/* PRESENT+RW+USER+DIRTY+ACCESSED */
+#define PTE_IDENT_ATTR	 0x003		/* PRESENT+RW */
+#define PDE_IDENT_ATTR	 0x063		/* PRESENT+RW+DIRTY+ACCESSED */
  #define PGD_IDENT_ATTR	 0x001		/* PRESENT (no other attributes) */
  #endif


             reply	other threads:[~2008-10-15 11:05 UTC|newest]

Thread overview: 8+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2008-10-15 11:05 Jeff Chua [this message]
2008-10-15 11:23 ` Ingo Molnar
2008-10-15 12:02   ` Jeff Chua
2008-10-15 12:05     ` Ingo Molnar
2008-10-15 13:39       ` Jeff Chua
2008-10-15 14:46         ` Suresh Siddha
2008-10-15 15:56           ` Jeff Chua
2008-10-15 16:19             ` Ingo Molnar

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=Pine.LNX.4.64.0810151902510.19590@boston.corp.fedex.com \
    --to=jeff.chua.linux@gmail.com \
    --cc=linux-kernel@vger.kernel.org \
    --cc=suresh.b.siddha@intel.com \
    --cc=torvalds@linux-foundation.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox

all inboxes | Powered by JetHome®