diff options
| author | 2026-09-28 11:25:44 -0700 | |
|---|---|---|
| committer | 2026-09-30 15:36:47 -0300 | |
| commit | 705da5b15ab89ba97b11eedbe507c2fd83d31cb9 (patch) | |
| tree | 2c8edc7cb758f95b24126e82937c7e87c80995d1 /scripts/Makefile.thinlto | |
| parent | perf sched stats: Reject mismatched or incomplete snapshots (diff) | |
perf trace: Bound the fixed size augmented argument beautifiers
The timespec, sockaddr and perf_event_attr beautifiers read a fixed size
type from the payload without checking its size. The sockaddr payload is
addrlen bytes and the perf_event_attr payload is attr.size bytes, both
chosen by the tracee.
Check the payload with syscall_arg__augmented_args_valid(). Pass its size
to the address family printers, which also bounds the AF_LOCAL path that
needn't be NUL terminated. Like the kernel, accept an AF_INET6 address
without sin6_scope_id, RFC 2133's 24 bytes. Copy the perf_event_attr into
a zero padded local, as perf_event_attr___scnprintf() reads a whole
struct.
Reviewed-by: Aaron Tomlin <atomlin@atomlin.com>
Assisted-by: Antigravity:gemini-3.1-pro
Signed-off-by: Ian Rogers <irogers@google.com>
Tested-by: Aaron Tomlin <atomlin@atomlin.com>
Signed-off-by: Arnaldo Carvalho de Melo <acme@redhat.com>
Diffstat (limited to 'scripts/Makefile.thinlto')
0 files changed, 0 insertions, 0 deletions
