Skip to content

block/mirror: Fix use-after-free

Max Reitz qemu-devel 1 version Applied

Status from this message: Thanks, applied to the block branch.

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest2 patches 4 repliesApplied

Patches in v1 Applied

#Subject and filesSizeRepliesApplied
1/2block/mirror: Fix use-after-freeblock/mirror.c+10 -21 reply
2/2iotests: Add mirror tests for orphaned sourcetests/qemu-iotests/041 tests/qemu-iotests/041.out tests/qemu-iotests/iotests.py+63 -21 reply

Reviews trailers per patch

All 2 patches have a Reviewed-by or Acked-by of their own; the series has one for all of them.

PatchPhilippe Mathieu-DaudéEric BlakeJohn Snow
SeriesR-b
1/2R-b
2/2R-b

Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes. Scroll the table sideways for all 3 reviewers.

Read the v1 thread

Cover letter [Qemu-devel] [PATCH for-2.9 0/2] block/mirror: Fix use-after-free

And the exciting 2.9 ride continues!

When mirroring from a BDS with no parents at all (such as those added with -blockdev or blockdev-add), we have a use-after-free in mirror's error path. The first patch of this series fixes that, the other adds a patch so we don't regress.

What issue will we find next? Stay tuned!

Max Reitz (2):
block/mirror: Fix use-after-free
iotests: Add mirror tests for orphaned source

 block/mirror.c                | 12 +++++++++--
 tests/qemu-iotests/041        | 46 +++++++++++++++++++++++++++++++++++++++++++
 tests/qemu-iotests/041.out    |  4 ++--
 tests/qemu-iotests/iotests.py | 15 ++++++++++++++
 4 files changed, 73 insertions(+), 4 deletions(-)
Signature · 1 line
2.12.1