]> git.ipfire.org Git - thirdparty/libvirt.git/commit
qemu: Fix crash when resuming failed post-copy migration
authorJiri Denemark <jdenemar@redhat.com>
Tue, 27 May 2025 09:48:49 +0000 (11:48 +0200)
committerJiri Denemark <jdenemar@redhat.com>
Tue, 27 May 2025 10:45:25 +0000 (12:45 +0200)
commit34ce7f25c5c1aa93cd6683759f94599e6bf88eea
tree9994ed0d8db4ec9d4622c23abed20379f6b2fb50
parentac4f855bb0f51da29c5435c029863b304bbd214a
qemu: Fix crash when resuming failed post-copy migration

Since commit 28a06215280 (released in 11.2.0) resuming a failed
post-copy migration calls qemuProcessIncomingDefNew with fd == NULL
rather than -1. The function does not expect to be called with NULL file
descriptor and tries to dereference it causing virtqemud on the
destination host to crash.

Fixes: 28a06215280b99708ed8dc2d183f62ba7b34ccf8
Signed-off-by: Jiri Denemark <jdenemar@redhat.com>
Reviewed-by: Peter Krempa <pkrempa@redhat.com>
src/qemu/qemu_migration.c