]> git.proxmox.com Git - mirror_ubuntu-artful-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)
committerSeth Forshee <seth.forshee@canonical.com>
Thu, 12 Oct 2017 21:20:10 +0000 (16:20 -0500)
commitb4301dc73405373157af135ee4ad1d6c739bee2c
tree4edb7b624316fb5a6cbb5bc95b62a2a769bbddc9
parent4a8cc91dfb36827abd4e7c4436b2ba6be68ebf82
tracing: Remove RCU work arounds from stack tracer

BugLink: http://bugs.launchpad.net/bugs/1721777
commit 15516c89acce948debc4c598e03c3fee53045797 upstream.

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.

Fixes: 0be964be0 ("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>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Signed-off-by: Seth Forshee <seth.forshee@canonical.com>
kernel/trace/trace_stack.c