From: Andrew Morton <akpm@linux-foundation.org>
To: Trond Myklebust <trond.myklebust@fys.uio.no>
Cc: tglx@linutronix.de, mingo@redhat.com, hpa@zytor.com,
linux-kernel@vger.kernel.org
Subject: Re: Linux 2.6.24-rc5 x86 architecture no longer Oopses...
Date: Thu, 20 Dec 2007 14:54:15 -0800 [thread overview]
Message-ID: <20071220145415.f737e7f3.akpm@linux-foundation.org> (raw)
In-Reply-To: <1198190447.29917.9.camel@heimdal.trondhjem.org>
On Thu, 20 Dec 2007 17:40:47 -0500
Trond Myklebust <trond.myklebust@fys.uio.no> wrote:
> I just got the following interesting behaviour. Never mind why the
> original Oops (I was testing some experimental RPC patches), but there
> appears to be a BUG_ON() triggered inside the dump() call.
>
> Oops occurred with a build based on this afternoon's git tree from Linus
> (v2.6.24-rc5-317-gfaa4877)...
>
> Cheers
> Trond
> ---------
>
> BUG: unable to handle kernel NULL pointer dereference at virtual address 00000000
> printing eip: f8bcc8b3 *pde = 00000000
> BUG: using smp_processor_id() in preemptible [00000001] code: mount.nfs4/2970
> caller is die+0x59/0x202
> Pid: 2970, comm: mount.nfs4 Not tainted 2.6.24-rc5-ga747a088 #1
> [<c0405170>] show_trace_log_lvl+0x1a/0x2f
> [<c0405a76>] show_trace+0x12/0x14
> [<c0405dc6>] dump_stack+0x6c/0x72
> [<c04e4cd8>] debug_smp_processor_id+0xa0/0xb4
> [<c0405462>] die+0x59/0x202
> [<c05b3e7d>] do_page_fault+0x557/0x63e
> [<c05b252a>] error_code+0x72/0x78
> [<f8bd821c>] rpcb_create+0x7c/0x84 [sunrpc]
> [<f8bd8552>] rpcb_register+0x127/0x18c [sunrpc]
> [<f8bd31d2>] svc_register+0xcf/0x14c [sunrpc]
> [<f8bd399f>] __svc_create+0x19a/0x1b3 [sunrpc]
> [<f8bd3b21>] svc_create+0x13/0x15 [sunrpc]
> [<f8c74beb>] nfs_callback_up+0x71/0x126 [nfs]
> [<f8c53cfe>] nfs_get_client+0x14e/0x3a2 [nfs]
> [<f8c53f88>] nfs4_set_client+0x36/0x14f [nfs]
> [<f8c54739>] nfs4_create_server+0x8e/0x36c [nfs]
> [<f8c5c6f1>] nfs4_get_sb+0x2ef/0x3f3 [nfs]
> [<c0477e40>] vfs_kern_mount+0x7d/0xf1
> [<c0477f02>] do_kern_mount+0x37/0xbd
> [<c048a6fb>] do_mount+0x5c3/0x61d
> [<c048a7c4>] sys_mount+0x6f/0xa9
> [<c04040b2>] sysenter_past_esp+0x5f/0xa5
> =======================
Yes - I don't know why the smp_processor_id() test has suddenly started
triggering in there.
I have a sledgehammer fix (below) which Ingo went all complicated about and
I assumed he had it in hand, but I can't see any patches anywhere?
I'd expect the kernel to spit that warning and then proceed with the usual
oops report - that's what it did in Miles Lane's case. But it seems in
your case that the whole oops report simply vanished?
arch/x86/kernel/traps_32.c | 8 ++++----
1 file changed, 4 insertions(+), 4 deletions(-)
diff -puN arch/x86/kernel/traps_32.c~i386-use-raw_smp_processor_id-in-die arch/x86/kernel/traps_32.c
--- a/arch/x86/kernel/traps_32.c~i386-use-raw_smp_processor_id-in-die
+++ a/arch/x86/kernel/traps_32.c
@@ -376,7 +376,7 @@ void die(const char * str, struct pt_reg
console_verbose();
__raw_spin_lock(&die.lock);
raw_local_save_flags(flags);
- die.lock_owner = smp_processor_id();
+ die.lock_owner = raw_smp_processor_id();
die.lock_owner_depth = 0;
bust_spinlocks(1);
}
@@ -636,7 +636,7 @@ static __kprobes void
mem_parity_error(unsigned char reason, struct pt_regs * regs)
{
printk(KERN_EMERG "Uhhuh. NMI received for unknown reason %02x on "
- "CPU %d.\n", reason, smp_processor_id());
+ "CPU %d.\n", reason, raw_smp_processor_id());
printk(KERN_EMERG "You have some hardware problem, likely on the PCI bus.\n");
#if defined(CONFIG_EDAC)
@@ -684,7 +684,7 @@ unknown_nmi_error(unsigned char reason,
}
#endif
printk(KERN_EMERG "Uhhuh. NMI received for unknown reason %02x on "
- "CPU %d.\n", reason, smp_processor_id());
+ "CPU %d.\n", reason, raw_smp_processor_id());
printk(KERN_EMERG "Do you have a strange power saving mode enabled?\n");
if (panic_on_unrecovered_nmi)
panic("NMI: Not continuing");
@@ -708,7 +708,7 @@ void __kprobes die_nmi(struct pt_regs *r
bust_spinlocks(1);
printk(KERN_EMERG "%s", msg);
printk(" on CPU%d, ip %08lx, registers:\n",
- smp_processor_id(), regs->ip);
+ raw_smp_processor_id(), regs->ip);
show_registers(regs);
console_silent();
spin_unlock(&nmi_print_lock);
_
next prev parent reply other threads:[~2007-12-20 22:55 UTC|newest]
Thread overview: 19+ messages / expand[flat|nested] mbox.gz Atom feed top
2007-12-20 22:40 Linux 2.6.24-rc5 x86 architecture no longer Oopses Trond Myklebust
2007-12-20 22:54 ` Andrew Morton [this message]
2007-12-20 22:56 ` Andrew Morton
2007-12-20 23:06 ` Trond Myklebust
2007-12-21 0:55 ` Rafael J. Wysocki
2007-12-21 10:19 ` Ingo Molnar
2007-12-20 23:04 ` Trond Myklebust
2007-12-20 23:47 ` Ingo Molnar
2007-12-21 0:02 ` Andrew Morton
2007-12-21 0:05 ` Ingo Molnar
2007-12-21 0:19 ` Andrew Morton
2007-12-21 0:30 ` Ingo Molnar
2007-12-21 0:40 ` Andrew Morton
2007-12-21 0:44 ` Ingo Molnar
2007-12-21 10:27 ` Ingo Molnar
2007-12-21 10:42 ` Andrew Morton
2007-12-21 11:12 ` Ingo Molnar
2007-12-21 11:34 ` Andrew Morton
2007-12-21 12:31 ` 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=20071220145415.f737e7f3.akpm@linux-foundation.org \
--to=akpm@linux-foundation.org \
--cc=hpa@zytor.com \
--cc=linux-kernel@vger.kernel.org \
--cc=mingo@redhat.com \
--cc=tglx@linutronix.de \
--cc=trond.myklebust@fys.uio.no \
/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