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

From: Steven Rostedt
Date: Sat Oct 31 2020 - 09:09:48 EST


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