[libvirt] [PATCH] test: Avoid use-after-free on virDomainSnapshotDelete

Eric Blake eblake at redhat.com
Fri Mar 22 18:35:50 UTC 2019


On 3/22/19 10:19 AM, Michal Privoznik wrote:
> On 3/17/19 5:13 AM, Eric Blake wrote:
>> The following virsh command was triggering a use-after-free:
>>
>> $ virsh -c test:///default '
>>    snapshot-create-as test s1
>>    snapshot-create-as test s2
>>    snapshot-delete --children-only test s1
>>    snapshot-current --name test'
>> Domain snapshot s1 created
>> Domain snapshot s2 created
>> Domain snapshot s1 children deleted
>>

>> Signed-off-by: Eric Blake <eblake at redhat.com>
>> ---
>>   src/test/test_driver.c | 13 +++----------
>>   1 file changed, 3 insertions(+), 10 deletions(-)
> 
> I'm unable to apply this after you've merged your other patches. Can you
> please rebase and resend?

Already applied - this is now commit 1db9d0ef (applied after including
it in my other series, where it got reviewe there). Sorry for not
marking this thread as obsoleted by a new series.

-- 
Eric Blake, Principal Software Engineer
Red Hat, Inc.           +1-919-301-3226
Virtualization:  qemu.org | libvirt.org

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


More information about the libvir-list mailing list