Commit 529a0f0
committed
Cygwin: signal: Copy context to alternate stack in the SA_ONSTACK case
After the commit 0210c77, 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.
Backported-from: 7f67575 (Cygwin: signal: Copy context to alternate stack in the SA_ONSTACK case, 2025-03-25)
Addresses: https://cygwin.com/pipermail/cygwin/2025-March/257714.html
Fixes: 0210c77 ("Cygwin: signal: Use context locally copied in call_signal_handler()")
Reported-by: Bruno Haible <[email protected]>
Reviewed-by: Corinna Vischen <[email protected]>
Signed-off-by: Takashi Yano <[email protected]>
(cherry picked from commit 0d0e76b)
Signed-off-by: Johannes Schindelin <[email protected]>1 parent 4fbceca commit 529a0f0
2 files changed
+13
-0
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1807 | 1807 | | |
1808 | 1808 | | |
1809 | 1809 | | |
| 1810 | + | |
| 1811 | + | |
| 1812 | + | |
| 1813 | + | |
| 1814 | + | |
| 1815 | + | |
| 1816 | + | |
1810 | 1817 | | |
1811 | 1818 | | |
1812 | 1819 | | |
| |||
1850 | 1857 | | |
1851 | 1858 | | |
1852 | 1859 | | |
| 1860 | + | |
1853 | 1861 | | |
1854 | 1862 | | |
1855 | 1863 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
6 | 6 | | |
7 | 7 | | |
8 | 8 | | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
0 commit comments