All of lore.kernel.org
 help / color / mirror / Atom feed
From: "Frédéric Weisbecker" <fweisbec@gmail.com>
To: "Török Edwin" <edwintorok@gmail.com>
Cc: linux-next@vger.kernel.org, Linux Kernel <linux-kernel@vger.kernel.org>
Subject: Re: today's linux-next fails to boot
Date: Tue, 15 Jul 2008 04:11:26 +0200	[thread overview]
Message-ID: <487C074E.8080309@gmail.com> (raw)
In-Reply-To: <4877400B.1000400@gmail.com>

[-- Attachment #1: Type: text/plain, Size: 2350 bytes --]

Török Edwin a écrit :
> Hi,
>
> Today's linux-next tree (commit
> 93847083e4791567931bd17c039cc35881cdad29) fails to boot:
> [built with gcc-4.2.4-3]
>
> BUG: Int 14: CR2 b0049dea
>      EDI 00000082 ESI 00000000 EBP c059be88 ESP c059be5c
>      EBX f000ec62 EDX 0000000e ECX c0595480 EAX f000ec62
>      err 00000000 EIP c0181ca0  CS 00000060 flg 00010082
> Stack:   00000040 c06a2ba0 000080d0 c0595480 c0000f19c c000f180 c0581120
> c059bea8
>          c02bf19b 00000000 00000080 c059beb8 c0000f194 c000f180 0000000a
> c059beb8
>          c03a1059 00000000 00000000 c059bed8 c05c4c7c  0009efff 00000000
> c04f4df4
>
> I get this as soon as I boot from grub2, strangely the error message is
> at the bottom of the screen, and I can't see the full message (scrolling
> won't work).
>
> The last kernel I built & booted was 2.6.26-rc8 from Linus's tree. I
> will try to built&boot 2.6.26-rc9, and then bisect.
>
> This happens on 32-bit Dell Inspiron 6400 (Intel Core Duo T2300 @1.66
> Ghz CPU),  Intel ICH-7 chipset, and a seagate SATA drive. 
> I will provide  full hardware details once I bisected the problem.
>
> Meanwhile, if somebody has an idea as to what is wrong?
>
> Best regards,
> --Edwin
> --
> To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
> the body of a message to majordomo@vger.kernel.org
> More majordomo info at  http://vger.kernel.org/majordomo-info.html
> Please read the FAQ at  http://www.tux.org/lkml/
>   

I got the same problem on an x86-PC and after looking at the stack, the 
problem comes from firmware_map_add_early() in drivers/firmware/memmap.c

The backtrace is the following:

kzalloc()
verify_dynamic_kobject_allocation()
kobject_init()
firmware_map_add_entry()
firmware_map_add_early()
e820_reserve_resources()
setup_arch() (in x86)

The problem is that verify_dynamic_kobject_allocation() calls kzalloc 
assuming that kmem_cache_init() has already been called. But it's not 
the case and it's too soon to call the kmalloc/kzalloc functions.

I don't know what is the real problem: the fact that kobject_init is 
called too soon or verify_dynamic_kobject_allocation() which calls 
kzalloc without making any assumption about its current context.

So here is just a patch to temporarily disable 
verify_dynamic_kobject_allocation() This function just checks the sanity 
of the code.



[-- Attachment #2: disable_verify_dyn_kobject.diff --]
[-- Type: text/x-patch, Size: 312 bytes --]

--- a/lib/kobject.c	2008-07-15 02:55:08.000000000 +0200
+++ b/lib/kobject.c	2008-07-15 04:01:10.000000000 +0200
@@ -335,7 +335,6 @@
 		       "object, something is seriously wrong.\n", kobj);
 		dump_stack();
 	}
-	verify_dynamic_kobject_allocation(kobj);
 
 	kobject_init_internal(kobj);
 	kobj->ktype = ktype;

  parent reply	other threads:[~2008-07-15  2:11 UTC|newest]

Thread overview: 29+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2008-07-11 11:12 today's linux-next fails to boot Török Edwin
2008-07-11 13:03 ` Takashi Iwai
2008-07-12 15:03   ` Takashi Iwai
2008-07-11 13:13   ` Török Edwin
2008-07-11 13:59     ` Ingo Molnar
2008-07-11 14:48       ` Török Edwin
2008-07-11 14:53         ` Ingo Molnar
2008-07-11 15:10           ` Rafael J. Wysocki
2008-07-11 19:07             ` Ingo Molnar
2008-07-11 21:06               ` Rafael J. Wysocki
2008-07-12  0:50                 ` Rafael J. Wysocki
2008-07-12  4:47                   ` Ingo Molnar
2008-07-11 14:54         ` Vegard Nossum
2008-07-11 14:54           ` Vegard Nossum
2008-07-11 15:00           ` Vegard Nossum
2008-07-11 15:00             ` Vegard Nossum
2008-07-11 15:27             ` Török Edwin
2008-07-16 21:11   ` Thomas Meyer
2008-07-16 21:57     ` Frédéric Weisbecker
2008-07-11 13:04 ` Takashi Iwai
2008-07-11 13:36 ` Vegard Nossum
2008-07-11 13:36   ` Vegard Nossum
2008-07-15  2:11 ` Frédéric Weisbecker [this message]
2008-07-15 11:06   ` Takashi Iwai
2008-07-15 11:15     ` Bernhard Walle
2008-07-15 11:17       ` Bernhard Walle
2008-07-15 11:53         ` Takashi Iwai
2008-07-15 12:02           ` Bernhard Walle
     [not found]         ` <c62985530807150800l4f34a6a3m22d58d66316c1e09@mail.gmail.com>
2008-07-15 15:14           ` Bernhard Walle

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=487C074E.8080309@gmail.com \
    --to=fweisbec@gmail.com \
    --cc=edwintorok@gmail.com \
    --cc=linux-kernel@vger.kernel.org \
    --cc=linux-next@vger.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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.