« Previous | Next » 

Revision 40c4ed3f

ID40c4ed3f95f0b2ffa0848df0fc311556bb7472a1

Added by Kevin Wolf about 13 years ago

ide: Ignore reads during PIO in and writes during PIO out

This fixes https://bugs.launchpad.net/qemu/+bug/786209:

When the DRQ_STAT bit is set, the IDE core permits both data reads
and data writes, regardless of whether the current transfer was
initiated as a read or write.
This potentially leaks uninitialized host memory into the guest,
if, before doing anything else to an IDE device, the guest begins a
write transaction (e.g. WIN_WRITE), but then reads from the IO
port instead of writing to it.

Signed-off-by: Kevin Wolf <>
Reviewed-by: Markus Armbruster <>

Files

  • added
  • modified
  • copied
  • renamed
  • deleted

View differences