Re: [PATCH 1/1] tracing: Simplify trace_array_get()

From: Steven Rostedt
Date: Fri Jul 19 2013 - 13:39:58 EST


On Fri, 2013-07-19 at 13:35 -0400, Steven Rostedt wrote:

> What would happen in that case, is that an event might be enabled or
> disabled in another buffer instance. As that can only happen by the root
> user, it would be the root user doing multiple things at the same time
> to cause it. They might get a strange result at worse, but that would
> also mean they were trying to add and delete instances while reading
> those same instances. Bad root, bad!

In fact, I even mentioned this race in the commit log.

http://git.kernel.org/cgit/linux/kernel/git/torvalds/linux.git/commit/kernel/trace/trace.c?id=ff451961a8b2a17667a7bfa39c86fb9b351445db

-- Steve


--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/