Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 27 Apr 2021 03:40:36 +0000
From:      bugzilla-noreply@freebsd.org
To:        virtualization@FreeBSD.org
Subject:   [Bug 255191] Booting DragonFlyBSD results in Failed to emulate instruction sequence output
Message-ID:  <bug-255191-27103-pT4UKl3W9F@https.bugs.freebsd.org/bugzilla/>
In-Reply-To: <bug-255191-27103@https.bugs.freebsd.org/bugzilla/>
References:  <bug-255191-27103@https.bugs.freebsd.org/bugzilla/>

next in thread | previous in thread | raw e-mail | index | archive | help
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D255191

--- Comment #5 from Peter Grehan <grehan@FreeBSD.org> ---
Created attachment 224465
  --> https://bugs.freebsd.org/bugzilla/attachment.cgi?id=3D224465&action=
=3Dedit
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 t=
he
array access will then extend beyond 4G.

I suspect this will not be an issue systems other than bhyve since they wou=
ld
have a BIOS extended-data area and not execute this codepath, or even if th=
ey
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.

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



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?bug-255191-27103-pT4UKl3W9F>