]> git.proxmox.com Git - mirror_ubuntu-bionic-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)
committerKhalid Elmously <khalid.elmously@canonical.com>
Thu, 26 Sep 2019 04:34:52 +0000 (00:34 -0400)
commit02f72436b1838fb43e9dbe1533eb43790e4e28a4
tree6964cc53629917a966e350c06f4ca9ffdcebf0a7
parenta640e8dd66500614eea87365809e9be2aa3fab51
ftrace: Check for empty hash and comment the race with registering probes

BugLink: https://bugs.launchpad.net/bugs/1843338
commit 372e0d01da71c84dcecf7028598a33813b0d5256 upstream.

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: 7b60f3d876156 ("ftrace: Dynamically create the probe ftrace_ops for the trace_array")
Signed-off-by: Steven Rostedt (VMware) <rostedt@goodmis.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Signed-off-by: Kamal Mostafa <kamal@canonical.com>
Signed-off-by: Khalid Elmously <khalid.elmously@canonical.com>
kernel/trace/ftrace.c