Skip to content

tracing/ftrace: trace_printk buffer fix and ftrace recursion fixes

Steven Rostedt lkml stable 1 version New

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest3 patches 0 repliesNew

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/3tracing: Fix out of bounds write in get_trace_bufkernel/trace/trace.c+1 -10 replies
2/3ftrace: Fix recursion check for NMI testkernel/trace/trace.h+2 -10 replies
3/3ftrace: Handle tracing when switching between contextkernel/trace/trace.h kernel/trace/trace_selftest.c+28 -40 replies

Reviews trailers per patch

No Reviewed-by, Acked-by or Tested-by trailers for v1 yet.

Read the v1 thread

Cover letter [for-linus][PATCH 0/3] tracing/ftrace: trace_printk buffer fix and ftrace recursion fixes

The indexing of the different context buffers had an off by one error.

The recursion protection for ftrace callbacks had two bugs.
One that would make NMIs always appear to be recursing The other is trasitions between interrupt context could also cause false positives and miss tracing those functions.

Qiujun Huang (1):
tracing: Fix out of bounds write in get_trace_buf

Steven Rostedt (VMware) (2):
ftrace: Fix recursion check for NMI test
ftrace: Handle tracing when switching between context

----

 kernel/trace/trace.c          |  2 +-
 kernel/trace/trace.h          | 26 +++++++++++++++++++++++---
 kernel/trace/trace_selftest.c |  9 +++++++--
 3 files changed, 31 insertions(+), 6 deletions(-)