]> xenbits.xensource.com Git - qemu-xen-4.5-testing.git/commit
ide: Clear DRQ after handling all expected accesses
authorKevin Wolf <kwolf@redhat.com>
Wed, 3 Jun 2015 12:41:27 +0000 (14:41 +0200)
committerIan Jackson <Ian.Jackson@eu.citrix.com>
Wed, 29 Jul 2015 15:33:12 +0000 (16:33 +0100)
commit327319a1e9bb79996e8de4df78ccde25e87692e2
tree45f5e006973f807f1007c5401fa47daa64322211
parent8ded5f4b399b3c1e13ea15e7657d0a88b6e26643
ide: Clear DRQ after handling all expected accesses

This is additional hardening against an end_transfer_func that fails to
clear the DRQ status bit. The bit must be unset as soon as the PIO
transfer has completed, so it's better to do this in a central place
instead of duplicating the code in all commands (and forgetting it in
some).

[ This is XSA-138 / CVE-2015-5154. ]

Signed-off-by: Kevin Wolf <kwolf@redhat.com>
(cherry picked from commit 7f057440b31da38196e3398fd1b618fc36ad97d6)
hw/ide.c