[libvirt] [PATCH v2 1/2] qemu: Avoid double free of VM
Ján Tomko
jtomko at redhat.com
Thu Nov 7 15:04:51 UTC 2013
On 11/06/2013 07:05 PM, Michal Privoznik wrote:
> One of my previous patches (c7ac2519b7f) did try to fix the issue when
> domain dies too soon during migration. However, this clumsy approach was
> missing removal of qemuProcessHandleMonitorDestroy resulting in double
> unrefing of mon->vm and hence producing the daemon crash:
>
>
> Signed-off-by: Michal Privoznik <mprivozn at redhat.com>
> ---
> src/qemu/qemu_process.c | 16 +++-------------
> 1 file changed, 3 insertions(+), 13 deletions(-)
>
> @@ -1403,7 +1394,7 @@ qemuConnectMonitor(virQEMUDriverPtr driver, virDomainObjPtr vm, int logfd)
> }
>
> /* Hold an extra reference because we can't allow 'vm' to be
> - * deleted while the monitor is active */
> + * deleted while the monitor is unlocked */
This seems wrong, how about "deleted unitl the monitor gets its own reference"?
> virObjectRef(vm);
>
> ignore_value(virTimeMillisNow(&priv->monStart));
ACK
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 836 bytes
Desc: OpenPGP digital signature
URL: <http://listman.redhat.com/archives/libvir-list/attachments/20131107/54d2c5a0/attachment-0001.sig>
More information about the libvir-list
mailing list