[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-Id: <1260278905.2165.20.camel@frodo>
Date: Tue, 08 Dec 2009 08:28:25 -0500
From: Steven Rostedt <rostedt@...dmis.org>
To: Li Zefan <lizf@...fujitsu.com>
Cc: Frederic Weisbecker <fweisbec@...il.com>,
Ingo Molnar <mingo@...e.hu>,
LKML <linux-kernel@...r.kernel.org>
Subject: Re: [PATCH 05/13] ftrace: Call trace_parser_clear() properly
On Tue, 2009-12-08 at 18:03 +0800, Li Zefan wrote:
> >
> > I'm missing something. How that can happen. Anytime we reopen
> > the file, the parser is re-allocated.
> >
>
> It happened at file closing..
>
> static int
> ftrace_regex_release(struct inode *inode, struct file *file, int enable)
> {
> ...
> parser = &iter->parser;
> if (trace_parser_loaded(parser)) {
> parser->buffer[parser->idx] = 0;
> /* here ! */
> ftrace_match_records(parser->buffer, parser->idx, enable);
> }
> ...
> }
>
> > I guess that happens if you open in rw mode? But not using the
> > example in the changelog?
>
> I've confirmed that example I was using can reveal this bug.
This explanation should have been in the change log. I'll add it.
Thanks,
-- Steve
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/
Powered by blists - more mailing lists