]> git.baikalelectronics.ru Git - kernel.git/commit
tracing: Remove RCU work arounds from stack tracer
authorSteven Rostedt (VMware) <rostedt@goodmis.org>
Thu, 21 Sep 2017 17:00:21 +0000 (13:00 -0400)
committerSteven Rostedt (VMware) <rostedt@goodmis.org>
Sat, 23 Sep 2017 20:50:20 +0000 (16:50 -0400)
commitde7b9c1b382018ca5256df18dc30099ec6bdc272
tree996cec0ae5b0c7dc3c3c98829308abec41fb3ae0
parentc14b2c3027c2c2a0eec757f68bb2dc1d5d0d279a
tracing: Remove RCU work arounds from stack tracer

Currently the stack tracer calls rcu_irq_enter() to make sure RCU
is watching when it records a stack trace. But if the stack tracer
is triggered while tracing inside of a rcu_irq_enter(), calling
rcu_irq_enter() unconditionally can be problematic.

The reason for having rcu_irq_enter() in the first place has been
fixed from within the saving of the stack trace code, and there's no
reason for doing it in the stack tracer itself. Just remove it.

Cc: stable@vger.kernel.org
Fixes: c2507e4c3 ("module: Sanitize RCU usage and locking")
Acked-by: Paul E. McKenney <paulmck@linux.vnet.ibm.com>
Suggested-by: "Paul E. McKenney" <paulmck@linux.vnet.ibm.com>
Signed-off-by: Steven Rostedt (VMware) <rostedt@goodmis.org>
kernel/trace/trace_stack.c