tracing/ftrace: trace_printk buffer fix and ftrace recursion fixes
Get series with b4
b4 am [email protected]Versions newest first
- v1 Latest3 patches 0 repliesNew
Patches in v1 No applies recorded yet
| # | Subject and files | Size | Replies | Applied |
|---|---|---|---|---|
| 1/3 | tracing: Fix out of bounds write in get_trace_bufkernel/ | +1 | 0 replies | |
| 2/3 | ftrace: Fix recursion check for NMI testkernel/ | +2 | 0 replies | |
| 3/3 | ftrace: Handle tracing when switching between contextkernel/ kernel/ | +28 | 0 replies |
Reviews trailers per patch
No Reviewed-by, Acked-by or Tested-by trailers for v1 yet.
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(-)