[libvirt] [PATCH] lxc: avoid use-after-free

Eric Blake eblake at redhat.com
Fri Nov 4 14:30:20 UTC 2011


On 11/04/2011 07:32 AM, Daniel P. Berrange wrote:
> On Thu, Nov 03, 2011 at 05:33:38PM -0600, Eric Blake wrote:
>> I got this weird failure:
>>
>> error: Failed to start domain simple
>> error: internal error cannot mix caller fds with blocking execution
>>
>> and tracked it down to a use-after-free - virCommandSetOutputFD
>> was storing the address of a stack-local variable, which then
>> went out of scope before the virCommandRun that dereferenced it.
>>
>> Bug introduced in commit 451cfd05 (0.9.2).
>>
>
> ACK

Thanks; pushed.

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




More information about the libvir-list mailing list