summaryrefslogtreecommitdiff
path: root/scripts/patch-kernel
diff options
context:
space:
mode:
authorArnaldo Carvalho de Melo <acme@redhat.com>2026-07-26 20:40:10 -0300
committerNamhyung Kim <namhyung@kernel.org>2026-07-31 16:41:41 -0700
commitcc6abe0012bf8c04af8275266f8ed7c55ba4a5fb (patch)
treef4b5b7e2684b7d7ad565bd20f9bb9d8f2308b6e0 /scripts/patch-kernel
parente27b96d0a34e1dc87affecf221a99fee8f6c5afc (diff)
downloadlinux-cc6abe0012bf8c04af8275266f8ed7c55ba4a5fb.tar.gz
linux-cc6abe0012bf8c04af8275266f8ed7c55ba4a5fb.zip
perf machine: Check snprintf truncation in machines__findnew()
The guestmount path is built with snprintf() into a PATH_MAX buffer without checking the return value. If symbol_conf.guestmount is long enough to cause truncation, the truncated path could match a different directory, causing the wrong guest to be associated with the pid. Check for truncation and bail out early. Fixes: a1645ce12adb ("perf: 'perf kvm' tool for monitoring guest performance from host") Reported-by: sashiko-bot <sashiko-bot@kernel.org> Cc: Zhang, Yanmin <yanmin_zhang@linux.intel.com> Assisted-by: Claude:claude-opus-4.6 Signed-off-by: Arnaldo Carvalho de Melo <acme@redhat.com> Signed-off-by: Namhyung Kim <namhyung@kernel.org>
Diffstat (limited to 'scripts/patch-kernel')
0 files changed, 0 insertions, 0 deletions