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)
Sun, Nov 23, 5:01 PM
Unknown Object (File)
Thu, Nov 20, 8:39 PM
Unknown Object (File)
Thu, Nov 20, 8:36 PM
Unknown Object (File)
Thu, Nov 20, 8:35 PM
Unknown Object (File)
Thu, Nov 20, 8:29 PM
Unknown Object (File)
Mon, Nov 17, 1:29 AM
Unknown Object (File)
Sun, Nov 16, 6:52 PM
Unknown Object (File)
Sun, Nov 16, 6:01 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