From patchwork Thu Jan 24 18:27:38 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Samuel Thibault X-Patchwork-Id: 1030634 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Authentication-Results: ozlabs.org; spf=pass (mailfrom) smtp.mailfrom=sourceware.org (client-ip=209.132.180.131; helo=sourceware.org; envelope-from=libc-alpha-return-99544-incoming=patchwork.ozlabs.org@sourceware.org; receiver=) Authentication-Results: ozlabs.org; dmarc=none (p=none dis=none) header.from=ens-lyon.org Authentication-Results: ozlabs.org; dkim=pass (1024-bit key; secure) header.d=sourceware.org header.i=@sourceware.org header.b="h8z0wPok"; dkim-atps=neutral Received: from sourceware.org (server1.sourceware.org [209.132.180.131]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ozlabs.org (Postfix) with ESMTPS id 43lrHW36lmz9s4s for ; Fri, 25 Jan 2019 05:27:51 +1100 (AEDT) DomainKey-Signature: a=rsa-sha1; c=nofws; d=sourceware.org; h=list-id :list-unsubscribe:list-subscribe:list-archive:list-post :list-help:sender:from:to:cc:subject:date:message-id :mime-version:content-transfer-encoding; q=dns; s=default; b=Qag O72SWwm1GAHb3l3xCaO5tKk7+JyEl5v4GV6PpELsDHuTrAHj6TJueqAznqj/6FmR rOs+rHCWWoj7NjvJFkF7bmIzWmpiOdFDJ48fV9oqTuM35WgJ5JHBDU0InE2NcHfc VjqYVUfqzDeo6vLsqS9efBulzowDxG4OI6TUm7YI= DKIM-Signature: v=1; a=rsa-sha1; c=relaxed; d=sourceware.org; h=list-id :list-unsubscribe:list-subscribe:list-archive:list-post :list-help:sender:from:to:cc:subject:date:message-id :mime-version:content-transfer-encoding; s=default; bh=txYg2jYXu 7MkdCWZfjRo9BD2iQg=; b=h8z0wPok3bT4x0efdKfYp6cp0wi78avOaN0cy0zIr QwWX4YvsvXiv2EQnevVxbwoYGGKrDpHSvC/OW+WPU6TFtKMAgXEMHlna3WzYjpTq l5AkQmn1ogs6TpfX6n/5vvAlfWe/wa2NPOxOfMBgwSvsyVf5EZuTdIBIc2gT1EkU a4= Received: (qmail 54840 invoked by alias); 24 Jan 2019 18:27:45 -0000 Mailing-List: contact libc-alpha-help@sourceware.org; run by ezmlm Precedence: bulk List-Id: List-Unsubscribe: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: libc-alpha-owner@sourceware.org Delivered-To: mailing list libc-alpha@sourceware.org Received: (qmail 54823 invoked by uid 89); 24 Jan 2019 18:27:45 -0000 Authentication-Results: sourceware.org; auth=none X-Spam-SWARE-Status: No, score=-26.1 required=5.0 tests=BAYES_00, GIT_PATCH_0, GIT_PATCH_1, GIT_PATCH_2, GIT_PATCH_3, RCVD_IN_DNSWL_NONE, SPF_HELO_PASS, SPF_NEUTRAL autolearn=ham version=3.3.2 spammy=suspended, HContent-Transfer-Encoding:8bit X-HELO: hera.aquilenet.fr From: Samuel Thibault To: libc-alpha@sourceware.org Cc: Samuel Thibault , commit-hurd@gnu.org Subject: [hurd,commited] hurd: Fix initial sigaltstack state Date: Thu, 24 Jan 2019 19:27:38 +0100 Message-Id: <20190124182738.8876-1-samuel.thibault@ens-lyon.org> MIME-Version: 1.0 * hurd/hurdsig.c (_hurd_thread_sigstate): Set SS_DISABLE in sigaltstack.ss_flags. --- ChangeLog | 5 +++++ hurd/hurdsig.c | 1 + 2 files changed, 6 insertions(+) diff --git a/ChangeLog b/ChangeLog index 8f3924d742..60f4e60db0 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,8 @@ +2019-01-24 Samuel Thibault + + * hurd/hurdsig.c (_hurd_thread_sigstate): Set SS_DISABLE in + sigaltstack.ss_flags. + 2019-01-24 TAMUKI Shoichi [BZ #23758] 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;