Re: [PATCH] storage: Fix bugs in VIR_APPEND_ELEMENT series

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

 



On 03/11/2014 01:54 PM, John Ferlan wrote:
>>From commit id 'd53bbfd1'
> 
> Found one core and one possible memory leak. Core seen during local
> virt-test/tp_libvirt run for the vol_create_from test. The memory leak
> was seen by inspection during a review of all VIR_APPEND_ELEMENT changes
> 
> In storage_backend_disk/virStorageBackendDiskMakeDataVol(), the 'vol'
> needs to be kept around since it's used later, so use the _COPY macro.
> This caused a segv in libvirtd:
> 
> Program received signal SIGSEGV, Segmentation fault.
> [Switching to Thread 0x7fffe87c3700 (LWP 6919)]
> virStorageBackendDiskMakeDataVol (vol=0x0, groups=0x7fffc8000d70, pool=0x7fffc8002460) at storage/storage_backend_disk.c:66
> 66          if (vol->target.path == NULL) {
> 
> In storage_backend_rbd/virStorageBackendRBDRefreshPool() there's a failure
> path where the 'vol' needs to go through virStorageVolDefFree() since it
> wouldn't be appended.
> 
> Signed-off-by: John Ferlan <jferlan@xxxxxxxxxx>

ACK.

-- 
Eric Blake   eblake redhat com    +1-919-301-3266
Libvirt virtualization library http://libvirt.org

Attachment: signature.asc
Description: OpenPGP digital signature

--
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]