]> git.proxmox.com Git - qemu.git/commit
qemu-iotests: Test bdrv_close while AIO is in flight
authorKevin Wolf <kwolf@redhat.com>
Wed, 11 Apr 2012 08:45:51 +0000 (10:45 +0200)
committerKevin Wolf <kwolf@redhat.com>
Thu, 19 Apr 2012 13:48:52 +0000 (15:48 +0200)
commitaafcdcc9ebd72b24bf8686f624ff98bb919de5fd
tree18635b7f8da9dc0cc74f72dc2dfb73b7027363f9
parent7299550b252c2c88ae078030428435cf83315dd4
qemu-iotests: Test bdrv_close while AIO is in flight

If the BlockDriverState is closed/freed without draining the AIO
requests first, the request coroutines may work on invalid data and file
descriptors or have some dangling pointers that cause segfaults.

Signed-off-by: Kevin Wolf <kwolf@redhat.com>
Reviewed-by: Paolo Bonzini <pbonzini@redhat.com>
tests/qemu-iotests/032 [new file with mode: 0755]
tests/qemu-iotests/032.out [new file with mode: 0644]
tests/qemu-iotests/group