Re: [for-next][PATCH 14/14] tracing: Get trace_array ref counts when accessing trace files

2014-04-10 Thread Steven Rostedt
On Tue, 8 Apr 2014 13:32:31 -0400 Steven Rostedt wrote: > On Tue, 08 Apr 2014 13:11:32 -0400 > Sasha Levin wrote: > > > >> > > >> Although when I mount everything for the fuzzer I do it with > > >> '-onoexec,nosuid' > > >> and the fuzzer is banned from testing mount(), so I'm not sure how it

Re: [for-next][PATCH 14/14] tracing: Get trace_array ref counts when accessing trace files

2014-04-10 Thread Steven Rostedt
On Tue, 8 Apr 2014 13:32:31 -0400 Steven Rostedt rost...@goodmis.org wrote: On Tue, 08 Apr 2014 13:11:32 -0400 Sasha Levin sasha.le...@oracle.com wrote: Although when I mount everything for the fuzzer I do it with '-onoexec,nosuid' and the fuzzer is banned from testing mount(),

Re: [for-next][PATCH 14/14] tracing: Get trace_array ref counts when accessing trace files

2014-04-08 Thread Steven Rostedt
On Tue, 08 Apr 2014 13:11:32 -0400 Sasha Levin wrote: > >> > >> Although when I mount everything for the fuzzer I do it with > >> '-onoexec,nosuid' > >> and the fuzzer is banned from testing mount(), so I'm not sure how it would > >> do that thing on it's own. > > > > What does the -onoexec

Re: [for-next][PATCH 14/14] tracing: Get trace_array ref counts when accessing trace files

2014-04-08 Thread Sasha Levin
On 04/08/2014 01:06 PM, Steven Rostedt wrote: > On Tue, 08 Apr 2014 12:52:04 -0400 > Sasha Levin wrote: > >> On 04/08/2014 12:36 PM, Steven Rostedt wrote: >>> On Sat, 05 Apr 2014 10:59:10 -0400 >>> Sasha Levin wrote: >>> On 07/02/2013 04:22 PM, Steven Rostedt wrote: > From: "Steven

Re: [for-next][PATCH 14/14] tracing: Get trace_array ref counts when accessing trace files

2014-04-08 Thread Steven Rostedt
On Tue, 08 Apr 2014 12:52:04 -0400 Sasha Levin wrote: > On 04/08/2014 12:36 PM, Steven Rostedt wrote: > > On Sat, 05 Apr 2014 10:59:10 -0400 > > Sasha Levin wrote: > > > >> On 07/02/2013 04:22 PM, Steven Rostedt wrote: > >>> From: "Steven Rostedt (Red Hat)" > >>> > >>> When a trace file is

Re: [for-next][PATCH 14/14] tracing: Get trace_array ref counts when accessing trace files

2014-04-08 Thread Sasha Levin
On 04/08/2014 12:36 PM, Steven Rostedt wrote: > On Sat, 05 Apr 2014 10:59:10 -0400 > Sasha Levin wrote: > >> On 07/02/2013 04:22 PM, Steven Rostedt wrote: >>> From: "Steven Rostedt (Red Hat)" >>> >>> When a trace file is opened that may access a trace array, it must >>> increment its ref count

Re: [for-next][PATCH 14/14] tracing: Get trace_array ref counts when accessing trace files

2014-04-08 Thread Steven Rostedt
On Sat, 05 Apr 2014 10:59:10 -0400 Sasha Levin wrote: > On 07/02/2013 04:22 PM, Steven Rostedt wrote: > > From: "Steven Rostedt (Red Hat)" > > > > When a trace file is opened that may access a trace array, it must > > increment its ref count to prevent it from being deleted. > > > > Cc:

Re: [for-next][PATCH 14/14] tracing: Get trace_array ref counts when accessing trace files

2014-04-08 Thread Sasha Levin
On 04/08/2014 11:42 AM, Steven Rostedt wrote: > On Sat, 05 Apr 2014 16:03:13 -0400 > Sasha Levin wrote: > >>> Thanks for the update. I run all my tests with lockdep enabled. I'm >>> wondering if your config enable a lock that I don't have in my configs. >>> Could you send me your .config

Re: [for-next][PATCH 14/14] tracing: Get trace_array ref counts when accessing trace files

2014-04-08 Thread Steven Rostedt
On Sat, 05 Apr 2014 16:03:13 -0400 Sasha Levin wrote: > > Thanks for the update. I run all my tests with lockdep enabled. I'm > > wondering if your config enable a lock that I don't have in my configs. > > Could you send me your .config please. > > Attached. > Do you have any other configs

Re: [for-next][PATCH 14/14] tracing: Get trace_array ref counts when accessing trace files

2014-04-08 Thread Steven Rostedt
On Sat, 05 Apr 2014 16:03:13 -0400 Sasha Levin sasha.le...@oracle.com wrote: Thanks for the update. I run all my tests with lockdep enabled. I'm wondering if your config enable a lock that I don't have in my configs. Could you send me your .config please. Attached. Do you have any

Re: [for-next][PATCH 14/14] tracing: Get trace_array ref counts when accessing trace files

2014-04-08 Thread Sasha Levin
On 04/08/2014 11:42 AM, Steven Rostedt wrote: On Sat, 05 Apr 2014 16:03:13 -0400 Sasha Levin sasha.le...@oracle.com wrote: Thanks for the update. I run all my tests with lockdep enabled. I'm wondering if your config enable a lock that I don't have in my configs. Could you send me your

Re: [for-next][PATCH 14/14] tracing: Get trace_array ref counts when accessing trace files

2014-04-08 Thread Steven Rostedt
On Sat, 05 Apr 2014 10:59:10 -0400 Sasha Levin sasha.le...@oracle.com wrote: On 07/02/2013 04:22 PM, Steven Rostedt wrote: From: Steven Rostedt (Red Hat) rost...@goodmis.org When a trace file is opened that may access a trace array, it must increment its ref count to prevent it from

Re: [for-next][PATCH 14/14] tracing: Get trace_array ref counts when accessing trace files

2014-04-08 Thread Sasha Levin
On 04/08/2014 12:36 PM, Steven Rostedt wrote: On Sat, 05 Apr 2014 10:59:10 -0400 Sasha Levin sasha.le...@oracle.com wrote: On 07/02/2013 04:22 PM, Steven Rostedt wrote: From: Steven Rostedt (Red Hat) rost...@goodmis.org When a trace file is opened that may access a trace array, it must

Re: [for-next][PATCH 14/14] tracing: Get trace_array ref counts when accessing trace files

2014-04-08 Thread Steven Rostedt
On Tue, 08 Apr 2014 12:52:04 -0400 Sasha Levin sasha.le...@oracle.com wrote: On 04/08/2014 12:36 PM, Steven Rostedt wrote: On Sat, 05 Apr 2014 10:59:10 -0400 Sasha Levin sasha.le...@oracle.com wrote: On 07/02/2013 04:22 PM, Steven Rostedt wrote: From: Steven Rostedt (Red Hat)

Re: [for-next][PATCH 14/14] tracing: Get trace_array ref counts when accessing trace files

2014-04-08 Thread Sasha Levin
On 04/08/2014 01:06 PM, Steven Rostedt wrote: On Tue, 08 Apr 2014 12:52:04 -0400 Sasha Levin sasha.le...@oracle.com wrote: On 04/08/2014 12:36 PM, Steven Rostedt wrote: On Sat, 05 Apr 2014 10:59:10 -0400 Sasha Levin sasha.le...@oracle.com wrote: On 07/02/2013 04:22 PM, Steven Rostedt

Re: [for-next][PATCH 14/14] tracing: Get trace_array ref counts when accessing trace files

2014-04-08 Thread Steven Rostedt
On Tue, 08 Apr 2014 13:11:32 -0400 Sasha Levin sasha.le...@oracle.com wrote: Although when I mount everything for the fuzzer I do it with '-onoexec,nosuid' and the fuzzer is banned from testing mount(), so I'm not sure how it would do that thing on it's own. What does the -onoexec

Re: [for-next][PATCH 14/14] tracing: Get trace_array ref counts when accessing trace files

2014-04-05 Thread Sasha Levin
On 04/05/2014 02:33 PM, Steven Rostedt wrote: > On Sat, 05 Apr 2014 10:59:10 -0400 > Sasha Levin wrote: > >> On 07/02/2013 04:22 PM, Steven Rostedt wrote: >>> From: "Steven Rostedt (Red Hat)" >>> >>> When a trace file is opened that may access a trace array, it must >>> increment its ref count

Re: [for-next][PATCH 14/14] tracing: Get trace_array ref counts when accessing trace files

2014-04-05 Thread Steven Rostedt
On Sat, 05 Apr 2014 10:59:10 -0400 Sasha Levin wrote: > [ 5644.290783] Chain exists of: > trace_types_lock --> >mutex/1 --> >cred_guard_mutex > > [ 5644.290783] Possible unsafe locking scenario: > [ 5644.290783] > [ 5644.290783]CPU0CPU1 > [ 5644.290783]

Re: [for-next][PATCH 14/14] tracing: Get trace_array ref counts when accessing trace files

2014-04-05 Thread Steven Rostedt
On Sat, 05 Apr 2014 10:59:10 -0400 Sasha Levin wrote: > On 07/02/2013 04:22 PM, Steven Rostedt wrote: > > From: "Steven Rostedt (Red Hat)" > > > > When a trace file is opened that may access a trace array, it must > > increment its ref count to prevent it from being deleted. > > > > Cc:

Re: [for-next][PATCH 14/14] tracing: Get trace_array ref counts when accessing trace files

2014-04-05 Thread Sasha Levin
On 07/02/2013 04:22 PM, Steven Rostedt wrote: > From: "Steven Rostedt (Red Hat)" > > When a trace file is opened that may access a trace array, it must > increment its ref count to prevent it from being deleted. > > Cc: sta...@vger.kernel.org # 3.10 > Reported-by: Alexander Lam >

Re: [for-next][PATCH 14/14] tracing: Get trace_array ref counts when accessing trace files

2014-04-05 Thread Sasha Levin
On 07/02/2013 04:22 PM, Steven Rostedt wrote: From: Steven Rostedt (Red Hat) rost...@goodmis.org When a trace file is opened that may access a trace array, it must increment its ref count to prevent it from being deleted. Cc: sta...@vger.kernel.org # 3.10 Reported-by: Alexander Lam

Re: [for-next][PATCH 14/14] tracing: Get trace_array ref counts when accessing trace files

2014-04-05 Thread Steven Rostedt
On Sat, 05 Apr 2014 10:59:10 -0400 Sasha Levin sasha.le...@oracle.com wrote: On 07/02/2013 04:22 PM, Steven Rostedt wrote: From: Steven Rostedt (Red Hat) rost...@goodmis.org When a trace file is opened that may access a trace array, it must increment its ref count to prevent it from

Re: [for-next][PATCH 14/14] tracing: Get trace_array ref counts when accessing trace files

2014-04-05 Thread Steven Rostedt
On Sat, 05 Apr 2014 10:59:10 -0400 Sasha Levin sasha.le...@oracle.com wrote: [ 5644.290783] Chain exists of: trace_types_lock -- pipe-mutex/1 -- sig-cred_guard_mutex [ 5644.290783] Possible unsafe locking scenario: [ 5644.290783] [ 5644.290783]CPU0CPU1 [

Re: [for-next][PATCH 14/14] tracing: Get trace_array ref counts when accessing trace files

2014-04-05 Thread Sasha Levin
On 04/05/2014 02:33 PM, Steven Rostedt wrote: On Sat, 05 Apr 2014 10:59:10 -0400 Sasha Levin sasha.le...@oracle.com wrote: On 07/02/2013 04:22 PM, Steven Rostedt wrote: From: Steven Rostedt (Red Hat) rost...@goodmis.org When a trace file is opened that may access a trace array, it must

[for-next][PATCH 14/14] tracing: Get trace_array ref counts when accessing trace files

2013-07-02 Thread Steven Rostedt
From: "Steven Rostedt (Red Hat)" When a trace file is opened that may access a trace array, it must increment its ref count to prevent it from being deleted. Cc: sta...@vger.kernel.org # 3.10 Reported-by: Alexander Lam Signed-off-by: Steven Rostedt --- kernel/trace/trace.c | 121

[for-next][PATCH 14/14] tracing: Get trace_array ref counts when accessing trace files

2013-07-02 Thread Steven Rostedt
From: Steven Rostedt (Red Hat) rost...@goodmis.org When a trace file is opened that may access a trace array, it must increment its ref count to prevent it from being deleted. Cc: sta...@vger.kernel.org # 3.10 Reported-by: Alexander Lam a...@google.com Signed-off-by: Steven Rostedt