diff options
author | Oleg Nesterov <oleg@redhat.com> | 2013-07-26 19:25:36 +0200 |
---|---|---|
committer | Steven Rostedt <rostedt@goodmis.org> | 2013-07-30 04:05:40 +0200 |
commit | bc6f6b08dee5645770efb4b76186ded313f23752 (patch) | |
tree | 4f2a94646a39b8454e21bed38f093f73c8752345 /kernel/sys.c | |
parent | tracing: Turn event/id->i_private into call->event.type (diff) | |
download | linux-bc6f6b08dee5645770efb4b76186ded313f23752.tar.xz linux-bc6f6b08dee5645770efb4b76186ded313f23752.zip |
tracing: Change event_enable/disable_read() to verify i_private != NULL
tracing_open_generic_file() is racy, ftrace_event_file can be
already freed by rmdir or trace_remove_event_call().
Change event_enable_read() and event_disable_read() to read and
verify "file = i_private" under event_mutex.
This fixes nothing, but now we can change debugfs_remove("enable")
callers to nullify ->i_private and fix the the problem.
Link: http://lkml.kernel.org/r/20130726172536.GA3612@redhat.com
Reviewed-by: Masami Hiramatsu <masami.hiramatsu.pt@hitachi.com>
Signed-off-by: Oleg Nesterov <oleg@redhat.com>
Signed-off-by: Steven Rostedt <rostedt@goodmis.org>
Diffstat (limited to 'kernel/sys.c')
0 files changed, 0 insertions, 0 deletions