summaryrefslogtreecommitdiff
path: root/scripts/Makefile.thinlto
diff options
context:
space:
mode:
authorArnaldo Carvalho de Melo <acme@redhat.com>2026-06-08 13:04:25 +0300
committerArnaldo Carvalho de Melo <acme@redhat.com>2026-06-11 00:56:01 +0300
commit2ea64782a428bed74f595961e651ceb8c4c5bf22 (patch)
tree7dd8e7ee9ac43bbfd8894f3c10e8e04da226bec8 /scripts/Makefile.thinlto
parent34d3d93fac6d92237cb9d730ca04c37ed361c7a6 (diff)
downloadlinux-2ea64782a428bed74f595961e651ceb8c4c5bf22.tar.xz
perf tools: Use snprintf() in dso__read_running_kernel_build_id()
dso__read_running_kernel_build_id() uses sprintf() to format a sysfs path from machine->root_dir into a PATH_MAX buffer. If root_dir is close to PATH_MAX in length, appending "/sys/kernel/notes" (18 bytes) overflows the stack buffer. Switch to snprintf() with sizeof(path) to prevent the overflow. Reported-by: sashiko-bot <sashiko-bot@kernel.org> Fixes: cdd059d731eeb466 ("perf tools: Move dso_* related functions into dso object") Cc: Jiri Olsa <jolsa@kernel.org> Assisted-by: Claude:claude-opus-4.6 Signed-off-by: Arnaldo Carvalho de Melo <acme@redhat.com>
Diffstat (limited to 'scripts/Makefile.thinlto')
0 files changed, 0 insertions, 0 deletions