public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
* [for-linus][PATCH 0/3] tracing/ftrace: trace_printk buffer fix and ftrace recursion fixes
@ 2020-10-31 13:06 Steven Rostedt
  2020-10-31 13:06 ` [for-linus][PATCH 1/3] tracing: Fix out of bounds write in get_trace_buf Steven Rostedt
                   ` (2 more replies)
  0 siblings, 3 replies; 4+ messages in thread
From: Steven Rostedt @ 2020-10-31 13:06 UTC (permalink / raw)
  To: linux-kernel
  Cc: Ingo Molnar, Andrew Morton, Miroslav Benes, Josh Poimboeuf,
	Jiri Kosina, Petr Mladek

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(-)

^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2020-10-31 13:09 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2020-10-31 13:06 [for-linus][PATCH 0/3] tracing/ftrace: trace_printk buffer fix and ftrace recursion fixes Steven Rostedt
2020-10-31 13:06 ` [for-linus][PATCH 1/3] tracing: Fix out of bounds write in get_trace_buf Steven Rostedt
2020-10-31 13:06 ` [for-linus][PATCH 2/3] ftrace: Fix recursion check for NMI test Steven Rostedt
2020-10-31 13:06 ` [for-linus][PATCH 3/3] ftrace: Handle tracing when switching between context Steven Rostedt

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox