]> git.proxmox.com Git - mirror_qemu.git/commit
coroutine-ucontext: Save fake stack for pooled coroutine
authorAkihiko Odaki <akihiko.odaki@daynix.com>
Wed, 17 Jan 2024 07:06:02 +0000 (16:06 +0900)
committerStefan Hajnoczi <stefanha@redhat.com>
Mon, 22 Jan 2024 16:00:12 +0000 (11:00 -0500)
commitd9945ccda08ef83b09ac7725b6ee2d1959f2c0c0
tree291f6dea2a01eda9fa1846ccac0c84235a64c0a8
parent09be34717190c1620f0c6e5c8765b8da354aeb4b
coroutine-ucontext: Save fake stack for pooled coroutine

Coroutine may be pooled even after COROUTINE_TERMINATE if
CONFIG_COROUTINE_POOL is enabled and fake stack should be saved in
such a case to keep AddressSanitizerUseAfterReturn working. Even worse,
I'm seeing stack corruption without fake stack being saved.

Signed-off-by: Akihiko Odaki <akihiko.odaki@daynix.com>
Reviewed-by: Marc-André Lureau <marcandre.lureau@redhat.com>
Signed-off-by: Stefan Hajnoczi <stefanha@redhat.com>
Message-ID: <20240117-asan-v2-1-26f9e1ea6e72@daynix.com>
util/coroutine-ucontext.c