aboutsummaryrefslogtreecommitdiff
path: root/tools/perf/scripts/python/call-graph-from-postgresql.py
diff options
context:
space:
mode:
authorRobin Murphy <[email protected]>2016-11-07 18:25:09 +0000
committerJoerg Roedel <[email protected]>2016-11-08 14:52:41 +0100
commit8c82d6ec5abcf9691d37f329bf5f42f6868405db (patch)
tree2f7cfe5ecec2af776e9514340a4f3e4746ad185a /tools/perf/scripts/python/call-graph-from-postgresql.py
parent3c117b543528b0d25801bd75444037dd0fcd2b8d (diff)
iommu/arm-smmu: Fix out-of-bounds dereference
When we iterate a master's config entries, what we generally care about is the entry's stream map index, rather than the entry index itself, so it's nice to have the iterator automatically assign the former from the latter. Unfortunately, booting with KASAN reveals the oversight that using a simple comma operator results in the entry index being dereferenced before being checked for validity, so we always access one element past the end of the fwspec array. Flip things around so that the check always happens before the index may be dereferenced. Fixes: adfec2e709d2 ("iommu/arm-smmu: Convert to iommu_fwspec") Reported-by: Mark Rutland <[email protected]> Signed-off-by: Robin Murphy <[email protected]> Acked-by: Will Deacon <[email protected]> Signed-off-by: Joerg Roedel <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python/call-graph-from-postgresql.py')
0 files changed, 0 insertions, 0 deletions