diff options
| author | 2026-09-28 11:25:48 -0700 | |
|---|---|---|
| committer | 2026-10-01 17:34:57 +0200 | |
| commit | 1cd82fa9a3e41f8244e1c0b014506feb6f0ca787 (patch) | |
| tree | a8c7f1189bee9ce733c71aa9b24117d2944f781b /scripts/Makefile.thinlto | |
| parent | perf trace: Stop at internal fields when walking syscall arguments (diff) | |
perf trace: Don't allocate syscall arg formats for internal fields
syscall__read_info() sizes sc->arg_fmt by the tracepoint's field count,
which includes the internal fields that follow the arguments, and only
then subtracts them from sc->nr_args.
syscall__alloc_arg_fmts() copies sc->fmt->arg[] for every entry, so with
more than 6 fields, for example renameat2 with its 2 path strings, it
reads beyond the end of that RAW_SYSCALL_ARGS_NUM sized array.
Count the arguments before allocating, and pass the array's size to
syscall_arg_fmt__init_array() so its walk stops before the internal
fields, rather than stepping beyond the array.
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
