Linus, Namhyung found and fixed another nasty bug, where you can crash the kernel with: echo 1234 | tee -a /sys/kernel/debug/tracing/set_ftrace_pid
Luckily, only root has permissions to write to that file. I also added a fix on top of Namhyung's as his patch added a reference outside of the DYNAMIC_FTRACE to a function that is only defined in DYNAMIC_FTRACE. This fixes compiling with FUNCTION_TRACING and without DYNAMIC_FTRACE (although I don't know who does that anymore). -- Steve Please pull the latest trace-fixes-v3.9-rc-v3 tree, which can be found at: git://git.kernel.org/pub/scm/linux/kernel/git/rostedt/linux-trace.git trace-fixes-v3.9-rc-v3 Head SHA1: 0e1bb617b40659414778baf3203c2ea0dcda1ca7 Namhyung Kim (1): tracing: Fix possible NULL pointer dereferences Steven Rostedt (Red Hat) (1): ftrace: Move ftrace_filter_lseek out of CONFIG_DYNAMIC_FTRACE section ---- include/linux/ftrace.h | 3 ++- kernel/trace/ftrace.c | 36 ++++++++++++++++++------------------ kernel/trace/trace_stack.c | 2 +- 3 files changed, 21 insertions(+), 20 deletions(-)
signature.asc
Description: This is a digitally signed message part