Re: [PATCHv2] qemu: Prevent crash of libvirtd without guest agent

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

 



Thanks and pushed.

----- Original Message -----
From: "Jiri Denemark" <jdenemar@xxxxxxxxxx>
To: ajia@xxxxxxxxxx
Cc: libvir-list@xxxxxxxxxx
Sent: Thursday, February 16, 2012 9:40:13 PM
Subject: Re:  [PATCHv2] qemu: Prevent crash of libvirtd without guest agent

On Thu, Feb 16, 2012 at 10:54:40 +0800, ajia@xxxxxxxxxx wrote:
> From: Alex Jia <ajia@xxxxxxxxxx>
> 
> * src/qemu/qemu_process.c (qemuFindAgentConfig): avoid crash libvirtd due to
> deref a NULL pointer.
> 
> * How to reproduce?
> 1. virsh edit the following xml into guest configuration:
>     <channel type='pty'>
>       <target type='virtio'/>
>     </channel>
> 2. virsh start <domain>
> 
> or
> % virt-install -n foo -r 1024 --disk path=/var/lib/libvirt/images/foo.img,size=1 \
> --channel pty,target_type=virtio -l <installation tree>
> 
> Signed-off-by: Alex Jia <ajia@xxxxxxxxxx>
> ---
>  src/qemu/qemu_process.c |    2 +-
>  1 files changed, 1 insertions(+), 1 deletions(-)

ACK

Jirka

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