]> xenbits.xensource.com Git - qemu-xen-4.2-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:35:06 +0000 (16:35 +0100)
commitcbde16cd1c9866a92a7a449e7df5637dd7c3e9cc
tree0d1af68758f20aa40b96eea32b134841dbb6d379
parentcec11fdfb212fb5493cdd44b81f1642758eeb869
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)
(cherry picked from commit 30c002bffcd6287a7d5bb4e2c691b101c0937013)
(cherry picked from commit e1db2596d7c5f8be876481148d407f0cb207b494)
hw/ide.c