The memory space of virtual machines is protected by guard pages (one guard mapping at the beginning of the VM space and one guard mapping at the end of the VM space) . Instead of relying solely on PROT_NONE mappings, use MAP_GUARD mappings as the guard pages. Note that the size of the guard mapping (4MB) is left unchanged.
Sponsored by: HardendBSD and G2, Inc