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)
Fri, Nov 8, 12:33 PM
Unknown Object (File)
Fri, Nov 8, 2:35 AM
Unknown Object (File)
Mon, Nov 4, 5:43 AM
Unknown Object (File)
Oct 21 2024, 6:42 PM
Unknown Object (File)
Oct 21 2024, 6:32 PM
Unknown Object (File)
Sep 28 2024, 12:57 PM
Unknown Object (File)
Sep 23 2024, 12:08 PM
Unknown Object (File)
Sep 22 2024, 9:31 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