Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1755572Ab3ILSjc (ORCPT ); Thu, 12 Sep 2013 14:39:32 -0400 Received: from mx1.redhat.com ([209.132.183.28]:64257 "EHLO mx1.redhat.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1754637Ab3ILSja (ORCPT ); Thu, 12 Sep 2013 14:39:30 -0400 Date: Thu, 12 Sep 2013 14:38:49 -0400 From: Dave Jones To: Steven Rostedt Cc: Linux Kernel , Peter Zijlstra , Frederic Weisbecker , Ingo Molnar Subject: Re: trinity finds ftrace/perf bug. Film at 11. Message-ID: <20130912183849.GA16674@redhat.com> Mail-Followup-To: Dave Jones , Steven Rostedt , Linux Kernel , Peter Zijlstra , Frederic Weisbecker , Ingo Molnar References: <20130911135434.GA678@redhat.com> <20130912141913.2ffc7077@gandalf.local.home> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20130912141913.2ffc7077@gandalf.local.home> User-Agent: Mutt/1.5.21 (2010-09-15) Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 2192 Lines: 44 On Thu, Sep 12, 2013 at 02:19:13PM -0400, Steven Rostedt wrote: > > This is something that either Peter or Frederic need to look at. I spent yesterday trying to bisect this, but kept running into other perf/ftrace traces, which makes it pretty much impossible. The current one I'm staring at is this from LIST_DEBUG.. list_del corruption. next->prev should be prev (ffff88000fb812b0), but was ffff88000fb812b0. (next=ffff88009df8b7b0). The sharp eyed will notice that those first two addresses are actually the same. So we matched the next->prev != prev test, but at the time we got to the printk that follows in the WARN, the inverse was true. Smells like a race of some kind. [ 2481.228418] Call Trace: [ 2481.232705] [] dump_stack+0x54/0x74 [ 2481.237025] [] warn_slowpath_common+0x7d/0xa0 [ 2481.241357] [] warn_slowpath_fmt+0x4c/0x50 [ 2481.245637] [] ? warn_slowpath_fmt+0x5/0x50 [ 2481.249890] [] __list_del_entry+0x62/0xf0 [ 2481.254109] [] list_del_event+0xc8/0xe0 [ 2481.258310] [] perf_remove_from_context+0x8b/0xf0 [ 2481.262497] [] perf_event_release_kernel+0x54/0x90 [ 2481.266688] [] put_event+0x133/0x1c0 [ 2481.270866] [] ? put_event+0x30/0x1c0 [ 2481.275066] [] perf_release+0x10/0x20 [ 2481.279277] [] __fput+0xfa/0x2e0 [ 2481.283488] [] ____fput+0xe/0x10 [ 2481.287713] [] task_work_run+0xac/0xe0 [ 2481.291958] [] do_exit+0x2cc/0xcc0 [ 2481.296194] [] ? ftrace_call+0x5/0x2f [ 2481.300435] [] do_group_exit+0x4c/0xc0 [ 2481.304654] [] SyS_exit_group+0x14/0x20 [ 2481.308857] [] tracesys+0xdd/0xe2 [ 2481.313051] ---[ end trace fa3e551eb20e0c0f ]--- Dave -- 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/