[PATCH v2] Cygwin: signal: Copy context to alternate stack in the SA_ONSTACK case
Corinna Vinschen
corinna-cygwin@cygwin.com
Wed Mar 26 09:15:17 GMT 2025
On Mar 25 21:54, Takashi Yano wrote:
> After the commit 0210c77311ae, the context passed to signal handler
> cannot be accessed from the signal handler that uses alternate stack.
> This is because the context locally copied is on the stack that is
> different area from the signal handler uses. With this patch, copy
> the context to alternate signal stack area to avoid this situation.
>
> Addresses: https://cygwin.com/pipermail/cygwin/2025-March/257714.html
> Fixes: 0210c77311ae ("Cygwin: signal: Use context locally copied in call_signal_handler()")
> Reported-by: Bruno Haible <bruno@clisp.org>
> Reviewed-by: Corinna Vischen <corinna@vinschen.de>
> Signed-off-by: Takashi Yano <takashi.yano@nifty.ne.jp>
> ---
> winsup/cygwin/exceptions.cc | 8 ++++++++
> winsup/cygwin/release/3.6.1 | 5 +++++
> 2 files changed, 13 insertions(+)
LGTM, please push.
Thanks,
Corinna
More information about the Cygwin-patches
mailing list