svc · mach trap -15
_kernelrpc_mach_vm_map_trap
Trap-level entry point that backs mach_vm_map — maps a memory object (file, shared region, or anonymous) into a task's address space.
Prototype
kern_return_t _kernelrpc_mach_vm_map_trap(/* 6 args */);Returns: kern_return_t
Version history
| XNU tag | macOS | # |
|---|---|---|
| xnu-2422.115.4 | macOS 10.9 Mavericks | -15 |
| xnu-2782.40.9 | macOS 10.10 Yosemite | -15 |
| xnu-3247.1.106 | macOS 10.11 El Capitan | -15 |
| xnu-3789.1.32 | macOS 10.12 Sierra | -15 |
| xnu-4570.1.46 | macOS 10.13 High Sierra | -15 |
| xnu-4903.221.2 | macOS 10.14 Mojave | -15 |
| xnu-6153.11.26 | macOS 10.15 Catalina | -15 |
| xnu-7195.50.7.100.1 | macOS 11.0 Big Sur | -15 |
| xnu-8019.41.5 | macOS 12.0 Monterey | -15 |
| xnu-8792.41.9 | macOS 13.0 Ventura | -15 |
| xnu-10002.1.13 | macOS 14.0 Sonoma | -15 |
| xnu-11215.1.10 | macOS 15.0 Sequoia | -15 |
| xnu-11417.101.15 | macOS 15.4 Sequoia | -15 |
| xnu-12377.1.9 | macOS 26.0 Tahoe | -15 |
| xnu-10002.41.9 | — | -15 |
| xnu-10002.61.3 | — | -15 |
| xnu-10002.81.5 | — | -15 |
| xnu-10063.101.15 | — | -15 |
| xnu-10063.121.3 | — | -15 |
| xnu-10063.141.1 | — | -15 |
| xnu-11215.41.3 | — | -15 |
| xnu-11215.61.5 | — | -15 |
| xnu-11215.81.4 | — | -15 |
| xnu-11417.121.6 | — | -15 |
| xnu-11417.140.69 | — | -15 |
| xnu-12377.101.15 | — | -15 |
| xnu-12377.41.6 | — | -15 |
| xnu-12377.61.12 | — | -15 |
| xnu-12377.81.4 | — | -15 |
| xnu-2422.1.72 | — | -15 |
| xnu-2422.100.13 | — | -15 |
| xnu-2422.110.17 | — | -15 |
| xnu-2422.90.20 | — | -15 |
| xnu-2782.1.97 | — | -15 |
| xnu-2782.10.72 | — | -15 |
| xnu-2782.20.48 | — | -15 |
| xnu-2782.30.5 | — | -15 |
| xnu-3247.10.11 | — | -15 |
| xnu-3248.20.55 | — | -15 |
| xnu-3248.30.4 | — | -15 |
| xnu-3248.40.184 | — | -15 |
| xnu-3248.50.21 | — | -15 |
| xnu-3248.60.10 | — | -15 |
| xnu-3789.21.4 | — | -15 |
| xnu-3789.31.2 | — | -15 |
| xnu-3789.41.3 | — | -15 |
| xnu-3789.51.2 | — | -15 |
| xnu-3789.60.24 | — | -15 |
| xnu-3789.70.16 | — | -15 |
| xnu-4570.20.62 | — | -15 |
| xnu-4570.31.3 | — | -15 |
| xnu-4570.41.2 | — | -15 |
| xnu-4570.51.1 | — | -15 |
| xnu-4570.61.1 | — | -15 |
| xnu-4570.71.2 | — | -15 |
| xnu-4903.231.4 | — | -15 |
| xnu-4903.241.1 | — | -15 |
| xnu-4903.270.47 | — | -15 |
| xnu-6153.101.6 | — | -15 |
| xnu-6153.121.1 | — | -15 |
| xnu-6153.141.1 | — | -15 |
| xnu-6153.41.3 | — | -15 |
| xnu-6153.61.1 | — | -15 |
| xnu-6153.81.5 | — | -15 |
| xnu-7195.101.1 | — | -15 |
| xnu-7195.121.3 | — | -15 |
| xnu-7195.141.2 | — | -15 |
| xnu-7195.60.75 | — | -15 |
| xnu-7195.81.3 | — | -15 |
| xnu-8019.61.5 | — | -15 |
| xnu-8019.80.24 | — | -15 |
| xnu-8020.101.4 | — | -15 |
| xnu-8020.121.3 | — | -15 |
| xnu-8020.140.41 | — | -15 |
| xnu-8792.61.2 | — | -15 |
| xnu-8792.81.2 | — | -15 |
| xnu-8796.101.5 | — | -15 |
| xnu-8796.121.2 | — | -15 |
| xnu-8796.141.3 | — | -15 |
Notes
mach_vm_map is the general-purpose mapping primitive: caller supplies a memory-object send right, an offset, size, alignment mask, initial and max protections, inheritance, and either a fixed or anywhere target address. dyld uses it (indirectly, via vm_map_kernel) when loading dylibs from the shared cache, and frameworks like CoreFoundation use it to create shared-memory regions for IPC payloads. The trap is the fast-path direct entry; the slow path goes through the full vm_map MIG routine when a memory_object_t descriptor needs to be transmitted in a Mach message.
Detection
DTrace mach_trap probe only. Suspicious patterns (mapping the same path repeatedly into many tasks, or mapping unsigned content into a hardened-runtime process) are best detected by combining DTrace mach_vm_map entry traces with codesign / AMFI events from the unified log.