Re: [Qemu-devel] [PATCH 1/3] coroutine: Fix use after free with qemu_coroutine_yield()

2015-02-20 Thread Kevin Wolf
Am 10.02.2015 um 11:41 hat Kevin Wolf geschrieben: > Instead of using the same function for entering and exiting coroutines, > and hoping that it doesn't add any functionality that hurts with the > parameters used for exiting, we can just directly call into the real > task switch in qemu_coroutine_

[Qemu-devel] [PATCH 1/3] coroutine: Fix use after free with qemu_coroutine_yield()

2015-02-10 Thread Kevin Wolf
Instead of using the same function for entering and exiting coroutines, and hoping that it doesn't add any functionality that hurts with the parameters used for exiting, we can just directly call into the real task switch in qemu_coroutine_switch(). This fixes a use-after-free scenario where reent