[PATCH 00/19][3.10] ftrace: Final fix of race between open event files and deleting event

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Greg,

There were a lot of changes to fix a few bugs in ftrace. There is a race
where you can crash the kernel (needing root privileges) and it
required a bit of a redesign to fix it. These changes have been in
linux-next for a while, and then it has been in mainline for a while
after that. I think they were all added around 3.11-rc4.

Anyway, I'm finally happy enough with them to push them to 3.10
stable.

I threw in Namhyung Kim's clean up. It's not really that urgent of
a fix, but as it was thrown into the rest of my changes, it's been
tested just as much.

Note, these are all based off of 3.10.9, and tested off of that
too.

-- Steve

Masami Hiramatsu (1):
      tracing/kprobe: Wait for disabling all running kprobe handlers

Namhyung Kim (1):
      tracing: Do not call kmem_cache_free() on allocation failure

Oleg Nesterov (13):
      tracing: Introduce trace_create_cpu_file() and tracing_get_cpu()
      tracing: Change tracing_pipe_fops() to rely on tracing_get_cpu()
      tracing: Change tracing_buffers_fops to rely on tracing_get_cpu()
      tracing: Change tracing_stats_fops to rely on tracing_get_cpu()
      tracing: Change tracing_entries_fops to rely on tracing_get_cpu()
      tracing: Change tracing_fops/snapshot_fops to rely on tracing_get_cpu()
      tracing: Turn event/id->i_private into call->event.type
      tracing: Change event_enable/disable_read() to verify i_private != NULL
      tracing: Change event_filter_read/write to verify i_private != NULL
      tracing: Change f_start() to take event_mutex and verify i_private != NULL
      tracing: Introduce remove_event_file_dir()
      tracing: Change remove_event_file_dir() to clear "d_subdirs"->i_private
      tracing: trace_remove_event_call() should fail if call/file is in use

Steven Rostedt (Red Hat) (4):
      ftrace: Add check for NULL regs if ops has SAVE_REGS set
      tracing/kprobes: Fail to unregister if probe event files are in use
      tracing/uprobes: Fail to unregister if probe event files are in use
      ftrace: Check module functions being traced on reload

----
 include/linux/ftrace_event.h       |    2 +-
 kernel/trace/ftrace.c              |   89 +++++++++++++---
 kernel/trace/trace.c               |  173 +++++++++++++++----------------
 kernel/trace/trace_events.c        |  198 ++++++++++++++++++++++--------------
 kernel/trace/trace_events_filter.c |   17 ++--
 kernel/trace/trace_kprobe.c        |   42 ++++++--
 kernel/trace/trace_uprobe.c        |   51 +++++++---
 7 files changed, 353 insertions(+), 219 deletions(-)
--
To unsubscribe from this list: send the line "unsubscribe stable" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html




[Index of Archives]     [Linux Kernel]     [Kernel Development Newbies]     [Linux USB Devel]     [Video for Linux]     [Linux Audio Users]     [Yosemite Hiking]     [Linux Kernel]     [Linux SCSI]