qemu crashes on unaligned extended disk reads

Bug #1192344 reported by Andrew McGowen
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
QEMU
Invalid
Undecided
Unassigned

Bug Description

When performing a BIOS extended disk read (INT 13H, AH=0x42), if the offset of the buffer destination in the DAP (disk address packet) is not dword-aligned (i.e. a multiple of 4), SeaBIOS attempts to execute code at non-mapped address 0xb4f53, causing QEMU to crash. I imagine it's a bug in the BIOS code, but it does cause QEMU to crash.

QEMU version: 1.4.0 (Debian 1.4.0+dfsg-1expubuntu4) (from Ubuntu repository)
SeaBIOS version: 1.7.2-20130119_170942-roseapple
command line: qemu-system-x86_64 -m 64 -hda hda.img -monitor stdio
CPU: Intel Core i7 CPU M620 on a Dell Latitude E6410
OS: Ubuntu, GNU/Linux 3.8.0-25-generic, 64-bit

Revision history for this message
Stefan Hajnoczi (stefanha) wrote : Re: [Qemu-devel] [Bug 1192344] [NEW] qemu crashes on unaligned extended disk reads

On Tue, Jun 18, 2013 at 09:23:31PM -0000, Andrew McGowen wrote:
> When performing a BIOS extended disk read (INT 13H, AH=0x42), if the
> offset of the buffer destination in the DAP (disk address packet) is not
> dword-aligned (i.e. a multiple of 4), SeaBIOS attempts to execute code
> at non-mapped address 0xb4f53, causing QEMU to crash. I imagine it's a
> bug in the BIOS code, but it does cause QEMU to crash.

Can you post details on the "crash"? What is the error message?

Stefan

Revision history for this message
Andrew McGowen (akmcgowen) wrote :

...well this is embarrassing - it was an issue with my code not saving/restoring registers on the stack properly.

Revision history for this message
Thomas Huth (th-huth) wrote :

Marking this ticket as "Invalid" according to comment #2.

Changed in qemu:
status: New → Invalid
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.