public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
From: Ingo Molnar <mingo@elte.hu>
To: Reuben Farrelly <reuben-lkml@reub.net>
Cc: Andrew Morton <akpm@osdl.org>,
	linux-kernel@vger.kernel.org, Tejun Heo <htejun@gmail.com>,
	Jeff Garzik <jeff@garzik.org>, Jan Beulich <jbeulich@novell.com>
Subject: Re: 2.6.17-rc5-mm2
Date: Thu, 1 Jun 2006 12:53:00 +0200	[thread overview]
Message-ID: <20060601105300.GA2985@elte.hu> (raw)
In-Reply-To: <20060601103315.GA1865@elte.hu>


* Ingo Molnar <mingo@elte.hu> wrote:

> * Reuben Farrelly <reuben-lkml@reub.net> wrote:
> 
> > >A .config would be useful too.
> > 
> > Now up at 
> > http://www.reub.net/files/kernel/configs/2.6.17-rc5-mm2-x86_64.confg
> 
> hm, i cannot reproduce the stack backtrace secondary crash with your 
> config. Weird.

ah, managed to reproduce it!

Jan, the dwarf2 unwinder apparently fails if we call a NULL function. 
The patch below will provoke it artificially on any box (as long as you 
have an IDE system). I've attached the incorrect backtrace attempt 
below, and the expected backtrace further below.

the relevant config options are:

CONFIG_DEBUG_INFO=y
CONFIG_FRAME_POINTER=y
CONFIG_UNWIND_INFO=y
CONFIG_STACK_UNWIND=y

	Ingo

Index: linux/drivers/ide/ide-io.c
===================================================================
--- linux.orig/drivers/ide/ide-io.c
+++ linux/drivers/ide/ide-io.c
@@ -1546,6 +1546,10 @@ irqreturn_t ide_intr (int irq, void *dev
 	ide_handler_t *handler;
 	ide_startstop_t startstop;
 
+	handler = NULL;
+	drive = NULL;
+	handler(drive);
+
 	spin_lock_irqsave(&ide_lock, flags);
 	hwif = hwgroup->hwif;
 
---{ BAD dump }---->

Unable to handle kernel NULL pointer dereference at 0000000000000000 RIP: 
 [<0000000000000000>]
PGD 0 
Oops: 0010 [1] SMP 
last sysfs file: 
CPU 1 
Modules linked in:
Pid: 1, comm: idle Not tainted 2.6.17-rc5-mm2-lockdep #15
RIP: 0010:[<0000000000000000>]  [<0000000000000000>]
RSP: 0000:ffff81003ff9fcf0  EFLAGS: 00010046
RAX: 0000000000000000 RBX: 0000000000000206 RCX: ffff81003fd20000
RDX: ffffffff809021e0 RSI: ffff81003fd02b30 RDI: 0000000000000000
RBP: ffff81003ff9fd28 R08: 0000000000000001 R09: ffff81003fd20ad8
R10: 0000000000000000 R11: 0000000000000001 R12: 00000000fffffff4
R13: ffff81003fd02b30 R14: 000000000000000e R15: 000000000000000e
FS:  0000000000000000(0000) GS:ffff81003ffea400(0000) knlGS:0000000000000000
CS:  0010 DS: 0018 ES: 0018 CR0: 000000008005003b
CR2: 0000000000000000 CR3: 0000000000201000 CR4: 00000000000006e0
Process idle (pid: 1, threadinfo ffff81003ff9e000, task ffff81003ff9ce20)
Stack:  ffffffff8020debd ffff81003ff9fd38 0000000000000206 00000000fffffff4
 ffff81003fd02b30 0000000000000001 000000000000000e ffff81003ff9fd78
 ffffffff802b4361 ffffffff80927120
Call Trace:


Code:  Bad RIP value.
RIP  [<0000000000000000>]
 RSP <ffff81003ff9fcf0>
CR2: 0000000000000000
 <0>Kernel panic - not syncing: Attempted to kill init!

Call Trace:
 [<ffffffff8026ff17>] show_trace+0xa7/0x220
 [<ffffffff802702ad>] dump_stack+0x15/0x17
 [<ffffffff8028be3f>] panic+0x9e/0x21f
 [<ffffffff802166a7>] do_exit+0xa5/0x95e
 [<ffffffff8020b0b0>] do_page_fault+0x8b0/0x9df
 [<ffffffff802662a5>] error_exit+0x0/0x8e
 
---{ expected dump }---->

Unable to handle kernel NULL pointer dereference at 0000000000000000 RIP: 
 [<ffffffff8020deb7>] ide_intr+0x17/0x208
PGD 0 
Oops: 0002 [1] SMP 
last sysfs file: 
CPU 1 
Modules linked in:
Pid: 1, comm: idle Not tainted 2.6.17-rc5-mm2-lockdep #14
RIP: 0010:[<ffffffff8020deb7>]  [<ffffffff8020deb7>] ide_intr+0x17/0x208
RSP: 0000:ffff81003ff9fcf8  EFLAGS: 00010092
RAX: 0000000000088212 RBX: 0000000000000206 RCX: ffff81003fd20000
RDX: ffffffff809021e0 RSI: ffff81003fd02b30 RDI: 000000000000000e
RBP: ffff81003ff9fd28 R08: 0000000000000001 R09: ffff81003fd20ad8
R10: 0000000000000000 R11: 0000000000000001 R12: 00000000fffffff4
R13: ffff81003fd02b30 R14: 000000000000000e R15: 000000000000000e
FS:  0000000000000000(0000) GS:ffff81003ffea400(0000) knlGS:0000000000000000
CS:  0010 DS: 0018 ES: 0018 CR0: 000000008005003b
CR2: 0000000000000000 CR3: 0000000000201000 CR4: 00000000000006e0
Process idle (pid: 1, threadinfo ffff81003ff9e000, task ffff81003ff9ce20)
Stack:  ffff81003ff9fd38 0000000000000206 00000000fffffff4 ffff81003fd02b30
 0000000000000001 000000000000000e ffff81003ff9fd78 ffffffff802b4371
 ffffffff80927120 ffffffff8020dea0
Call Trace:
 [<ffffffff802b4371>] request_irq+0xe1/0x141
 [<ffffffff80414ee4>] init_irq+0x2a4/0x572
 [<ffffffff80415333>] hwif_init+0x163/0x396
 [<ffffffff804156d5>] probe_hwif_init_with_fixup+0x25/0x83
 [<ffffffff80417853>] ide_setup_pci_device+0x54/0x96
 [<ffffffff8040baea>] amd74xx_probe+0x6a/0x71
 [<ffffffff8097ea7f>] ide_scan_pcidev+0x3f/0x6b
 [<ffffffff8097ead5>] ide_scan_pcibus+0x2a/0xdb
 [<ffffffff8097ea20>] ide_init+0x58/0x78
 [<ffffffff8026ee84>] init+0x164/0x2e3
 [<ffffffff8026647a>] child_rip+0x8/0x12



  reply	other threads:[~2006-06-01 10:53 UTC|newest]

Thread overview: 97+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2006-06-01  8:48 2.6.17-rc5-mm2 Andrew Morton
2006-06-01  9:30 ` 2.6.17-rc5-mm2 Mike Galbraith
2006-06-01  9:45   ` 2.6.17-rc5-mm2 Jens Axboe
2006-06-01  9:48   ` 2.6.17-rc5-mm2 Andrew Morton
2006-06-01  9:34 ` 2.6.17-rc5-mm2 Reuben Farrelly
2006-06-01  9:56   ` 2.6.17-rc5-mm2 Andrew Morton
2006-06-01 10:11     ` 2.6.17-rc5-mm2 Reuben Farrelly
2006-06-01 10:33       ` 2.6.17-rc5-mm2 Ingo Molnar
2006-06-01 10:53         ` Ingo Molnar [this message]
2006-06-01 11:25           ` 2.6.17-rc5-mm2 Ingo Molnar
2006-06-01 11:59             ` 2.6.17-rc5-mm2 Reuben Farrelly
2006-06-01 16:22               ` 2.6.17-rc5-mm2 Andrew Morton
2006-06-01 22:15                 ` 2.6.17-rc5-mm2 Reuben Farrelly
2006-06-01 12:20           ` 2.6.17-rc5-mm2 Jan Beulich
2006-06-01 16:19             ` 2.6.17-rc5-mm2 Andrew Morton
2006-06-01 18:34               ` 2.6.17-rc5-mm2 Andrew Morton
2006-06-02  6:54             ` 2.6.17-rc5-mm2 Jan Beulich
2006-06-02  7:09               ` 2.6.17-rc5-mm2 Ingo Molnar
2006-06-02  7:22                 ` 2.6.17-rc5-mm2 Andrew Morton
2006-06-02  7:21                   ` 2.6.17-rc5-mm2 Ingo Molnar
2006-06-02  7:13               ` 2.6.17-rc5-mm2 Andrew Morton
2006-06-02  7:37             ` 2.6.17-rc5-mm2 Jan Beulich
2006-06-02  7:51               ` 2.6.17-rc5-mm2 Ingo Molnar
2006-06-02 20:53                 ` 2.6.17-rc5-mm2 Daniel Jacobowitz
2006-06-01 10:23     ` 2.6.17-rc5-mm2 Jeff Garzik
2006-06-01 11:42 ` 2.6.17-rc5-mm2 another compile error Helge Hafting
2006-06-01 16:29   ` Andrew Morton
2006-06-21 12:07     ` Adrian Bunk
2006-06-01 11:54 ` 2.6.17-rc5-mm2 stack unwind compile failure Helge Hafting
2006-06-01 16:30   ` Andrew Morton
2006-06-01 12:35 ` 2.6.17-rc5-mm2 md cause BUGs, and readahead speedup Helge Hafting
2006-06-01 12:54   ` Arjan van de Ven
2006-06-01 13:03 ` 2.6.17-rc5-mm2 link issues on s390 Cedric Le Goater
2006-06-01 13:28   ` Martin Schwidefsky
2006-06-01 13:53     ` Cedric Le Goater
2006-06-08  7:28       ` Heiko Carstens
2006-06-08  9:13         ` Cedric Le Goater
2006-06-08 11:02           ` Heiko Carstens
2006-06-08 12:45             ` Cedric Le Goater
2006-06-09  7:58               ` Heiko Carstens
2006-06-01 15:35 ` 2.6.17-rc5-mm2 Jiri Slaby
2006-06-01 15:49   ` 2.6.17-rc5-mm2 Arjan van de Ven
2006-06-01 16:35     ` 2.6.17-rc5-mm2 Ben Collins
2006-06-05 11:28       ` [PATCH 2.6.17-rc5-mm3] ieee1394: hl_irqs_lock is taken in hardware interrupt context Stefan Richter
2006-06-05 11:31         ` [PATCH 2.6.17-rc5-mm3] ieee1394: adjust code formatting in highlevel.c Stefan Richter
2006-06-05 12:07         ` [PATCH 2.6.17-rc5-mm3] ieee1394: hl_irqs_lock is taken in hardware interrupt context Stefan Richter
2006-06-01 15:51 ` 2.6.17-rc5-mm2 Michal Piotrowski
2006-06-01 17:20   ` 2.6.17-rc5-mm2 Arjan van de Ven
2006-06-01 17:35     ` 2.6.17-rc5-mm2 Andrew Morton
2006-06-01 17:36       ` 2.6.17-rc5-mm2 Arjan van de Ven
2006-06-01 19:04     ` 2.6.17-rc5-mm2 Michal Piotrowski
2006-06-01 22:30       ` 2.6.17-rc5-mm2 Michal Piotrowski
2006-06-01 17:22   ` 2.6.17-rc5-mm2 Andrew Morton
2006-06-01 17:27     ` 2.6.17-rc5-mm2 Arjan van de Ven
2006-06-01 17:40       ` 2.6.17-rc5-mm2 Andrew Morton
2006-06-01 19:31         ` 2.6.17-rc5-mm2 Ingo Molnar
2006-06-01 21:51 ` 2.6.17-rc5-mm2 Jesper Juhl
2006-06-01 21:52   ` 2.6.17-rc5-mm2 Jesper Juhl
2006-06-01 22:25   ` 2.6.17-rc5-mm2 Barry K. Nathan
2006-06-01 22:40     ` 2.6.17-rc5-mm2 Andrew Morton
2006-06-01 22:32   ` 2.6.17-rc5-mm2 Barry K. Nathan
2006-06-01 22:52     ` 2.6.17-rc5-mm2 Andrew Morton
2006-06-02  0:07       ` 2.6.17-rc5-mm2 Barry K. Nathan
2006-06-02  0:28         ` 2.6.17-rc5-mm2 Andrew Morton
2006-06-02  0:43           ` 2.6.17-rc5-mm2 Barry K. Nathan
2006-06-02  0:58 ` 2.6.17-rc5-mm2 Barry K. Nathan
2006-06-02  1:38   ` 2.6.17-rc5-mm2 Andrew Morton
2006-06-02  6:02     ` 2.6.17-rc5-mm2 Ingo Molnar
2006-06-02 13:14     ` 2.6.17-rc5-mm2 Barry K. Nathan
2006-06-02 14:20       ` 2.6.17-rc5-mm2 Ingo Molnar
2006-06-02 18:01         ` 2.6.17-rc5-mm2 Barry K. Nathan
2006-06-02 18:06           ` 2.6.17-rc5-mm2 Barry K. Nathan
2006-06-02 20:53           ` 2.6.17-rc5-mm2 Ingo Molnar
2006-06-02 22:33             ` 2.6.17-rc5-mm2 Barry K. Nathan
2006-06-03  7:13               ` 2.6.17-rc5-mm2 Ingo Molnar
2006-06-03 14:41                 ` 2.6.17-rc5-mm2 Ingo Molnar
2006-06-03 21:10                   ` 2.6.17-rc5-mm2 Barry K. Nathan
2006-06-04  2:29                     ` 2.6.17-rc5-mm2 Barry K. Nathan
2006-06-04  8:33                       ` 2.6.17-rc5-mm2 Ingo Molnar
2006-06-04  7:57                     ` 2.6.17-rc5-mm2 Ingo Molnar
2006-06-02 15:51       ` 2.6.17-rc5-mm2 Alan Cox
2006-06-02 18:21         ` 2.6.17-rc5-mm2 Barry K. Nathan
2006-06-02 18:25       ` 2.6.17-rc5-mm2 Andrew Morton
2006-06-02  3:23 ` 2.6.17-rc5-mm2 KAMEZAWA Hiroyuki
2006-06-02  5:06   ` 2.6.17-rc5-mm2 Andrew Morton
2006-06-02 10:09 ` 2.6.17-rc5-mm2 Paolo Ornati
2006-06-02 11:10   ` 2.6.17-rc5-mm2 Ingo Molnar
2006-06-02 11:17     ` 2.6.17-rc5-mm2 Ingo Molnar
2006-06-02 11:34       ` 2.6.17-rc5-mm2 Paolo Ornati
2006-06-02 14:13         ` 2.6.17-rc5-mm2 Ingo Molnar
2006-06-02 14:46           ` 2.6.17-rc5-mm2 Paolo Ornati
2006-06-02 15:10             ` 2.6.17-rc5-mm2 Ingo Molnar
2006-06-02 19:49             ` 2.6.17-rc5-mm2 Ingo Molnar
2006-06-02 20:09               ` 2.6.17-rc5-mm2 Paolo Ornati
2006-06-02 18:38 ` 2.6.17-rc5-mm2 Mel Gorman
2006-06-02 18:59   ` 2.6.17-rc5-mm2 Andrew Morton
2006-06-03 15:29     ` 2.6.17-rc5-mm2 Mel Gorman

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=20060601105300.GA2985@elte.hu \
    --to=mingo@elte.hu \
    --cc=akpm@osdl.org \
    --cc=htejun@gmail.com \
    --cc=jbeulich@novell.com \
    --cc=jeff@garzik.org \
    --cc=linux-kernel@vger.kernel.org \
    --cc=reuben-lkml@reub.net \
    /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