]> git.baikalelectronics.ru Git - kernel.git/commit
tracing: Add rcu dereference annotation for test func that touches filter->prog
authorSteven Rostedt (VMware) <rostedt@goodmis.org>
Thu, 5 Apr 2018 19:20:26 +0000 (15:20 -0400)
committerSteven Rostedt (VMware) <rostedt@goodmis.org>
Fri, 6 Apr 2018 12:56:54 +0000 (08:56 -0400)
commit13c2cbaa236cc5f06fae70e4b9fc120a801d8822
tree0ffd18852842140a94c7d4b745f4beee7a75d628
parent7d13550f02157033b7cba8621198d82b9f2e1879
tracing: Add rcu dereference annotation for test func that touches filter->prog

A boot up test function update_pred_fn() dereferences filter->prog without
the proper rcu annotation.

To do this, we must also take the event_mutex first. Normally, this isn't
needed because this test function can not race with other use cases that
touch the event filters (it is disabled if any events are enabled).

Reported-by: kbuild test robot <fengguang.wu@intel.com>
Fixes: 4b7d9a3bf6ce2 ("tracing: Rewrite filter logic to be simpler and faster")
Signed-off-by: Steven Rostedt (VMware) <rostedt@goodmis.org>
kernel/trace/trace_events_filter.c