[PATCH v2 0/2] tracing/synthetic: Harden dynamic string fault handling and length bounds
From: Lee Jones
Date: Thu Dec 03 2026 - 10:24:03 EST
This v2 series is based on trace/fixes (which already contains
"tracing/histograms: Reject non-string fields for synthetic string
fields" from v1 as commit c7868604fda5) and includes the pending
dynamic-string read-fault prerequisite so that both patches apply
cleanly together:
1. tracing/synthetic: Handle dynamic string read faults (previously
sent as <20261109155758.3330810-1-lee@xxxxxxxxxx>)
2. tracing/synthetic: Bound dynamic string copy to reserved length
(reported by Sashiko)
v1 => v2:
- Rebase onto trace/fixes and drop the already-applied histogram patch
- Include the pending read-fault prerequisite as patch 1/2
- Eliminate the duplicated ternary operators when passing dyn_lens[i]
to trace_string()
Cc: linux-trace-kernel@xxxxxxxxxxxxxxx
Cc: Masami Hiramatsu <mhiramat@xxxxxxxxxx>
Cc: Mathieu Desnoyers <mathieu.desnoyers@xxxxxxxxxxxx>
Cc: Steven Rostedt <rostedt@xxxxxxxxxxx>
Cc: Tom Zanussi <tom.zanussi@xxxxxxxxxxxxxxx>
Lee Jones (2):
tracing/synthetic: Handle dynamic string read faults
tracing/synthetic: Bound dynamic string copy to reserved length
kernel/trace/trace_events_synth.c | 63 +++++++++++++++++++++++--------
1 file changed, 48 insertions(+), 15 deletions(-)
--
2.56.1.911.g883d8bcb20-goog