]> git.baikalelectronics.ru Git - kernel.git/commit
ftrace: Check for empty hash and comment the race with registering probes
authorSteven Rostedt (VMware) <rostedt@goodmis.org>
Fri, 30 Aug 2019 20:30:01 +0000 (16:30 -0400)
committerSteven Rostedt (VMware) <rostedt@goodmis.org>
Fri, 30 Aug 2019 20:30:01 +0000 (16:30 -0400)
commit582304dd1827c6a4b5b1a9cbe15d6810b9e2aad9
tree3aa1bf6e2a344b91cc5078abc4fa982f479e914a
parent1b884a9dd407e777a2ccd0a9654544071f3f40de
ftrace: Check for empty hash and comment the race with registering probes

The race between adding a function probe and reading the probes that exist
is very subtle. It needs a comment. Also, the issue can also happen if the
probe has has the EMPTY_HASH as its func_hash.

Cc: stable@vger.kernel.org
Fixes: ecda6e974bbfc ("ftrace: Dynamically create the probe ftrace_ops for the trace_array")
Signed-off-by: Steven Rostedt (VMware) <rostedt@goodmis.org>
kernel/trace/ftrace.c