[libvirt] [PATCH] qemu_migration: Avoid writing to freed memory

Ján Tomko jtomko at redhat.com
Mon Aug 6 12:13:54 UTC 2018


On Thu, Aug 02, 2018 at 05:07:33PM +0200, Jiri Denemark wrote:
>When a domain is killed on the source host while it is being migrated
>and libvirtd is waiting for the migration to finish (waiting for the
>domain condition in qemuMigrationSrcWaitForCompletion), the run-time
>state including priv->job.current may already be freed once
>virDomainObjWait returns with -1. Thus the priv->job.current pointer
>cached in jobInfo is no longer valid and setting jobInfo->status may
>crash the daemon.
>
>https://bugzilla.redhat.com/show_bug.cgi?id=1593137
>
>Signed-off-by: Jiri Denemark <jdenemar at redhat.com>
>---
> src/qemu/qemu_migration.c | 3 ++-
> 1 file changed, 2 insertions(+), 1 deletion(-)
>

Reviewed-by: Ján Tomko <jtomko at redhat.com>

Jano
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 833 bytes
Desc: Digital signature
URL: <http://listman.redhat.com/archives/libvir-list/attachments/20180806/8a17f801/attachment-0001.sig>


More information about the libvir-list mailing list