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)
Sat, Mar 14, 5:19 PM
Unknown Object (File)
Sat, Mar 14, 5:48 AM
Unknown Object (File)
Fri, Mar 13, 11:54 PM
Unknown Object (File)
Wed, Mar 11, 5:45 PM
Unknown Object (File)
Wed, Mar 11, 12:22 AM
Unknown Object (File)
Wed, Mar 4, 8:04 PM
Unknown Object (File)
Sat, Feb 28, 3:44 PM
Unknown Object (File)
Jan 18 2026, 1:21 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