summaryrefslogtreecommitdiff
path: root/scripts/stackusage
diff options
context:
space:
mode:
authorIan Rogers <irogers@google.com>2026-07-21 16:52:51 -0700
committerNamhyung Kim <namhyung@kernel.org>2026-08-07 09:43:36 -0700
commit505a498a3757f188fe0ddd67b2d26794e8922cc5 (patch)
tree5b9448ce7432d70fb277f144e0f8f2bc7fd52614 /scripts/stackusage
parente46a9b8150c9cd7a41ae963389901a85ec40bea8 (diff)
downloadlinux-505a498a3757f188fe0ddd67b2d26794e8922cc5.tar.gz
linux-505a498a3757f188fe0ddd67b2d26794e8922cc5.zip
perf synthetic-events: Fix line synchronization, bounds, and truncation bugs in proc maps reader
Fix critical logic and boundary bugs in read_proc_maps_line() and caller. Ensure any mid-line hex/dec/char parsing failure invokes io__drain_line() safely, using a do-while loop to read and discard remaining characters until a newline or EOF is reached. Clamp pathname extraction size to account for trailing sample ID headers, use standard '//toolong' fallback literal for over-length pathnames, emit timeout flags for truncated entries securely via goto out;, and cast event buffer pointers to avoid _FORTIFY_SOURCE array bounds aborts across synthesis handlers. Assisted-by: Antigravity:gemini-3.5-flash Signed-off-by: Ian Rogers <irogers@google.com> Signed-off-by: Namhyung Kim <namhyung@kernel.org>
Diffstat (limited to 'scripts/stackusage')
0 files changed, 0 insertions, 0 deletions