qemu-devel.nongnu.org archive mirror
 help / color / mirror / Atom feed
* [PATCH v3 0/2] block-backend: prevent dangling BDS pointers across aio_poll()
@ 2022-01-11 15:36 Stefan Hajnoczi
  2022-01-11 15:36 ` [PATCH v3 1/2] " Stefan Hajnoczi
                   ` (2 more replies)
  0 siblings, 3 replies; 4+ messages in thread
From: Stefan Hajnoczi @ 2022-01-11 15:36 UTC (permalink / raw)
  To: qemu-devel
  Cc: Kevin Wolf, Vladimir Sementsov-Ogievskiy, qemu-block, qemu-stable,
	Hanna Reitz, Stefan Hajnoczi

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

-- 
2.33.1




^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2022-01-12 10:26 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2022-01-11 15:36 [PATCH v3 0/2] block-backend: prevent dangling BDS pointers across aio_poll() Stefan Hajnoczi
2022-01-11 15:36 ` [PATCH v3 1/2] " Stefan Hajnoczi
2022-01-11 15:36 ` [PATCH v3 2/2] iotests/stream-error-on-reset: New test Stefan Hajnoczi
2022-01-12 10:23 ` [PATCH v3 0/2] block-backend: prevent dangling BDS pointers across aio_poll() Kevin Wolf

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).