[Bug 255191] Booting DragonFlyBSD results in Failed to emulate instruction sequence output

bugzilla-noreply at freebsd.org bugzilla-noreply at freebsd.org
Tue Apr 27 03:40:36 UTC 2021


https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=255191

--- Comment #5 from Peter Grehan <grehan at FreeBSD.org> ---
Created attachment 224465
  --> https://bugs.freebsd.org/bugzilla/attachment.cgi?id=224465&action=edit
dfly mptable diff

This should fix the issue in DFly.

The units of base_memory are KB, so this has to be adjusted before used as an
absolute value, or this will result in a negative value just under 4G and the
array access will then extend beyond 4G.

I suspect this will not be an issue systems other than bhyve since they would
have a BIOS extended-data area and not execute this codepath, or even if they
didn't, accessing memory beyond 4G would be a no-op.

In any case, it is an out-of-bounds array access, so worth fixing.

-- 
You are receiving this mail because:
You are the assignee for the bug.


More information about the freebsd-virtualization mailing list