From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.4 (2020-01-24) on inbox.vuxu.org X-Spam-Level: X-Spam-Status: No, score=-2.9 required=5.0 tests=DKIM_INVALID,DKIM_SIGNED, HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI,RCVD_IN_DNSWL_MED, RCVD_IN_MSPIKE_H4,RCVD_IN_MSPIKE_WL,T_SCC_BODY_TEXT_LINE autolearn=ham autolearn_force=no version=3.4.4 Received: from second.openwall.net (second.openwall.net [193.110.157.125]) by inbox.vuxu.org (Postfix) with SMTP id D2EFB2B8FC for ; Thu, 29 Aug 2024 05:50:42 +0200 (CEST) Received: (qmail 25612 invoked by uid 550); 29 Aug 2024 03:50:36 -0000 Mailing-List: contact musl-help@lists.openwall.com; run by ezmlm Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-ID: Reply-To: musl@lists.openwall.com Received: (qmail 24552 invoked from network); 29 Aug 2024 03:50:35 -0000 Message-Id: DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ayaya.dev; s=key1; t=1724903428; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc; bh=9jrXbMAcknYUD27qGdEFD0ZMpXtMwhIt0QpUBJLQogs=; b=RiNnUNUhzY5pjMyyymUqV4xs8EIJlHL00iPDhpXeUWFveDZZOqVxGvggq8L5lXch5WvQej QAqQYBsELM9dTvpJHJzdYUtOIyTrenTgeGNovXRm1fLwslRai4ltmVoQSO5wXsVreQ7fFp pbxdfpKgOl+4sICyFHciOQ2tJ08oeRo= To: X-Report-Abuse: Please report any abuse attempt to abuse@migadu.com and include these headers. From: "psykose" Date: Thu, 29 Aug 2024 05:38:42 +0200 X-Migadu-Flow: FLOW_OUT Subject: [musl] [PATCH] fix MINSIGSTKSZ and SIGSTKSZ for powerpc64 since kernel commit 2f82ec19757f58549467db568c56e7dfff8af283 (https://github.com/torvalds/linux/commit/2f82ec19757f58549467db568c56e7dfff8af283) the kernel has updated these minimum values. having these small values breaks sysconf(_SC_MINSIGSTKSZ) too; it returns 4224 in musl currently which ends up returning ENOMEM from the syscall made in sigaltstack. raising these to match the kernel fixes sigaltstack use on powerpc64(le). caught by glib's 2.82 testsuite --- arch/powerpc64/bits/signal.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/arch/powerpc64/bits/signal.h b/arch/powerpc64/bits/signal.h index d5493b18..3b16c4f9 100644 --- a/arch/powerpc64/bits/signal.h +++ b/arch/powerpc64/bits/signal.h @@ -2,8 +2,8 @@ || defined(_XOPEN_SOURCE) || defined(_GNU_SOURCE) || defined(_BSD_SOURCE) #if defined(_XOPEN_SOURCE) || defined(_GNU_SOURCE) || defined(_BSD_SOURCE) -#define MINSIGSTKSZ 4096 -#define SIGSTKSZ 10240 +#define MINSIGSTKSZ 8192 +#define SIGSTKSZ 32768 #endif #if defined(_GNU_SOURCE) || defined(_BSD_SOURCE) base-commit: dd1e63c3638d5f9afb857fccf6ce1415ca5f1b8b -- 2.46.0