summaryrefslogtreecommitdiff
path: root/scripts/patch-kernel
diff options
context:
space:
mode:
authorArnaldo Carvalho de Melo <acme@redhat.com>2026-07-27 13:17:04 -0300
committerNamhyung Kim <namhyung@kernel.org>2026-08-03 12:43:05 -0700
commitb9fb8225951ce27e62a2235a71f3ab01137aaec3 (patch)
tree315ed1339ea91282b3b265b88b38b651fd8bdfba /scripts/patch-kernel
parentc4362d5e1a5ed4ce2098798f655a636c4340fa20 (diff)
downloadlinux-b9fb8225951ce27e62a2235a71f3ab01137aaec3.tar.gz
linux-b9fb8225951ce27e62a2235a71f3ab01137aaec3.zip
perf intel-bts: Fix off-by-one in auxtrace_info minimum size check
Same pattern as the Intel PT fix: min_sz is set to sizeof(u64) * INTEL_BTS_SNAPSHOT_MODE, but the code accesses auxtrace_info->priv[INTEL_BTS_SNAPSHOT_MODE], which requires at least INTEL_BTS_SNAPSHOT_MODE + 1 elements. Use (INTEL_BTS_SNAPSHOT_MODE + 1) to ensure the highest accessed index is within bounds. Fixes: d0170af7004dce9c ("perf tools: Add Intel BTS 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