Change the range test in iommu_gas_match_one from '< ubound' to '<= ubound', and pass a smaller-by-one ubound parameter to it, to avoid overflow in ubound calculation.
Details
Details
Diff Detail
Diff Detail
- Lint
Lint Skipped - Unit
Tests Skipped
Differential D37764
iommu_gas: avoid overflow in bounds check dougm on Dec 20 2022, 9:03 PM. Authored by Tags None Referenced Files
Subscribers
Details Change the range test in iommu_gas_match_one from '< ubound' to '<= ubound', and pass a smaller-by-one ubound parameter to it, to avoid overflow in ubound calculation.
Diff Detail
Event Timeline |