[PATCH] Fix SS_ONSTACK support
authorSamuel Thibault <samuel.thibault@ens-lyon.org>
Sat, 29 Jun 2024 10:27:34 +0000 (13:27 +0300)
committerAdrian Bunk <bunk@debian.org>
Sat, 29 Jun 2024 10:27:34 +0000 (13:27 +0300)
commit6a124b439fbce432f09551a00dc5f99c293d2634
tree3eae8aafd626a752f2ebcc75286e2acc7efae2a9
parent85e19cb40460d7e8c0cdf66e9c4998a065b5b729
[PATCH] Fix SS_ONSTACK support

* sysdeps/mach/hurd/i386/sigreturn.c (__sigreturn2): New function,
unlocks SS and returns to the saved PC.
(__sigreturn): Do not unlock SS, and "return" into __sigreturn2 on the
thread stack instead of the saved PC.

Gbp-Pq: Topic hurd-i386
Gbp-Pq: Name tg-ONSTACK.diff
sysdeps/mach/hurd/i386/sigreturn.c