Re: [PATCH] tracing/function-return-tracer: Add a barrier toensure return stack index is incremented in memory

From: Ingo Molnar
Date: Sun Nov 16 2008 - 01:43:30 EST



* Frederic Weisbecker <fweisbec@xxxxxxxxx> wrote:

> Impact: Fix possible race condition in ftrace function return tracer
>
> This fixes a possible race condition if index incrementation
> is not immediately flushed in memory.
>
> Thanks for Andi Kleen and Steven Rostedt for pointing out this issue
> and give me this solution.
>
> Signed-off-by: Frederic Weisbecker <fweisbec@xxxxxxxxx>
> Cc: Steven Rostedt <rostedt@xxxxxxxxxxx>

applied, thanks Frederic!

Ingo
--
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/