]> xenbits.xensource.com Git - qemu-upstream-4.5-testing.git/commit
ide: Clear DRQ after handling all expected accesses (CVE-2015-5154)
authorKevin Wolf <kwolf@redhat.com>
Mon, 27 Jul 2015 03:42:53 +0000 (23:42 -0400)
committerStefano Stabellini <stefano.stabellini@eu.citrix.com>
Wed, 29 Jul 2015 15:40:40 +0000 (15:40 +0000)
commit8c38fafb45e1db03253c465088c7ff4e0924f356
tree17e70d4e1b758c588551e7b3db23da3452e76d90
parent51fd36f69fa0f8dfeb51ca1dfd9488f3a2fa602c
ide: Clear DRQ after handling all expected accesses (CVE-2015-5154)

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).

upstream-commit-id: cb72cba83021fa42719e73a5249c12096a4d1cfc

Signed-off-by: Kevin Wolf <kwolf@redhat.com>
Reviewed-by: John Snow <jsnow@redhat.com>
Signed-off-by: Stefano Stabellini <stefano.stabellini@eu.citrix.com>
hw/ide/core.c