]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/commit
bhyve: Use MAP_GUARD when mapping guest memory ranges.
authorjhb <jhb@FreeBSD.org>
Thu, 6 Sep 2018 20:29:40 +0000 (20:29 +0000)
committerjhb <jhb@FreeBSD.org>
Thu, 6 Sep 2018 20:29:40 +0000 (20:29 +0000)
commite80c3bc7523d1299033bfdffe27913bf58146bb9
tree2e1ef6bd3578ba23452a72f14f0dd1352a95d7eb
parente2445c9ca376a94b161895102653657dec6995d9
bhyve: Use MAP_GUARD when mapping guest memory ranges.

Instead of relying on PROT_NONE mappings with MAP_ANON, use MAP_GUARD
to reserve address space around guest memory ranges including the
guard ranges of address space around mappings.

Submitted by: Shawn Webb
Reviewed by: araujo
Approved by: re (rgrimes)
MFC after: 1 month
Sponsored by: HardendBSD and G2, Inc
Differential Revision: https://reviews.freebsd.org/D16822
lib/libvmmapi/vmmapi.c