Fix crash if try to remove bitmap on target during migration
Status from this message: Thanks, applied to my block tree:
Get series with b4
b4 am [email protected]Versions newest first
Patches in v1 Applied
| # | Subject and files | Size | Replies | Applied |
|---|---|---|---|---|
| 1/2 | migration/block-dirty-bitmap: make incoming disabled bitmaps busymigration/ | +6 | 0 replies | |
| 2/2 | migrate-bitmaps-postcopy-test: check that we can't remove in-flight bitmapstests/ | +9 | 0 replies |
Reviews trailers per patch
No Reviewed-by, Acked-by or Tested-by trailers for v1 yet.
Cover letter [PATCH 0/2] Fix crash if try to remove bitmap on target during migration
Hi all!
Bitmaps on source are marked busy during migration.
Enabled bitmaps on target have successor, so they are busy.
But disabled migrated bitmaps are not protected on target. User can simple remove them and it lead to use-after-free. These bitmaps should be marked busy.
Vladimir Sementsov-Ogievskiy (2):
migration/block-dirty-bitmap: make incoming disabled bitmaps busy migrate-bitmaps-postcopy-test: check that we can't remove in-flight
bitmaps
migration/block-dirty-bitmap.c | 6 ++++++ tests/qemu-iotests/tests/migrate-bitmaps-postcopy-test | 9 +++++++++ 2 files changed, 15 insertions(+)
Signature · 1 line
2.29.2