diff options
| author | 2026-09-28 11:25:40 -0700 | |
|---|---|---|
| committer | 2026-09-30 14:31:25 -0300 | |
| commit | dbc1151b7ab49a0c61317fc4c6042131c8342c31 (patch) | |
| tree | 670b3297ffe823c95d29ffb8149cb85b2b81e2f7 /scripts/Makefile.thinlto | |
| parent | perf symbol: Don't return an unterminated Rust demangle buffer (diff) | |
perf trace: Set the augmented arg header in the augmenters that omit it
The augmenters build records in augmented_args_tmp, a per-CPU scratch
buffer reused by every syscall, so a header field that isn't written
holds a stale value from an earlier syscall. sys_enter_sendto(),
sys_enter_perf_event_open(), sys_enter_clock_nanosleep() and
sys_enter_nanosleep() never set the struct augmented_arg size and err,
and augment_arg() doesn't set err.
Set both. When bpf_probe_read_user() fails in the connect, sendto and
nanosleep augmenters, report a zero sized payload and the error rather
than the stale scratch contents.
Reviewed-by: Namhyung Kim <namhyung@kernel.org>
Assisted-by: Antigravity:gemini-3.1-pro
Signed-off-by: Ian Rogers <irogers@google.com>
Signed-off-by: Arnaldo Carvalho de Melo <acme@redhat.com>
Diffstat (limited to 'scripts/Makefile.thinlto')
0 files changed, 0 insertions, 0 deletions
