Page MenuHomeFreeBSD

Respect maxaddr limit with nonzero offset in iommu_gas_match_one
ClosedPublic

Authored by dougm on Apr 20 2022, 4:38 AM.
Tags
None
Referenced Files
Unknown Object (File)
Thu, Dec 5, 1:43 AM
Unknown Object (File)
Sat, Nov 30, 1:14 AM
Unknown Object (File)
Nov 27 2024, 1:22 PM
Unknown Object (File)
Nov 8 2024, 12:33 PM
Unknown Object (File)
Nov 8 2024, 2:35 AM
Unknown Object (File)
Nov 4 2024, 5:43 AM
Unknown Object (File)
Oct 21 2024, 6:42 PM
Unknown Object (File)
Oct 21 2024, 6:32 PM
Subscribers

Details

Summary

If iommu_gas_match_one has to adjust for a boundary crossing, its check against maxaddr include offset in its calculation, to ensure that the allocated memory does not exceed the max address. However, if there's no boundary crossing adjustment, then maxaddr check disregards the offset. Fix that.

Diff Detail

Repository
rG FreeBSD src repository
Lint
Lint Not Applicable
Unit
Tests Not Applicable