Skip to content
Commit ffdaa358 authored by Abhishek Sagar's avatar Abhishek Sagar Committed by Thomas Gleixner
Browse files

ftrace: safe traversal of ftrace_hash hlist



Hi Steven,

I noticed that concurrent instances of ftrace_record_ip()
have a race between ftrace_hash list traversal during
ftrace_ip_in_hash() (before acquiring ftrace_shutdown_lock)
and ftrace_add_hash(). If it's so then this should fix it.

Signed-off-by: default avatarAbhishek Sagar <sagar.abhishek@gmail.com>
Cc: rostedt@goodmis.org
Signed-off-by: default avatarThomas Gleixner <tglx@linutronix.de>
parent ccbfac29
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment