Steven Rostedt (VMware) e78ca4d347 ftrace: Protect ftrace_graph_hash with ftrace_sync
[ Upstream commit 54a16ff6f2e50775145b210bcd94d62c3c2af117 ]

As function_graph tracer can run when RCU is not "watching", it can not be
protected by synchronize_rcu() it requires running a task on each CPU before
it can be freed. Calling schedule_on_each_cpu(ftrace_sync) needs to be used.

Link: https://lore.kernel.org/r/20200205131110.GT2935@paulmck-ThinkPad-P72

Cc: stable@vger.kernel.org
Fixes: b9b0c831bed26 ("ftrace: Convert graph filter to use hash tables")
Reported-by: "Paul E. McKenney" <paulmck@kernel.org>
Reviewed-by: Joel Fernandes (Google) <joel@joelfernandes.org>
Signed-off-by: Steven Rostedt (VMware) <rostedt@goodmis.org>
Signed-off-by: Sasha Levin <sashal@kernel.org>
2020-02-14 16:32:13 -05:00
..
2019-05-31 06:47:25 -07:00
2019-12-01 09:14:03 +01:00
2018-08-03 07:50:38 +02:00
2019-12-05 15:38:28 +01:00
2018-08-03 07:50:22 +02:00
2017-08-21 12:47:31 -07:00
2020-01-09 10:17:53 +01:00
2018-05-09 09:51:50 +02:00