Skip to content

block-backend: prevent dangling BDS pointers across aio_poll()

Stefan Hajnoczi qemu-devel 2 versions – Applied

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

Get series with b4
b4 am [email protected]

Versions newest first · linked by author and title

  1. v3 Latest2 patches 1 replyApplied
  2. v21 patch 7 repliesSuperseded

Patches in v3 Applied

#Subject and filesSizeRepliesApplied
1/2block-backend: prevent dangling BDS pointers across aio_poll()block/block-backend.c+17 -20 replies
2/2iotests/stream-error-on-reset: New testtests/qemu-iotests/tests/stream-error-on-reset tests/qemu-iotests/tests/stream-error-on-reset.out+145 -00 replies

Reviews trailers per patch

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

Read the v3 thread

Cover letter [PATCH v3 0/2] block-backend: prevent dangling BDS pointers across aio_poll()

This series fixes use-after-free bugs when blk->root changes across aio_poll(). For example, a temporary filter node can be removed by a blockjob when a drained section begins. If the caller doesn't hold a ref on the BDS then it will have been freed.

Hanna Reitz (1):
iotests/stream-error-on-reset: New test

Stefan Hajnoczi (1):
block-backend: prevent dangling BDS pointers across aio_poll()

 block/block-backend.c                         |  19 ++-
 .../qemu-iotests/tests/stream-error-on-reset  | 140 ++++++++++++++++++
 .../tests/stream-error-on-reset.out           |   5 +
 3 files changed, 162 insertions(+), 2 deletions(-)
 create mode 100755 tests/qemu-iotests/tests/stream-error-on-reset
 create mode 100644 tests/qemu-iotests/tests/stream-error-on-reset.out
Signature · 1 line
2.33.1