From: Keir Fraser Subject: Re: guest state on realmode emulation failure Date: Mon, 17 Nov 2008 15:58:31 +0000 Message-ID: References: <4921A204.76E4.0078.0@novell.com> Mime-Version: 1.0 Content-Type: text/plain; charset="US-ASCII" Content-Transfer-Encoding: 7bit Return-path: In-Reply-To: <4921A204.76E4.0078.0@novell.com> List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Sender: xen-devel-bounces@lists.xensource.com Errors-To: xen-devel-bounces@lists.xensource.com To: Jan Beulich Cc: xen-devel@lists.xensource.com List-Id: xen-devel@lists.xenproject.org On 17/11/08 15:55, "Jan Beulich" wrote: >>> As a secondary thing, I can't really see how emulation of a real-mode far >>> return could ever fail with the register state given. >> >> Have you tested with xen-unstable changeset 18766? > > Not yet, but shouldn't that affect things only when 'mis-'using real mode > (e.g. by leaving a 32-bit default operand size set)? No, realmode_deliver_exception() was testing a potentially uninitialised field. It's a nasty little bug that thus occasionally, whether real mode is abused or not, causes you to write through ESP rather than SP. -- Keir