Skip to content

migration: Ensure vmstate_save() sets errp

Merge Request Required Information

Summary of Changes

Not all migration paths always set errp on error, but it is expected they do. This can lead to NULL dereferences, which is reproducible when killing the virtiofsd process (on the source) during migration.

This patch ensures errp is always set on error.

(Merged upstream.)

Approved Development Ticket(s)

Jira: RHEL-63051

(https://issues.redhat.com/browse/RHEL-63051)

Edited by Miroslav Rezanina

Merge request reports

Loading