Page MenuHomeFreeBSD

amd64/vmm.c: Fix an incorrect memory segment check in vm_iommu_{un}map
ClosedPublic

Authored by bnovkov on Dec 13 2025, 3:05 PM.
Tags
None
Referenced Files
Unknown Object (File)
Sat, Jul 18, 9:28 AM
Unknown Object (File)
Wed, Jul 15, 6:58 AM
Unknown Object (File)
Wed, Jul 15, 6:58 AM
Unknown Object (File)
Sun, Jul 12, 10:55 AM
Unknown Object (File)
Fri, Jul 10, 6:01 PM
Unknown Object (File)
Sat, Jul 4, 5:03 PM
Unknown Object (File)
Sat, Jul 4, 5:02 PM
Unknown Object (File)
Fri, Jun 26, 6:32 PM
Subscribers

Details

Summary

This change fixes two checks that conflated memory mapping and memory
segment idenitifers. In both cases the code iterates over all memory
mappings but passes the index to vm_memseg_sysmem, which is wrong.

Fix this by passing the memory mapping's segment identifier instead.

Fixes: c76c2a19ae37

Diff Detail

Repository
rG FreeBSD src repository
Lint
Lint Not Applicable
Unit
Tests Not Applicable