mailing list of musl libc
 help / color / mirror / code / Atom feed
* [musl] [PATCH] fix MINSIGSTKSZ and SIGSTKSZ for powerpc64
@ 2024-08-29  3:38 psykose
  2024-08-29 12:57 ` Rich Felker
  0 siblings, 1 reply; 7+ messages in thread
From: psykose @ 2024-08-29  3:38 UTC (permalink / raw)
  To: musl

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

^ permalink raw reply	[flat|nested] 7+ messages in thread

end of thread, other threads:[~2024-08-31 16:34 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2024-08-29  3:38 [musl] [PATCH] fix MINSIGSTKSZ and SIGSTKSZ for powerpc64 psykose
2024-08-29 12:57 ` Rich Felker
2024-08-29 16:00   ` alice
2024-08-29 19:03     ` Rich Felker
2024-08-29 19:11       ` alice
2024-08-29 20:23         ` Rich Felker
2024-08-31 16:33           ` Rich Felker

Code repositories for project(s) associated with this public inbox

	https://git.vuxu.org/mirror/musl/

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).