[PATCH v2 0/5] migration: Hardening fixes for 11.2

Peter Xu posted 5 patches 2 months ago
Patches applied successfully (tree, apply log)
git fetch https://github.com/patchew-project/qemu tags/patchew/20260728210417.1925078-1-peterx@redhat.com
Maintainers: Peter Xu <peterx@redhat.com>, Fabiano Rosas <farosas@suse.de>
migration/channel.c        | 11 ++++-
migration/multifd-qatzip.c |  5 ++-
migration/multifd-qpl.c    | 24 ++++++++--
migration/multifd-uadk.c   | 24 ++++++++--
migration/multifd-zlib.c   | 11 ++++-
migration/multifd-zstd.c   | 11 ++++-
migration/ram.c            | 11 ++++-
migration/vmstate.c        | 91 ++++++++++++++++++++++++++++++++------
8 files changed, 159 insertions(+), 29 deletions(-)
[PATCH v2 0/5] migration: Hardening fixes for 11.2
Posted by Peter Xu 2 months ago
v2:
- Added R-bs
- Patch 2/3, update commit message on wrong use of term "release buillds"
- Patch 4, fix bug Dan pointed out, use assert() for !coroutine, update
  commit log

This is a small batch of fixes from recent reports on migration, the plan
is this is only for 11.2; we don't need to rush on any of them.

RDMA migration has its own small batch.. It'll take slightly longer so I'll
send them separately.

Reviews welcomed.

Peter Xu (5):
  migration: Fix possible overflow in vmstate_handle_alloc()
  migration/multifd: Validate next_packet_size in zlib/zstd recv
  migration/multifd: Replace assert() with error_setg() in recv paths
  migration: Fix rare hang of migration_channel_read_peek()
  migration/ram: Check for RAMBlock size mismatch when parsing

 migration/channel.c        | 11 ++++-
 migration/multifd-qatzip.c |  5 ++-
 migration/multifd-qpl.c    | 24 ++++++++--
 migration/multifd-uadk.c   | 24 ++++++++--
 migration/multifd-zlib.c   | 11 ++++-
 migration/multifd-zstd.c   | 11 ++++-
 migration/ram.c            | 11 ++++-
 migration/vmstate.c        | 91 ++++++++++++++++++++++++++++++++------
 8 files changed, 159 insertions(+), 29 deletions(-)

-- 
2.54.0
Re: [PATCH v2 0/5] migration: Hardening fixes for 11.2
Posted by Peter Xu 1 month, 2 weeks ago
On Tue, Jul 28, 2026 at 05:04:12PM -0400, Peter Xu wrote:
> v2:
> - Added R-bs
> - Patch 2/3, update commit message on wrong use of term "release buillds"
> - Patch 4, fix bug Dan pointed out, use assert() for !coroutine, update
>   commit log
> 
> This is a small batch of fixes from recent reports on migration, the plan
> is this is only for 11.2; we don't need to rush on any of them.
> 
> RDMA migration has its own small batch.. It'll take slightly longer so I'll
> send them separately.
> 
> Reviews welcomed.
> 
> Peter Xu (5):
>   migration: Fix possible overflow in vmstate_handle_alloc()
>   migration/multifd: Validate next_packet_size in zlib/zstd recv
>   migration/multifd: Replace assert() with error_setg() in recv paths
>   migration: Fix rare hang of migration_channel_read_peek()
>   migration/ram: Check for RAMBlock size mismatch when parsing

I queued patch 2,3,5.

I'll drop 1, Fabiano, please pick up relevant tags when you repost with
your other series to refactor num/size offsettings.

I'll repost patch 4 separately.

-- 
Peter Xu