summaryrefslogtreecommitdiff
path: root/tools/perf/scripts/python
diff options
context:
space:
mode:
authorLi RongQing <lirongqing@baidu.com>2026-07-21 17:34:10 +0800
committerWill Deacon <will@kernel.org>2026-07-21 11:34:51 +0000
commit754f8efe45f87e3a9c6871b645b2f9d46d1b407b (patch)
treecf2ddd51eb5ae5a4f3b62f9c28303d02de56f93f /tools/perf/scripts/python
parentfb80117fddb5b477218dc99bb53911b72c3847f8 (diff)
iommu/intel: Fix out-of-bounds memset in dmar_latency_disable()
dmar_latency_disable() intends to zero out only the single latency_statistic entry for the given type, but the memset size was computed as sizeof(*lstat) * DMAR_LATENCY_NUM, which clears the entire array starting from &lstat[type]. When type > 0, this writes beyond the end of the allocated array, corrupting adjacent memory. Fix by using sizeof(*lstat) to clear only the target entry. Fixes: 55ee5e67a59a ("iommu/vt-d: Add common code for dmar latency performance monitors") Signed-off-by: Li RongQing <lirongqing@baidu.com> Signed-off-by: Will Deacon <will@kernel.org>
Diffstat (limited to 'tools/perf/scripts/python')
0 files changed, 0 insertions, 0 deletions