Re: [PATCH] PanicCheckABIStability: Need to check for existence

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

 



On 12/20/2013 11:10 AM, John Ferlan wrote:
> Commit id '4313fead' added a call to virDomainPanicCheckABIStability()
> which did not check whether the panic device existed before making a call
> to virDomainDeviceInfoCheckABIStability() which ended up segfaulting:
> 

> Signed-off-by: John Ferlan <jferlan@xxxxxxxxxx>
> ---
> 

> +++ b/src/conf/domain_conf.c
> @@ -13709,6 +13709,9 @@ static bool
>  virDomainPanicCheckABIStability(virDomainPanicDefPtr src,
>                                  virDomainPanicDefPtr dst)
>  {
> +    if (!src && !dst)
> +        return true;
> +
>      return virDomainDeviceInfoCheckABIStability(&src->info, &dst->info);

Still crashes.  Minimal reproducer:

virsh save $dom $file
virsh save-image-edit $file
  add (or remove) a <panic/> line

This should fail ABI compatibility, not crash libvirtd.

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