]> git.baikalelectronics.ru Git - kernel.git/commit
ftrace: selftest protect againt max flip
authorSteven Rostedt <rostedt@goodmis.org>
Mon, 12 May 2008 19:20:56 +0000 (21:20 +0200)
committerThomas Gleixner <tglx@linutronix.de>
Fri, 23 May 2008 19:15:59 +0000 (21:15 +0200)
commite48fc9b7e4c22eb1d0d41ef23dd03b2ded608bfd
tree866c4d195207ac37d4477f9ce09d429085532180
parent673263891f9cdadfbc4a59f157e905869c89ba0c
ftrace: selftest protect againt max flip

There is a slight race condition in the selftest where the max update
of the wakeup and irqs/preemption off tests can be doing a max update as
the buffers are being tested. If this happens the system can crash with
a GPF.

This patch adds the max update spinlock around the checking of the
buffers to prevent such a race.

Signed-off-by: Steven Rostedt <srostedt@redhat.com>
Signed-off-by: Ingo Molnar <mingo@elte.hu>
Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
kernel/trace/trace_selftest.c