Skip to content

nbd-client: enter read_reply_co during init to avoid crash

Stefan Hajnoczi qemu-devel 2 versions – In review

Get series with b4
b4 am [email protected]

Versions newest first · linked by author and title

  1. v2 Latest3 patches 3 repliesIn review
  2. v13 patches 11 repliesSuperseded

Changes in v2 from the cover letter

* Rewrote Patch 1 following Paolo's suggestion [Paolo]

Patches in v2 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/3nbd-client: avoid read_reply_co entry if send failedblock/nbd-client.c+9 -162 replies
2/3qemu-iotests: improve nbd-fault-injector.py startup protocoltests/qemu-iotests/nbd-fault-injector.py+4 -00 replies
3/3qemu-iotests: test NBD over UNIX domain sockets in 083tests/qemu-iotests/083 tests/qemu-iotests/083.out tests/qemu-iotests/common.filter+215 -720 replies

Reviews trailers per patch

All 3 patches have a Reviewed-by or Acked-by.

PatchEric Blake
1/3R-b
2/3R-b
3/3R-b

Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes.

Read the v2 thread

Cover letter [Qemu-devel] [PATCH v2 0/3] nbd-client: enter read_reply_co during init to avoid crash

v2:
* Rewrote Patch 1 following Paolo's suggestion [Paolo]

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: avoid read_reply_co entry if send failed
qemu-iotests: improve nbd-fault-injector.py startup protocol
qemu-iotests: test NBD over UNIX domain sockets in 083

 block/nbd-client.c                       |  25 ++----
 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, 228 insertions(+), 88 deletions(-)
Signature · 1 line
2.13.5