diff options
author | Steven Rostedt (VMware) <rostedt@goodmis.org> | 2017-02-02 20:16:29 -0500 |
---|---|---|
committer | Steven Rostedt (VMware) <rostedt@goodmis.org> | 2017-02-03 10:59:42 -0500 |
commit | 649b988b12ddb9aed16047a3d9bb4d7bfdb47221 (patch) | |
tree | 00dd85ce86d799d9deeb26987c77fb6542f0e38a /sound | |
parent | 0e684b6578ee463ecb5c9a1cd0c20069f063d9f0 (diff) |
ftrace: Do not hold references of ftrace_graph_{notrace_}hash out of graph_lock
The hashs ftrace_graph_hash and ftrace_graph_notrace_hash are modified
within the graph_lock being held. Holding a pointer to them and passing them
along can lead to a use of a stale pointer (fgd->hash). Move assigning the
pointer and its use to within the holding of the lock. Note, it's an
rcu_sched protected data, and other instances of referencing them are done
with preemption disabled. But the file manipuation code must be protected by
the lock.
The fgd->hash pointer is set to NULL when the lock is being released.
Acked-by: Namhyung Kim <namhyung@kernel.org>
Signed-off-by: Steven Rostedt (VMware) <rostedt@goodmis.org>
Diffstat (limited to 'sound')
0 files changed, 0 insertions, 0 deletions