mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
From: Pekka Enberg <penberg@cs.helsinki.fi>
To: Ingo Molnar <mingo@elte.hu>
Cc: Linus Torvalds <torvalds@linux-foundation.org>,
	linux-kernel@vger.kernel.org, akpm@linux-foundation.org,
	cl@linux-foundation.org, hannes@cmpxchg.org, mpm@selenic.com,
	npiggin@suse.de, yinghai@kernel.org
Subject: Re: [GIT PULL v2] Early boot SLAB for 2.6.31
Date: Thu, 11 Jun 2009 14:56:11 +0300	[thread overview]
Message-ID: <1244721371.17483.31.camel@penberg-laptop> (raw)
In-Reply-To: <20090611114814.GB13391@elte.hu>

On Thu, 2009-06-11 at 13:48 +0200, Ingo Molnar wrote:
> * Ingo Molnar <mingo@elte.hu> wrote:
> 
> > * Ingo Molnar <mingo@elte.hu> wrote:
> > 
> > > Hm, with this pulled on a testbox i'm still getting:
> > > 
> > > [    0.000000] Experimental hierarchical RCU init done.
> > > [    0.000000] NR_IRQS:4352 nr_irqs:256
> > > [    0.000000] ------------[ cut here ]------------
> > > [    0.000000] WARNING: at mm/bootmem.c:537 alloc_arch_preferred_bootmem+0x40/0x7e()
> > 
> > Another testbox crashed on bootup. I'm collecting a serial log 
> > from it - config attached meanwhile.
> 
> We have a hard crash in the WP-protect code:
> 
> [    0.000000] Checking if this processor honours the WP bit even in supervisor mode...BUG: Int 14: CR2 ffcff000
> [    0.000000]      EDI 00000188  ESI 00000ac7  EBP c17eaf9c  ESP c17eaf8c
> [    0.000000]      EBX 000014e0  EDX 0000000e  ECX 01856067  EAX 00000001
> [    0.000000]      err 00000003  EIP c10135b1   CS 00000060  flg 00010002
> [    0.000000] Stack: c17eafa8 c17fd410 c16747bc c17eafc4 c17fd7e5 000011fd f8616000 c18237cc
> [    0.000000]        00099800 c17bb000 c17eafec c17f1668 000001c5 c17f1322 c166e039 c1822bf0
> [    0.000000]        c166e033 c153a014 c18237cc 00020800 c17eaff8 c17f106a 00020800 01ba5003
> [    0.000000] Pid: 0, comm: swapper Not tainted 2.6.30-tip-02161-g7a74539-dirty #52203
> [    0.000000] Call Trace:
> [    0.000000]  [<c15357c2>] ? printk+0x14/0x16
> [    0.000000]  [<c10135b1>] ? do_test_wp_bit+0x19/0x23
> [    0.000000]  [<c17fd410>] ? test_wp_bit+0x26/0x64
> [    0.000000]  [<c17fd7e5>] ? mem_init+0x1ba/0x1d8
> [    0.000000]  [<c17f1668>] ? start_kernel+0x164/0x2f7
> [    0.000000]  [<c17f1322>] ? unknown_bootoption+0x0/0x19c
> [    0.000000]  [<c17f106a>] ? __init_begin+0x6a/0x6f
> 
> (full bootlog attached)
> 
> Just a quick analysis from the place we crash (without looking into 
> any details): the WP test is the first time we really make use of 
> the MMU during bootup - crashes there are often a sign of messed up 
> pagetables, which is easy if the bootmem allocator is changed.

No, mem_init() happens _before_ slab is set up so it's probably just
this.

And yes, the patch set clearly needs more work.

			Pekka

diff --git a/init/main.c b/init/main.c
index 859af21..6d38f96 100644
--- a/init/main.c
+++ b/init/main.c
@@ -588,6 +588,8 @@ asmlinkage void __init start_kernel(void)
 	 */
 	pidhash_init();
 	vfs_caches_init_early();
+	sort_main_extable();
+	trap_init();
 	/*
 	 * Set up kernel memory allocators
 	 */
@@ -610,8 +612,6 @@ asmlinkage void __init start_kernel(void)
 				"enabled *very* early, fixing it\n");
 		local_irq_disable();
 	}
-	sort_main_extable();
-	trap_init();
 	rcu_init();
 	/* init some links before init_ISA_irqs() */
 	early_irq_init();



  reply	other threads:[~2009-06-11 11:56 UTC|newest]

Thread overview: 43+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2009-06-10 20:12 [GIT PULL] " Pekka J Enberg
2009-06-10 20:32 ` Linus Torvalds
2009-06-10 20:30   ` Pekka Enberg
2009-06-10 20:43     ` Ingo Molnar
2009-06-10 20:47       ` Pekka Enberg
2009-06-10 20:50         ` Ingo Molnar
2009-06-10 20:57           ` Ingo Molnar
2009-06-10 20:58             ` Pekka Enberg
2009-06-10 21:07             ` Pekka Enberg
2009-06-11  0:54               ` Ingo Molnar
2009-06-10 21:00           ` Pekka J Enberg
2009-06-10 20:33   ` Linus Torvalds
2009-06-10 20:57     ` Pekka J Enberg
2009-06-11 11:17     ` [GIT PULL v2] " Pekka J Enberg
2009-06-11 11:35       ` Ingo Molnar
2009-06-11 11:40         ` Ingo Molnar
2009-06-11 11:42           ` Ingo Molnar
2009-06-11 11:48             ` Ingo Molnar
2009-06-11 11:56               ` Pekka Enberg [this message]
2009-06-11 11:49           ` Pekka J Enberg
2009-06-11 11:54         ` Ingo Molnar
2009-06-11 13:58       ` Christoph Lameter
2009-06-11 14:06         ` Pekka Enberg
2009-06-11 14:26           ` Christoph Lameter
2009-06-11 15:24           ` Pekka Enberg
2009-06-11 17:50             ` Yinghai Lu
2009-06-11 18:10               ` [GIT PULL v3] " Pekka J Enberg
2009-06-11 21:43                 ` Ingo Molnar
2009-06-11 22:03                   ` Ingo Molnar
2009-06-11 22:41                     ` Yinghai Lu
2009-06-12  8:33                       ` Pekka Enberg
2009-06-12  7:17                     ` Ingo Molnar
2009-06-12  7:25                       ` Li Zefan
2009-06-12  7:29                       ` Pekka Enberg
2009-06-12  7:29                         ` KAMEZAWA Hiroyuki
2009-06-12  7:33                         ` Li Zefan
2009-06-12  7:51                         ` Ingo Molnar
2009-06-11 23:14                   ` Yinghai Lu
2009-06-12  8:37                     ` Pekka Enberg
2009-06-10 21:00 ` [GIT PULL] " Ingo Molnar
2009-06-10 20:57   ` Pekka Enberg
2009-06-10 21:03   ` Yinghai Lu
2009-06-10 21:11   ` Yinghai Lu

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=1244721371.17483.31.camel@penberg-laptop \
    --to=penberg@cs.helsinki.fi \
    --cc=akpm@linux-foundation.org \
    --cc=cl@linux-foundation.org \
    --cc=hannes@cmpxchg.org \
    --cc=linux-kernel@vger.kernel.org \
    --cc=mingo@elte.hu \
    --cc=mpm@selenic.com \
    --cc=npiggin@suse.de \
    --cc=torvalds@linux-foundation.org \
    --cc=yinghai@kernel.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®