public inbox for kernel-testers@vger.kernel.org
 help / color / mirror / Atom feed
From: Pekka Enberg <penberg-bbCR+/B0CizivPeTLB3BmA@public.gmane.org>
To: Vegard Nossum <vegard.nossum-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org>
Cc: Mariusz Kozlowski
	<m.kozlowski-NWF1p15JEu3VItvQsEIGlw@public.gmane.org>,
	Stephen Rothwell <sfr-3FnU+UHB4dNDw9hX6IcOSA@public.gmane.org>,
	kernel-testers-u79uwXL29TY76Z2rM5mHXA@public.gmane.org,
	linux-next-u79uwXL29TY76Z2rM5mHXA@public.gmane.org,
	LKML <linux-kernel-u79uwXL29TY76Z2rM5mHXA@public.gmane.org>,
	cl-de/tnXTf+JLsfHDXvbKv3WD2FQJk+8+b@public.gmane.org
Subject: Re: linux-next: Tree for July 18: warning at kernel/lockdep.c:2068 trace_hardirqs_on_caller
Date: Sat, 19 Jul 2008 15:56:29 +0300	[thread overview]
Message-ID: <1216472189.6762.166.camel@penberg-laptop> (raw)
In-Reply-To: <19f34abd0807190255x304173d4wf2bfabb2d5bce511-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org>

On Sat, 2008-07-19 at 11:55 +0200, Vegard Nossum wrote:
> On Sat, Jul 19, 2008 at 9:28 AM, Mariusz Kozlowski
> <m.kozlowski-NWF1p15JEu3VItvQsEIGlw@public.gmane.org> wrote:
> > Hello,
> >
> >        I get this on my x86_32 laptop.
> >
> > ------------[ cut here ]------------
> > WARNING: at /home/mako/linux/lkt/sources/linux-next/kernel/lockdep.c:2068 trace_hardirqs_on_caller+0xdc/0x128()
> > Modules linked in:
> > Pid: 0, comm: swapper Not tainted 2.6.26-next-20080718 #1
> >  [<c011d5ca>] warn_on_slowpath+0x4e/0x68
> >  [<c0132600>] ? init_srcu_struct+0x17/0x3b
> >  [<c011de86>] ? release_console_sem+0x1c2/0x1e8
> >  [<c0139818>] ? trace_hardirqs_off+0xb/0xd
> >  [<c02b95cb>] ? _spin_unlock_irqrestore+0x39/0x60
> >  [<c011de9a>] ? release_console_sem+0x1d6/0x1e8
> >  [<c01326be>] ? up+0x23/0x30
> >  [<c011de86>] ? release_console_sem+0x1c2/0x1e8
> >  [<c01326be>] ? up+0x23/0x30
> >  [<c011de86>] ? release_console_sem+0x1c2/0x1e8
> >  [<c013b83b>] ? __lock_acquire+0x365/0x1151
> >  [<c013b048>] trace_hardirqs_on_caller+0xdc/0x128
> >  [<c013b09f>] trace_hardirqs_on+0xb/0xd
> >  [<c016a40b>] __slab_alloc+0x329/0x61e
> >  [<c011665f>] ? kmemcheck_memset+0x24/0xe5
> >  [<c016a7a0>] kmem_cache_alloc+0xa0/0xb6
> >  [<c01dedb4>] ? kobject_init+0x3b/0xdd
> >  [<c01dedb4>] ? kobject_init+0x3b/0xdd
> >  [<c01dedb4>] kobject_init+0x3b/0xdd
> >  [<c025997f>] firmware_map_add_entry+0x2a/0x4b
> >  [<c03b8e0c>] firmware_map_add_early+0x32/0x56
> >  [<c03a3faf>] e820_reserve_resources+0x10a/0x14e
> >  [<c03a1965>] setup_arch+0x375/0x540
> >  [<c0136e81>] ? clockevents_register_notifier+0x28/0x2d
> >  [<c011e477>] ? printk+0x1b/0x1d
> >  [<c03a09df>] start_kernel+0x67/0x278
> >  [<c03a0304>] i386_start_kernel+0x64/0x70
> >  =======================
> > ---[ end trace 4eaa2a86a8e2da22 ]---
> >
> 
> What I don't get here is how SLUB can be used this early in the boot
> process. Notice that this is still miles away from the
> 
>     SLUB: Genslabs=12, HWalign=128, Order=0-3, MinObjects=0, CPUs=1, Nodes=1
> 
> line, which comes much later. And that kobject_init() _is_ calling
> kzalloc() via verify_dynamic_kobject_allocation(). Isn't this an
> error?
> 
> (Unfortunately, my "git log" doesn't turn up any recent changes for
> any of the affected code paths here.)

Indeed, looks like a bug in kobject_init(). You need to wait for
kmem_cache_init() to be run before using kzalloc().

		Pekka

  parent reply	other threads:[~2008-07-19 12:56 UTC|newest]

Thread overview: 27+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
     [not found] <20080718195352.e562a00f.sfr@canb.auug.org.au>
2008-07-19  7:28 ` linux-next: Tree for July 18: warning at kernel/lockdep.c:2068 trace_hardirqs_on_caller Mariusz Kozlowski
2008-07-19  9:55   ` Vegard Nossum
     [not found]     ` <19f34abd0807190255x304173d4wf2bfabb2d5bce511-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org>
2008-07-19 12:56       ` Pekka Enberg [this message]
2008-07-19 12:59     ` Vegard Nossum
     [not found]       ` <19f34abd0807190559y2fe5ebf9h7095793e82de3122-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org>
2008-07-19 13:22         ` Stephen Rothwell
2008-07-19 22:17         ` Greg KH
2008-07-19 22:27           ` Vegard Nossum
     [not found]             ` <19f34abd0807191527u61c5ed61kffe2279c8d46915d-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org>
2008-07-19 22:41               ` Greg KH
2008-07-19 22:44             ` Vegard Nossum
     [not found]               ` <19f34abd0807191544nfd73be5nf7dde4b61992a7e8-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org>
2008-07-19 22:58                 ` Greg KH
2008-07-19 23:11                   ` Vegard Nossum
     [not found]                     ` <19f34abd0807191611y7cabf405iad307ba79591e04f-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org>
2008-07-19 23:20                       ` Greg KH
2008-07-20 12:51                         ` Bernhard Walle
2008-07-20  9:01                       ` Dave Hansen
2008-07-20  9:35                         ` Thomas Meyer
2008-07-20 13:03                         ` Bernhard Walle
     [not found]                           ` <20080720150341.7cd381c2-Hxm9IJOWyO+kWa+peg0mPg@public.gmane.org>
2008-07-20 15:44                             ` Bernhard Walle
2008-07-21 13:17                         ` Vivek Goyal
     [not found]                           ` <20080721131721.GB4451-H+wXaHxf7aLQT0dZR+AlfA@public.gmane.org>
2008-07-21 13:25                             ` Bernhard Walle
2008-07-21 13:39                               ` Vivek Goyal
     [not found]                                 ` <20080721133937.GC4451-H+wXaHxf7aLQT0dZR+AlfA@public.gmane.org>
2008-07-21 15:00                                   ` Bernhard Walle
     [not found]                                     ` <20080721170037.1a0046b1-oJhqVyG5NZ9bpigZmTR7Iw@public.gmane.org>
2008-07-22  6:15                                       ` Yasunori Goto
2008-07-20 12:48                 ` Bernhard Walle
     [not found] ` <20080718195352.e562a00f.sfr-3FnU+UHB4dNDw9hX6IcOSA@public.gmane.org>
2008-07-19  7:39   ` linux-next: Tree for July 18: nfs problems Mariusz Kozlowski
2008-07-19  9:35 ` linux-next: Tree for July 18: powerpc g3 hangs Mariusz Kozlowski
     [not found] ` <200807200220.11701.rjw@sisk.pl>
     [not found]   ` <20080719215815.48482a3a@extreme>
2008-07-20 15:39     ` linux-next: Tree for July 18: sky2 WOL broken Rafael J. Wysocki
     [not found]       ` <200807201739.22919.rjw-KKrjLPT3xs0@public.gmane.org>
2008-07-21  0:53         ` Rafael J. Wysocki

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=1216472189.6762.166.camel@penberg-laptop \
    --to=penberg-bbcr+/b0cizivpetlb3bma@public.gmane.org \
    --cc=cl-de/tnXTf+JLsfHDXvbKv3WD2FQJk+8+b@public.gmane.org \
    --cc=kernel-testers-u79uwXL29TY76Z2rM5mHXA@public.gmane.org \
    --cc=linux-kernel-u79uwXL29TY76Z2rM5mHXA@public.gmane.org \
    --cc=linux-next-u79uwXL29TY76Z2rM5mHXA@public.gmane.org \
    --cc=m.kozlowski-NWF1p15JEu3VItvQsEIGlw@public.gmane.org \
    --cc=sfr-3FnU+UHB4dNDw9hX6IcOSA@public.gmane.org \
    --cc=vegard.nossum-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.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