libvirt/src/lxc
Michal Privoznik 5f5a5a42e5 lxcDomainCreateXMLWithFiles: Avoid crash
https://bugzilla.redhat.com/show_bug.cgi?id=1363773

Imagine that you're creating a transient domain, but for some reason,
starting it fails. That is virLXCProcessStart() returns an error. With
current code, in the error handling code the domain object is removed
from the domain object list, @vm is set to NULL and controls jump to
enjob label where virLXCDomainObjEndJob() is called which dereference vm
leading to instant crash.

The fix is to end the job in the error handling code and only after that
remove the domain from the list and jump onto cleanup label instead of
endjob.

Signed-off-by: Michal Privoznik <mprivozn@redhat.com>
2016-08-05 15:50:19 +02:00
..
libvirtd_lxc.aug Add support for sVirt in the LXC driver 2012-02-02 17:44:39 -07:00
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: report veth device indexes to systemd 2015-01-27 13:57:02 +00:00
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: Inherit namespace feature 2015-08-26 11:28:30 +01:00
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 lxcDomainCreateXMLWithFiles: Avoid crash 2016-08-05 15:50:19 +02:00
lxc_driver.h maint: don't use config.h in .h files 2013-06-05 05:53:25 -06:00
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 Replace Usb with USB throughout 2014-04-08 11:10:59 +01:00
lxc_hostdev.h Replace Usb with USB throughout 2014-04-08 11:10:59 +01:00
lxc_monitor_protocol.x Unify int types handling in protocol files 2016-01-11 19:56:06 +03:00
lxc_monitor.c Indent top-level labels by one space in src/lxc/ 2014-03-25 14:58:39 +01:00
lxc_monitor.h Fix generation of systemtap probes for RPC protocols 2013-03-14 12:42:22 +00:00
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: use virDomainDefPostParse for parsing LXC config string 2015-12-09 12:59:02 +01:00
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 Standardize whitespace used in example config files 2012-05-28 10:59:13 +01:00
test_libvirtd_lxc.aug.in Autogenerate augeas test case from default config files 2012-05-28 11:07:12 +01:00