Commit 9718ee10 authored by Samuel Thibault's avatar Samuel Thibault

hurd: fix altstack initial state.

debian/patches/hurd-i386/git-altstack.diff
parent 4be20458
......@@ -2,6 +2,8 @@ glibc (2.28-6) UNRELEASED; urgency=medium
* debian/patches/hurd-i386/git-AT_EMPTY_PATH.diff: New patch, fixes qt's
file size query.
* debian/patches/hurd-i386/git-altstack.diff: New patch, fixes altstack
initial state.
-- Samuel Thibault <sthibault@debian.org> Tue, 22 Jan 2019 23:42:47 +0100
......
commit a0bb5abd09e3d0f66c3dccf70bf74c8b2d7cc1c2
Author: Samuel Thibault <samuel.thibault@ens-lyon.org>
Date: Thu Jan 24 19:27:00 2019 +0100
hurd: Fix initial sigaltstack state
* hurd/hurdsig.c (_hurd_thread_sigstate): Set SS_DISABLE in
sigaltstack.ss_flags.
diff --git a/hurd/hurdsig.c b/hurd/hurdsig.c
index 1d9516a2f7..1e4b3466ce 100644
--- a/hurd/hurdsig.c
+++ b/hurd/hurdsig.c
@@ -92,6 +92,7 @@ _hurd_thread_sigstate (thread_t thread)
__sigemptyset (&ss->blocked);
__sigemptyset (&ss->pending);
memset (&ss->sigaltstack, 0, sizeof (ss->sigaltstack));
+ ss->sigaltstack.ss_flags |= SS_DISABLE;
ss->preemptors = NULL;
ss->suspended = MACH_PORT_NULL;
ss->intr_port = MACH_PORT_NULL;
......@@ -94,6 +94,7 @@ hurd-i386/git-lockf-0.diff
hurd-i386/tg-WRLCK-upgrade.diff
hurd-i386/git-libpthread_setpshared.diff
hurd-i386/git-AT_EMPTY_PATH.diff
hurd-i386/git-altstack.diff
i386/local-biarch.diff
i386/unsubmitted-quiet-ldconfig.diff
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment