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)
Dec 20 2023, 7:41 AM
Unknown Object (File)
Dec 12 2023, 9:27 AM
Unknown Object (File)
Sep 21 2023, 8:46 PM
Unknown Object (File)
Sep 11 2023, 10:18 AM
Unknown Object (File)
Aug 1 2023, 6:43 AM
Unknown Object (File)
Jul 12 2023, 12:28 AM
Unknown Object (File)
Jul 12 2023, 12:23 AM
Unknown Object (File)
May 15 2023, 5:29 AM
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