aboutsummaryrefslogtreecommitdiff
path: root/tools/perf/scripts/python/stackcollapse.py
diff options
context:
space:
mode:
authorYong Wu <[email protected]>2021-01-07 20:29:06 +0800
committerWill Deacon <[email protected]>2021-01-27 12:32:27 +0000
commit862c3715de8f3e5350489240c951d697f04bd8c9 (patch)
treed6b5a2361e5fd76af8647003da0e9fcb18557855 /tools/perf/scripts/python/stackcollapse.py
parent20143451eff044310520932fb372704c99658b33 (diff)
iommu: Switch gather->end to the inclusive end
Currently gather->end is "unsigned long" which may be overflow in arch32 in the corner case: 0xfff00000 + 0x100000(iova + size). Although it doesn't affect the size(end - start), it affects the checking "gather->end < end" This patch changes this "end" to the real end address (end = start + size - 1). Correspondingly, update the length to "end - start + 1". Fixes: a7d20dc19d9e ("iommu: Introduce struct iommu_iotlb_gather for batching TLB flushes") Signed-off-by: Yong Wu <[email protected]> Reviewed-by: Robin Murphy <[email protected]> Acked-by: Will Deacon <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Will Deacon <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python/stackcollapse.py')
0 files changed, 0 insertions, 0 deletions