summaryrefslogtreecommitdiff
path: root/scripts/patch-kernel
diff options
context:
space:
mode:
authorArnaldo Carvalho de Melo <acme@redhat.com>2026-07-27 13:17:03 -0300
committerNamhyung Kim <namhyung@kernel.org>2026-08-03 12:43:01 -0700
commitc4362d5e1a5ed4ce2098798f655a636c4340fa20 (patch)
treea8db1fefe1675db0fc2960443ae8ae57bc0bcdba /scripts/patch-kernel
parent96fcc9ea5f18c083a1fa73da23afef7e953f7dca (diff)
downloadlinux-c4362d5e1a5ed4ce2098798f655a636c4340fa20.tar.gz
linux-c4362d5e1a5ed4ce2098798f655a636c4340fa20.zip
perf intel-pt: Fix off-by-one in auxtrace_info minimum size check
min_sz is set to sizeof(u64) * INTEL_PT_PER_CPU_MMAPS, but the code accesses auxtrace_info->priv[INTEL_PT_PER_CPU_MMAPS], which requires at least INTEL_PT_PER_CPU_MMAPS + 1 elements. A file with exactly min_sz bytes of priv data passes the size check but the access reads one u64 past the validated region. Use (INTEL_PT_PER_CPU_MMAPS + 1) to ensure the highest accessed index is within bounds. Fixes: 90e457f7be087005 ("perf tools: Add Intel PT support") Reported-by: sashiko-bot <sashiko-bot@kernel.org> Assisted-by: Claude:claude-opus-4.6 Signed-off-by: Arnaldo Carvalho de Melo <acme@redhat.com> Reviewed-by: James Clark <james.clark@linaro.org> Reviewed-by: Adrian Hunter <adrian.hunter@intel.com> Signed-off-by: Namhyung Kim <namhyung@kernel.org>
Diffstat (limited to 'scripts/patch-kernel')
0 files changed, 0 insertions, 0 deletions