iotests/stream-error-on-reset: New test
commit2ca1d5d6b91f8a52a5c651f660b2f58c94bf97ba
authorHanna Reitz <hreitz@redhat.com>
Tue, 11 Jan 2022 15:36:13 +0000 (11 15:36 +0000)
committerKevin Wolf <kwolf@redhat.com>
Fri, 14 Jan 2022 11:03:16 +0000 (14 12:03 +0100)
treea1b519bbf2e595606d34e6e455567df71becdf95
parent1e3552dbd28359d35967b7c28dc86cde1bc29205
iotests/stream-error-on-reset: New test

Test the following scenario:
- Simple stream block in two-layer backing chain (base and top)
- The job is drained via blk_drain(), then an error occurs while the job
  settles the ongoing request
- And so the job completes while in blk_drain()

This was reported as a segfault, but is fixed by "block-backend: prevent
dangling BDS pointers across aio_poll()".

Buglink: https://bugzilla.redhat.com/show_bug.cgi?id=2036178
Signed-off-by: Hanna Reitz <hreitz@redhat.com>
Signed-off-by: Stefan Hajnoczi <stefanha@redhat.com>
Message-Id: <20220111153613.25453-3-stefanha@redhat.com>
Signed-off-by: Kevin Wolf <kwolf@redhat.com>
tests/qemu-iotests/tests/stream-error-on-reset [new file with mode: 0755]
tests/qemu-iotests/tests/stream-error-on-reset.out [new file with mode: 0644]