diff options
author | Steven Rostedt (VMware) <rostedt@goodmis.org> | 2017-05-16 14:58:35 -0400 |
---|---|---|
committer | Steven Rostedt (VMware) <rostedt@goodmis.org> | 2017-05-17 21:55:58 -0400 |
commit | 545a028190dae4437aac4f86da7c8ab20857647c (patch) | |
tree | b0c28f76813590769ca2bdedf85071f97dc59023 /kernel/trace/trace.c | |
parent | b172296b90b799c8b634521c248e9316581c8154 (diff) | |
download | op-kernel-dev-545a028190dae4437aac4f86da7c8ab20857647c.zip op-kernel-dev-545a028190dae4437aac4f86da7c8ab20857647c.tar.gz |
kprobes: Document how optimized kprobes are removed from module unload
Thomas discovered a bug where the kprobe trace tests had a race
condition where the kprobe_optimizer called from a delayed work queue
that does the optimizing and "unoptimizing" of a kprobe, can try to
modify the text after it has been freed by the init code.
The kprobe trace selftest is a special case, and Thomas and myself
investigated to see if there's a chance that this could also be a bug
with module unloading, as the code is not obvious to how it handles
this. After adding lots of printks, I figured it out. Thomas suggested
that this should be commented so that others will not have to go
through this exercise again.
Link: http://lkml.kernel.org/r/20170516145835.3827d3aa@gandalf.local.home
Acked-by: Masami Hiramatsu <mhiramat@kernel.org>
Suggested-by: Thomas Gleixner <tglx@linutronix.de>
Signed-off-by: Steven Rostedt (VMware) <rostedt@goodmis.org>
Diffstat (limited to 'kernel/trace/trace.c')
0 files changed, 0 insertions, 0 deletions