From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S932323Ab2IDPef (ORCPT ); Tue, 4 Sep 2012 11:34:35 -0400 Received: from [213.199.154.206] ([213.199.154.206]:15787 "EHLO am1outboundpool.messaging.microsoft.com" rhost-flags-FAIL-FAIL-OK-OK) by vger.kernel.org with ESMTP id S932181Ab2IDPee (ORCPT ); Tue, 4 Sep 2012 11:34:34 -0400 X-Forefront-Antispam-Report: CIP:163.181.249.108;KIP:(null);UIP:(null);IPV:NLI;H:ausb3twp01.amd.com;RD:none;EFVD:NLI X-SpamScore: -8 X-BigFish: VPS-8(zz98dI936eI1433M1432Izz1202hzzz2dh668h839h944hd25hf0ah11b5h121eh1220h1155h) X-WSS-ID: 0M9U0JG-01-EI8-02 X-M-MSG: Date: Tue, 4 Sep 2012 17:33:12 +0200 From: Robert Richter To: Steven Rostedt CC: Ingo Molnar , LKML Subject: Re: i386, v3.6-rc3: Kernel panic - not syncing: Fatal exception in interrupt Message-ID: <20120904153312.GV8285@erda.amd.com> References: <20120827151427.GE8285@erda.amd.com> <20120828081206.GG8285@erda.amd.com> <1346771776.27919.4.camel@gandalf.local.home> MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Disposition: inline In-Reply-To: <1346771776.27919.4.camel@gandalf.local.home> User-Agent: Mutt/1.5.21 (2010-09-15) X-OriginatorOrg: amd.com Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 04.09.12 11:16:16, Steven Rostedt wrote: > On Tue, 2012-08-28 at 10:12 +0200, Robert Richter wrote: > > BUG: unable to handle kernel NULL pointer dereference at 00000040 > > IP: [] print_context_stack+0x6e/0x8d > > *pde = 00000000 > > Oops: 0000 [#1] SMP > > Modules linked in: > > > > Pid: 15531, comm: perl Not tainted 3.5.0-oprofile-i386-standard-g28a33cb #2 Hewlett-Packard HP xw9400 Workstation/0A1Ch > > EIP: 0060:[] EFLAGS: 00010097 CPU: 3 > > EIP is at print_context_stack+0x6e/0x8d > > EAX: ffffe000 EBX: 00000040 ECX: f4bd1f94 EDX: 00000040 > > ESI: f4bd1f94 EDI: f4bd1f94 EBP: f5517ec0 ESP: f5517ea0 > > DS: 007b ES: 007b FS: 00d8 GS: 0033 SS: 0068 > > CR0: 8005003b CR2: 00000040 CR3: 34403000 CR4: 000007d0 > > DR0: 00000000 DR1: 00000000 DR2: 00000000 DR3: 00000000 > > DR6: ffff0ff0 DR7: 00000400 > > Process perl (pid: 15531, ti=f5516000 task=f4f6bbc0 task.ti=f4bd0000) > > Stack: > > 000003e8 ffffe000 00001ffc f4b8e380 00000000 00000040 f4bd1f94 c1541178 > > f5517ef0 c1003717 c1541178 f5517f04 00000000 f5517edc 00000000 00000000 > > f5517ee8 f4bd1f94 f5517fc4 00000001 f5517f1c c12d3ba4 00000000 c1541178 > > Call Trace: > > [] dump_trace+0x7b/0xa1 > > [] x86_backtrace+0x40/0x88 > > [] ? oprofile_add_sample+0x56/0x84 > > [] oprofile_add_sample+0x75/0x84 > > [] op_amd_check_ctrs+0x46/0x260 > > [] ? wake_up_worker+0x19/0x1b > > [] ? insert_work+0x58/0x5c > > [] profile_exceptions_notify+0x23/0x4c > > [] nmi_handle+0x31/0x4a > > [] ? ftrace_define_fields_irq_handler_entry+0x45/0x45 > > [] do_nmi+0xa9/0x304 > > [] ? run_timer_softirq+0x2a/0x1f5 > > [] ? ftrace_define_fields_irq_handler_entry+0x45/0x45 > > [] nmi_stack_correct+0x28/0x2d > > [] ? ftrace_define_fields_irq_handler_entry+0x45/0x45 > > [] ? do_softirq+0x4b/0x7f > > > > [] irq_exit+0x35/0x5b > > [] smp_apic_timer_interrupt+0x6c/0x7a > > [] apic_timer_interrupt+0x2a/0x30 > > Code: 89 fe eb 08 31 c9 8b 45 0c ff 55 ec 83 c3 04 83 7d 10 00 74 0c 3b 5d 10 73 26 3b 5d e4 73 0c eb 1f 3b 5d f0 76 1a 3b 5d e8 73 15 <8b> 13 89 d0 89 55 e0 e8 9d 16 03 00 85 c0 8b 55 e0 75 a6 eb cc > > EIP: [] print_context_stack+0x6e/0x8d SS:ESP 0068:f5517ea0 > > CR2: 0000000000000040 > > ---[ end trace 0cce5d2b7aa480ce ]--- > > Kernel panic - not syncing: Fatal exception in interrupt > > Could you send me the config file and post the entire dmesg somewhere. Wei found the root cause of this that is a wrong calcuation in kernel_stack_pointer() in softirq context for i386. I sent a fix, see my today's mail with subject: Re: [PATCH 1/1] x86/oprofile: Fix the calltrace upon profiling some specified events with oprofile. -Robert -- Advanced Micro Devices, Inc. Operating System Research Center