[Top][All Lists]

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

Re: Thread safety of coroutine-sigaltstack

From: Max Reitz
Subject: Re: Thread safety of coroutine-sigaltstack
Date: Fri, 22 Jan 2021 09:48:07 +0100
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:78.0) Gecko/20100101 Thunderbird/78.5.0

On 20.01.21 18:25, Laszlo Ersek wrote:


A simple grep for SIGUSR2 seems to indicate that SIGUSR2 is not used by
system emulation for anything else, in practice. Is it possible to
dedicate SIGUSR2 explicitly to coroutine-sigaltstack, and set up the
action beforehand, from some init function that executes on a "central"
thread, before qemu_coroutine_new() is ever called?

I wrote a patch to that effect, but just before sending I wondered whether SIGUSR2 cannot be registered by the “guest” in user-mode emulation, and whether that would then break coroutines from there on.

(I have no experience dealing with user-mode emulation, but it does look like the guest can just register handlers for any signal but SIGSEGV and SIGBUS.)


reply via email to

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