Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1NBc8D-0003dz-OV for qemu-devel@nongnu.org; Fri, 20 Nov 2009 17:39:09 -0500 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1NBc89-0003bJ-2P for qemu-devel@nongnu.org; Fri, 20 Nov 2009 17:39:09 -0500 Received: from [199.232.76.173] (port=59234 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1NBc88-0003b7-Rh for qemu-devel@nongnu.org; Fri, 20 Nov 2009 17:39:04 -0500 Received: from imta-38.everyone.net ([216.200.145.38]:56588 helo=omta0104.mta.everyone.net) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1NBc88-00069I-GP for qemu-devel@nongnu.org; Fri, 20 Nov 2009 17:39:04 -0500 Date: Fri, 20 Nov 2009 17:39:01 -0500 From: Kevin O'Connor Subject: Re: [Qemu-devel] Stack corruption problem with SeaBIOS/gPXE under QEMU Message-ID: <20091120223901.GC24539@morn.localdomain> References: <4AFBEF9A.5010802@redhat.com> <20091114194745.GA12007@morn.localdomain> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20091114194745.GA12007@morn.localdomain> List-Id: qemu-devel.nongnu.org List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Naphtali Sprei Cc: Glauber Costa , gpxe@etherboot.org, qemu-devel@nongnu.org On Sat, Nov 14, 2009 at 02:47:45PM -0500, Kevin O'Connor wrote: > On Thu, Nov 12, 2009 at 01:20:58PM +0200, Naphtali Sprei wrote: > > I've found a problem with the usage of SeaBIOS/gPXE in Qemu. The > > scenario is when failing to boot from network and falling back to > > booting from hard-disk (-boot nc). The cause of the problem is that > > both SeaBIOS and gPXE (in it's installation phase) uses same stack > > area, 0x7c00. The gPXE code corrupts the SeaBIOS stack, so when > > gPXE returns to SeaBIOS chaos occurs. > > > > Output: "qemu: fatal: Trying to execute code outside RAM or ROM at 0x00000000eb300000" > > Thanks for reporting this. > > We can move the SeaBIOS stack, but it's not clear to me where to move > it to. I don't think this is a SeaBIOS bug, but in an effort to move forward, I've moved the SeaBIOS stack from 0x7c00 to 0x7000. Commit 494dfc6e. -Kevin