[PATCH 0/3 RESENT] Fix virsh race and coredump

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Please consider for 1.0.4 as this prevents a potential data
corruption or segfault. The race is caused by referencing a
disposed connection object in a callback.

In the first patch we make sure that the object reference count
is reflecting the callback registration. This prevents a premature
disposal.

The second patch prevents the invocation of a NULL callback.

The last one tries to ensure that we don't leak connection
references in virsh.

Viktor Mihajlovski (3):
  libvirt: Increase connection reference count for callbacks
  remote: Don't call NULL closeFreeCallback
  virsh: Unregister the connection close notifier upon termination

 src/libvirt.c              |    5 +++++
 src/remote/remote_driver.c |    3 ++-
 tools/virsh.c              |   23 +++++++++++++++++------
 3 files changed, 24 insertions(+), 7 deletions(-)

-- 
1.7.9.5

--
libvir-list mailing list
libvir-list@xxxxxxxxxx
https://www.redhat.com/mailman/listinfo/libvir-list




[Index of Archives]     [Virt Tools]     [Libvirt Users]     [Lib OS Info]     [Fedora Users]     [Fedora Desktop]     [Fedora SELinux]     [Big List of Linux Books]     [Yosemite News]     [KDE Users]     [Fedora Tools]

  Powered by Linux