diff options
| author | Pengpeng Hou <pengpeng@iscas.ac.cn> | 2026-06-11 13:59:45 +0800 |
|---|---|---|
| committer | Steven Rostedt <rostedt@goodmis.org> | 2026-07-28 07:18:49 -0400 |
| commit | 935601a4276f28105498609f7f98aa66e86e9c96 (patch) | |
| tree | 72e2947f2ea53686672f7233996611315344acfe /tools/perf/scripts/python | |
| parent | a5ca27e8ff1c10e949af7cfe474d6d1a08fb5601 (diff) | |
tracing: Bound histogram expression strings with seq_buf
expr_str() allocates a fixed MAX_FILTER_STR_VAL buffer and then builds
expression names with a series of raw strcat() appends. Nested operands,
constants, field flags, and generated field names can push the rendered
string past that fixed limit before the name is attached to the hist
field.
Build expression strings with seq_buf and return -E2BIG when the
rendered name would exceed MAX_FILTER_STR_VAL. This keeps the existing
tracing-side limit while replacing the raw append logic with bounded
construction.
Link: https://patch.msgid.link/20260611055945.22348-4-pengpeng@iscas.ac.cn
Signed-off-by: Pengpeng Hou <pengpeng@iscas.ac.cn>
Signed-off-by: Steven Rostedt <rostedt@goodmis.org>
Diffstat (limited to 'tools/perf/scripts/python')
0 files changed, 0 insertions, 0 deletions
