aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/scripts/Makefile.thinlto
diff options
context:
space:
mode:
authorIan Rogers <irogers@google.com>2026-09-28 11:25:43 -0700
committerArnaldo Carvalho de Melo <acme@redhat.com>2026-09-30 15:33:53 -0300
commit0ccc474fd71a5a6780559f24856533506ac4d7dd (patch)
treeadca3938bccfff180b7c610bc6f48e5171bff8fe /scripts/Makefile.thinlto
parentperf trace: Don't read sample padding as an augmented argument (diff)
perf trace: Bounds check augmented arguments before reading them
syscall_arg__scnprintf_buf() and syscall_arg__scnprintf_augmented_string() trust the augmented arg's size, so a bad one reads out of bounds: #3 0x4c0fa0 in syscall_arg__scnprintf_buf builtin-trace.c:1955 #4 0x4c2f3d in syscall_arg_fmt__scnprintf_val builtin-trace.c:2632 #5 0x4c33ae in syscall__scnprintf_args builtin-trace.c:2722 #6 0x4c43d3 in trace__sys_enter builtin-trace.c:3094 #7 0x4c7865 in trace__handle_event builtin-trace.c:4013 Move the check in btf_struct_scnprintf() to a helper, syscall_arg__augmented_args_valid(), and use it in both. When the check fails, syscall_arg__scnprintf_filename() now falls back to vfs_getname or the pointer. Closes: https://lore.kernel.org/linux-perf-users/arJ-gpzqOHk-gF8T@x2/ Reported-by: Arnaldo Carvalho de Melo <acme@kernel.org> Reviewed-by: Aaron Tomlin <atomlin@atomlin.com> 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