libvirt/src/lxc
Martin Kletzander e4200bbb9d lxc: Don't crash by forgetting to ref transient domains
So commit 306b3a8504 tried mimicking behaviour of commit 540c339a25, but
added a virObjectRef(vm) only after virDomainObjListAdd() in
lxcDomainDefineXMLFlags() and not in lxcDomainCreateXMLWithFiles().
That way undefining a domain that was started with different XML than
defined will leave the domain object in a state with not enough
references to then remove it.  Hence any lxcDomainDestroyFlags() called
afterwards crashes the daemon.

Resolves: https://bugzilla.redhat.com/show_bug.cgi?id=1351057

Signed-off-by: Martin Kletzander <mkletzan@redhat.com>
2016-07-24 09:08:20 +02:00
..
libvirtd_lxc.aug
lxc_cgroup.c filesystem: adds possibility to use storage pool as fs source 2016-07-18 23:39:56 +03:00
lxc_cgroup.h
lxc_conf.c lxc: convert to typesafe virConf accessors 2016-07-12 09:58:21 +01:00
lxc_conf.h lxc: convert to typesafe virConf accessors 2016-07-12 09:58:21 +01:00
lxc_container.c lxc: make container's init process session leader 2016-07-22 09:40:10 +01:00
lxc_container.h
lxc_controller.c lxc: errors after the handshake won't be reported 2016-07-19 16:23:25 +02:00
lxc_domain.c lxc: completely rework reference counting 2016-05-24 16:54:01 +02:00
lxc_domain.h lxc: completely rework reference counting 2016-05-24 16:54:01 +02:00
lxc_driver.c lxc: Don't crash by forgetting to ref transient domains 2016-07-24 09:08:20 +02:00
lxc_driver.h
lxc_fuse.c conf: Rename virDomainDefGetMemoryActual to virDomainDefGetMemoryTotal 2016-06-17 10:39:40 +02:00
lxc_fuse.h headers: Remove unnecessary keyword extern from function declaration 2016-05-11 09:06:32 +02:00
lxc_hostdev.c
lxc_hostdev.h
lxc_monitor_protocol.x
lxc_monitor.c
lxc_monitor.h
lxc_native.c filesystem: adds possibility to use storage pool as fs source 2016-07-18 23:39:56 +03:00
lxc_native.h
lxc_process.c fs: Fix '<' comparison of value produced by logical not '!' 2016-07-19 09:38:40 +02:00
lxc_process.h lxc: support <interface type='ethernet'> 2016-05-24 15:21:05 -04:00
lxc.conf
test_libvirtd_lxc.aug.in