Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1766002AbZAQArs (ORCPT ); Fri, 16 Jan 2009 19:47:48 -0500 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S1754246AbZAQArg (ORCPT ); Fri, 16 Jan 2009 19:47:36 -0500 Received: from hrndva-omtalb.mail.rr.com ([71.74.56.125]:47124 "EHLO hrndva-omtalb.mail.rr.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753913AbZAQArf (ORCPT ); Fri, 16 Jan 2009 19:47:35 -0500 Date: Fri, 16 Jan 2009 19:47:33 -0500 (EST) From: Steven Rostedt X-X-Sender: rostedt@gandalf.stny.rr.com To: Eric Paris cc: linux-kernel@vger.kernel.org, linux-acpi@vger.kernel.org Subject: Re: WARNING: at kernel/trace/ftrace.c:434 ftrace_bug+0xdb/0x2b1() in 2.6.29-rc1-next-20090116 In-Reply-To: <1232144843.6614.14.camel@localhost.localdomain> Message-ID: References: <1232144843.6614.14.camel@localhost.localdomain> User-Agent: Alpine 1.10 (DEB 962 2008-03-14) MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 4270 Lines: 88 On Fri, 16 Jan 2009, Eric Paris wrote: > Running 2.6.29-rc1-next-20090116 on vmware server x86_64 I see this at > boot up. Doesn't appear to cause any problem, no idea what kind of > thermal problem this is causing me on my VM :) > > The last linux-next kernel I ran was 2.6.29-rc1-next-20090114 and I do > not remember seeing this. But me not remembering doesn't mean it wasn't > there..... > > Any information I can collect or what I can do just let me know. > > -Eric > > [ 0.036825] ACPI: Core revision 20081204 > [ 0.098568] ftrace: converting mcount calls to 0f 1f 44 00 00 > [ 0.099101] ftrace: allocating 21076 entries in 166 pages > [ 0.105983] ------------[ cut here ]------------ > [ 0.105983] WARNING: at kernel/trace/ftrace.c:434 ftrace_bug+0xdb/0x2b1() > [ 0.105983] Hardware name: VMware Virtual Platform > [ 0.105983] Modules linked in: > [ 0.105983] Pid: 0, comm: swapper Not tainted 2.6.29-rc1-next-20090116 #252 > [ 0.105983] Call Trace: > [ 0.105983] [] warn_slowpath+0xd8/0xf7 > [ 0.105983] [] ? dump_trace+0x26b/0x27a > [ 0.105983] [] ? find_usage_backwards+0x2c/0xf2 > [ 0.105983] [] ? check_usage_backwards+0x2e/0x52 > [ 0.105983] [] ? graph_unlock+0x6b/0x77 > [ 0.105983] [] ? mark_lock+0x34b/0x35b > [ 0.105983] [] ? mark_held_locks+0x52/0x72 > [ 0.105983] [] ? __mutex_lock_common+0x41a/0x43f > [ 0.105983] [] ? sched_clock+0x9/0xc > [ 0.105983] [] ? pagefault_enable+0x9/0x1a > [ 0.105983] [] ? probe_kernel_write+0x4e/0x74 > [ 0.105983] [] ? pagefault_enable+0x9/0x1a > [ 0.105983] [] ? probe_kernel_read+0x4e/0x78 > [ 0.105983] [] ? acpi_thermal_notify+0x7/0xc1 > [ 0.105983] [] ? ftrace_modify_code+0x46/0x75 > [ 0.105983] [] ? acpi_thermal_notify+0x7/0xc1 > [ 0.105983] [] ftrace_bug+0xdb/0x2b1 > [ 0.105983] [] ? acpi_thermal_notify+0x7/0xc1 > [ 0.105983] [] ftrace_convert_nops+0x23d/0x2da > [ 0.105983] [] ftrace_init+0x116/0x121 > [ 0.105983] [] ? acpi_enable_subsystem+0x3c/0x90 > [ 0.105983] [] start_kernel+0x40e/0x41e > [ 0.105983] [] ? early_idt_handler+0x0/0x71 > [ 0.105983] [] x86_64_start_reservations+0xae/0xb2 > [ 0.105983] [] x86_64_start_kernel+0xe9/0xf4 > [ 0.105983] ---[ end trace a7919e7f17c0a725 ]--- > [ 0.105983] ftrace failed to modify [] acpi_thermal_notify+0x7/0xc1 > [ 0.105983] actual: 0f:1f:44:00:00 Hmm, someone reported something similar before too. You don't need to worry, but this is one of the function tracer self tests failing. In which case, you will loose the ability to use the function tracer. What happen is that on boot up, the dynamic function tracer will convert all calls to mcount into a nop. When it does this, it does several self checks to make sure it is not destroying anything, (remember a e1000e bug?) If it detects anything abnormal, it aborts and this is one of those detections triggering. When it went to modify the location to the call of mcount in acpi_thermal_notify into a nop, it checked to see if that loctation was indeed a call to mcount. But it was not. Instead it was already a nop! This means that it somehow converted the acpi_thermal_notify twice, and the second time it failed because it was not what it expected. If you still see this on boot up, could you cat out: # mount -t debugfs none /sys/kernel/debug # cat /sys/kernel/debug/tracing/dyn_ftrace_total_info And perhaps, if possible, could I get a copy of the vmlinux that was built, and a CONFIG to go with it. Thanks, -- Steve -- 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/