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
F150808019: D54210.id167968.diff
Sat, Apr 4, 4:52 AM
Unknown Object (File)
Thu, Mar 26, 6:42 PM
Unknown Object (File)
Thu, Mar 26, 6:42 PM
Unknown Object (File)
Sun, Mar 22, 10:36 PM
Unknown Object (File)
Sun, Mar 8, 2:54 AM
Unknown Object (File)
Feb 27 2026, 11:31 PM
Unknown Object (File)
Feb 19 2026, 5:42 AM
Unknown Object (File)
Feb 19 2026, 4:55 AM
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