qemu-block
[Top][All Lists]
Advanced

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

Re: [Qemu-block] [PATCH] test-coroutine: Fix coroutine pool corruption


From: Kevin Wolf
Subject: Re: [Qemu-block] [PATCH] test-coroutine: Fix coroutine pool corruption
Date: Fri, 12 Aug 2016 11:01:12 +0200
User-agent: Mutt/1.5.21 (2010-09-15)

Am 10.08.2016 um 13:17 hat Kevin Wolf geschrieben:
> The test case overwrites the Coroutine object with 0xff as a way to
> assert that the coroutine isn't used any more. However, this means that
> the coroutine pool now contains a corrupted object and later test cases
> may get this corrupted object and crash.
> 
> This patch saves the real content of the object and restores it after
> completing the test. The only use of the coroutine pool between those
> two points is the deletion of co2. As this only means an insertion at
> the head of an SLIST (release_pool or alloc_pool), it doesn't access the
> invalid list pointers that co1 has during this period.
> 
> Signed-off-by: Kevin Wolf <address@hidden>

Applied to block-next.

Kevin



reply via email to

[Prev in Thread] Current Thread [Next in Thread]