[libvirt] [PATCHv2] qemu: Prevent crash of libvirtd without guest agent
Jiri Denemark
jdenemar at redhat.com
Thu Feb 16 13:40:13 UTC 2012
On Thu, Feb 16, 2012 at 10:54:40 +0800, ajia at redhat.com wrote:
> From: Alex Jia <ajia at redhat.com>
>
> * 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 at redhat.com>
> ---
> src/qemu/qemu_process.c | 2 +-
> 1 files changed, 1 insertions(+), 1 deletions(-)
ACK
Jirka
More information about the libvir-list
mailing list