Skip to content

block: Fix multiwrite error handling

Kevin Wolf qemu-devel 2 versions – In review

Get series with b4
b4 am [email protected]

Versions newest first · linked by author and title

  1. v2 Latest2 patches 2 repliesIn review
  2. v12 patches 4 repliesSuperseded

Changes in v2 from the cover letter

- Completely replaced patch 1 which Stefan found to be incorrect (thanks for the good review!). Hope I've got it right this time.

Patches in v2 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/2block: Fix early failure in multiwriteblock.c+29 -62 replies
2/2block: Handle multiwrite errors only when all requests have completedblock.c+1 -40 replies

Reviews trailers per patch

No Reviewed-by, Acked-by or Tested-by trailers for v2 yet.

Read the v2 thread

Cover letter [Qemu-devel] [PATCH v2 0/2] block: Fix multiwrite error handling

The bdrv_aio_multiwrite error handling has some bugs that lead to premature cleanup, causing use-after-free and double free problems.

v2:
- Completely replaced patch 1 which Stefan found to be incorrect (thanks for the good review!). Hope I've got it right this time.

Kevin Wolf (2):
block: Fix early failure in multiwrite
block: Handle multiwrite errors only when all requests have completed

 block.c |   40 ++++++++++++++++++++++++++++++----------
 1 files changed, 30 insertions(+), 10 deletions(-)