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
F108661904: D34978.diff
Mon, Jan 27, 3:52 AM
Unknown Object (File)
Fri, Jan 24, 5:07 PM
Unknown Object (File)
Sat, Jan 18, 9:27 PM
Unknown Object (File)
Dec 5 2024, 1:43 AM
Unknown Object (File)
Nov 30 2024, 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
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