diff options
| author | Arnaldo Carvalho de Melo <acme@redhat.com> | 2026-07-26 20:40:12 -0300 |
|---|---|---|
| committer | Namhyung Kim <namhyung@kernel.org> | 2026-07-31 16:42:07 -0700 |
| commit | 29ec46e43f6ca7d6a6651db724d4ffd820f46e8b (patch) | |
| tree | fe488221eb07470bfbd591ce47515d80d91383d8 /scripts/patch-kernel | |
| parent | b687e1a418fb819ef83c362d84c216a6a841e3b0 (diff) | |
| download | linux-29ec46e43f6ca7d6a6651db724d4ffd820f46e8b.tar.gz linux-29ec46e43f6ca7d6a6651db724d4ffd820f46e8b.zip | |
perf machine: Reset errno before strtol in guest kernel map creation
machines__create_guest_kernel_maps() checks errno == ERANGE after
strtol() to detect overflow, but does not clear errno first. A stale
ERANGE from an earlier library call (e.g. scandir internals) causes
valid numeric directory names to be incorrectly skipped.
Set errno = 0 before strtol() so only the current conversion can
trigger the ERANGE check.
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
