CVS: cvs.openbsd.org: src

Dave Voutila <[email protected]> Fri, 24 Jul 2026 08:11:16 -0600 (MDT)
Newsgroups gmane.os.openbsd.cvs
Message-ID <[email protected]>
CVSROOT:	/cvs
Module name:	src
Changes by:	[email protected]	2026/07/24 08:11:16

Modified files:
	usr.sbin/vmd   : x86_vm.c 

Log message:
vmd(8): reject GPAs in holes during gpa translation.

vmd independentaly allocates guest memory in a series of ranges,
mirroring the physical memory layout for the guest. The GPA translation
in find_gap_range() incorrectly selects a memory range if the GPA
is in a hole between two guest memory ranges. Make the initial check
that the GPA falls within the bounds of a known memory range instead
of just prior to the end.

Report and diff by Andrew Griffiths.

ok hshoexer@