summaryrefslogtreecommitdiff
path: root/include/linux/workqueue_api.h
diff options
context:
space:
mode:
authorYifan Zhang <yfzhang23@stu.pku.edu.cn>2026-11-04 17:56:53 +0800
committerMasami Hiramatsu (Google) <mhiramat@kernel.org>2026-11-07 23:50:25 +0900
commit2fc0b3070d6d5dcecfed43cd0e62aa0fd4b4315c (patch)
tree6d55d850c462ba599ba5a2cb47ab2a26240e3cec /include/linux/workqueue_api.h
parent76a224e04a723af1e2afc185fa0a4b82101f62dd (diff)
tracing/probes: bound symstr stores to reserved length
Traceprobe calculates dynamic string sizes before storing the values. A probed pointer can change between those passes, so fetch_store_symstrlen() can reserve space for a short symbol while fetch_store_symstring() observes a longer one. The store path then overwrites the trace record. Format the symbol into a temporary KSYM_SYMBOL_LEN buffer and copy only the bytes that fit in the reserved field, including a trailing NUL. Update __data_loc with the length actually stored so consumers do not read beyond the truncated value. Link: https://lore.kernel.org/all/179378621331.55520.2052332247156241151@stu.pku.edu.cn/ Fixes: b26a124cbfa8 ("tracing/probes: Add symstr type for dynamic events") Signed-off-by: Yifan Zhang <yfzhang23@stu.pku.edu.cn> Signed-off-by: Masami Hiramatsu (Google) <mhiramat@kernel.org>
Diffstat (limited to 'include/linux/workqueue_api.h')
0 files changed, 0 insertions, 0 deletions