See Patch 1 for the segfault fix. Patches 2 & 3 add qemu-iotests coverage.
This is a rare crash that we'll probably only see in testing. It only seems to happen with UNIX domain sockets. Stefan Hajnoczi (3): nbd-client: enter read_reply_co during init to avoid crash qemu-iotests: improve nbd-fault-injector.py startup protocol qemu-iotests: test NBD over UNIX domain sockets in 083 block/nbd-client.c | 2 +- tests/qemu-iotests/083 | 138 ++++++++++++++++++----------- tests/qemu-iotests/083.out | 145 +++++++++++++++++++++++++++---- tests/qemu-iotests/common.filter | 4 +- tests/qemu-iotests/nbd-fault-injector.py | 4 + 5 files changed, 220 insertions(+), 73 deletions(-) -- 2.13.5