[libvirt] [PATCH 1/5] Fix potential crash in libvirtd with active streams

Eric Blake eblake at redhat.com
Fri Jul 8 14:52:45 UTC 2011


On 07/08/2011 05:57 AM, Daniel P. Berrange wrote:
> From: "Daniel P. Berrange" <berrange at redhat.com>
> 
> If a client disconnects while it has a stream active, there is
> a race condition which could see libvirtd crash. This is because
> the client struct may be freed before the last stream event has
> triggered. THis is trivially solved by holding an extra reference

s/THis/This/

> on the client for the stream callbak
> 
> * daemon/stream.c: Acquire reference on client when adding the
>   stream callback
> ---
>  daemon/stream.c |   13 ++++++++++++-
>  1 files changed, 12 insertions(+), 1 deletions(-)
> 

ACK.

-- 
Eric Blake   eblake at redhat.com    +1-801-349-2682
Libvirt virtualization library http://libvirt.org

-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 619 bytes
Desc: OpenPGP digital signature
URL: <http://listman.redhat.com/archives/libvir-list/attachments/20110708/a68cc04b/attachment-0001.sig>


More information about the libvir-list mailing list