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
F102138831: D34978.id105197.diff
Fri, Nov 8, 2:35 AM
Unknown Object (File)
Mon, Nov 4, 5:43 AM
Unknown Object (File)
Mon, Oct 21, 6:42 PM
Unknown Object (File)
Mon, Oct 21, 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
Unknown Object (File)
Sep 19 2024, 6:28 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

Lint
Lint Skipped
Unit
Tests Skipped