summaryrefslogtreecommitdiff
path: root/tools/perf/scripts/python/bin/stackcollapse-report
diff options
context:
space:
mode:
authorMostafa Saleh <smostafa@google.com>2026-09-24 08:56:15 +0000
committerWill Deacon <will@kernel.org>2026-10-02 15:48:09 +0000
commit8105675f33746cce48f5381d02d0356ef79dca89 (patch)
tree7d561036f58c16c73fd2e69478b8ab312b7234c6 /tools/perf/scripts/python/bin/stackcollapse-report
parent388986bfc540e98f3f7ca1b6bc8703fc43e279d1 (diff)
iommu/arm-smmu-v3-test: Fix OOB in arm_smmu_v3_invs_test_verify()
arm_smmu_v3_invs_test_verify() validates the array bounds using KUNIT_EXPECT_EQ(), which triggers a failure and continues execution. If invs->num_invs was smaller than expected, the next loop over num_invs would blindly read past the end of the invs->inv[] array. Switch to KUNIT_ASSERT_EQ() to fail and stop the test on bound errors. Fixes: 15a2a5645ad7 ("iommu/arm-smmu-v3: Introduce a per-domain arm_smmu_invs array") Reported-by: Sashiko <> Reviewed-by: Nicolin Chen <nicolinc@nvidia.com> Reviewed-by: Jason Gunthorpe <jgg@nvidia.com> Signed-off-by: Mostafa Saleh <smostafa@google.com> Reviewed-by: Pranjal Shrivastava <praan@google.com> Tested-by: Nicolin Chen <nicolinc@nvidia.com> Signed-off-by: Will Deacon <will@kernel.org>
Diffstat (limited to 'tools/perf/scripts/python/bin/stackcollapse-report')
0 files changed, 0 insertions, 0 deletions