From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from lists.gentoo.org (pigeon.gentoo.org [208.92.234.80]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits)) (No client certificate requested) by finch.gentoo.org (Postfix) with ESMTPS id E417015808B for ; Mon, 19 Feb 2024 00:52:08 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 17DEBE2AA9; Mon, 19 Feb 2024 00:52:08 +0000 (UTC) Received: from smtp.gentoo.org (woodpecker.gentoo.org [140.211.166.183]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) by pigeon.gentoo.org (Postfix) with ESMTPS id ED34AE2AA9 for ; Mon, 19 Feb 2024 00:52:07 +0000 (UTC) Received: from oystercatcher.gentoo.org (oystercatcher.gentoo.org [148.251.78.52]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) by smtp.gentoo.org (Postfix) with ESMTPS id E007A342FF6 for ; Mon, 19 Feb 2024 00:52:06 +0000 (UTC) Received: from localhost.localdomain (localhost [IPv6:::1]) by oystercatcher.gentoo.org (Postfix) with ESMTP id 826B91301 for ; Mon, 19 Feb 2024 00:52:04 +0000 (UTC) From: "Andreas K. Hüttel" To: gentoo-commits@lists.gentoo.org Content-Transfer-Encoding: 8bit Content-type: text/plain; charset=UTF-8 Reply-To: gentoo-dev@lists.gentoo.org, "Andreas K. Hüttel" Message-ID: <1708303907.d8f2b399fa774ad4d337c59bdafe4c1310b59b39.dilfridge@gentoo> Subject: [gentoo-commits] proj/toolchain/glibc-patches:master commit in: 9999/ X-VCS-Repository: proj/toolchain/glibc-patches X-VCS-Files: 9999/0007-Mitigation-for-clone-on-sparc-might-fail-with-EFAULT.patch X-VCS-Directories: 9999/ X-VCS-Committer: dilfridge X-VCS-Committer-Name: Andreas K. Hüttel X-VCS-Revision: d8f2b399fa774ad4d337c59bdafe4c1310b59b39 X-VCS-Branch: master Date: Mon, 19 Feb 2024 00:52:04 +0000 (UTC) Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-commits@lists.gentoo.org X-Auto-Response-Suppress: DR, RN, NRN, OOF, AutoReply X-Archives-Salt: b9777ddf-2dea-4754-94c0-b546cec4b8ea X-Archives-Hash: 8bcfeb8e80567676ffc897ebf5f82856 commit: d8f2b399fa774ad4d337c59bdafe4c1310b59b39 Author: Andreas K. Hüttel gentoo org> AuthorDate: Mon Feb 19 00:51:47 2024 +0000 Commit: Andreas K. Hüttel gentoo org> CommitDate: Mon Feb 19 00:51:47 2024 +0000 URL: https://gitweb.gentoo.org/proj/toolchain/glibc-patches.git/commit/?id=d8f2b399 Add sparc kernel bug workaround Signed-off-by: Andreas K. Hüttel gentoo.org> ...for-clone-on-sparc-might-fail-with-EFAULT.patch | 50 ++++++++++++++++++++++ 1 file changed, 50 insertions(+) diff --git a/9999/0007-Mitigation-for-clone-on-sparc-might-fail-with-EFAULT.patch b/9999/0007-Mitigation-for-clone-on-sparc-might-fail-with-EFAULT.patch new file mode 100644 index 0000000..65fb098 --- /dev/null +++ b/9999/0007-Mitigation-for-clone-on-sparc-might-fail-with-EFAULT.patch @@ -0,0 +1,50 @@ +From e2218c420f1aca6c8910f4ddd6df11815c137bdf Mon Sep 17 00:00:00 2001 +From: Michael Karcher +Date: Sat, 17 Feb 2024 22:47:58 +0100 +Subject: [PATCH] Mitigation for "clone on sparc might fail with -EFAULT for no + valid reason" +MIME-Version: 1.0 +Content-Type: text/plain; charset=UTF-8 +Content-Transfer-Encoding: 8bit + +Bug: https://www.mail-archive.com/debian-glibc@lists.debian.org/msg62592.html +Bug: https://sourceware.org/bugzilla/show_bug.cgi?id=31394 +See-also: https://lore.kernel.org/sparclinux/62f9be9d-a086-4134-9a9f-5df8822708af@mkarcher.dialup.fu-berlin.de/ +Signed-off-by: Andreas K. Hüttel +(cherry picked from commit fa441cd6be9a34d81306d41defeefaa2ac31d0b8) +--- + sysdeps/unix/sysv/linux/sparc/sparc32/clone.S | 3 +++ + sysdeps/unix/sysv/linux/sparc/sparc64/clone.S | 3 +++ + 2 files changed, 6 insertions(+) + +diff --git a/sysdeps/unix/sysv/linux/sparc/sparc32/clone.S b/sysdeps/unix/sysv/linux/sparc/sparc32/clone.S +index b48aa96ea6..0b1af3203b 100644 +--- a/sysdeps/unix/sysv/linux/sparc/sparc32/clone.S ++++ b/sysdeps/unix/sysv/linux/sparc/sparc32/clone.S +@@ -28,6 +28,9 @@ + .text + ENTRY (__clone) + save %sp,-96,%sp ++ save %sp,-96,%sp ++ flushw ++ restore + cfi_def_cfa_register(%fp) + cfi_window_save + cfi_register(%o7, %i7) +diff --git a/sysdeps/unix/sysv/linux/sparc/sparc64/clone.S b/sysdeps/unix/sysv/linux/sparc/sparc64/clone.S +index e6c4e12f47..48a7152f38 100644 +--- a/sysdeps/unix/sysv/linux/sparc/sparc64/clone.S ++++ b/sysdeps/unix/sysv/linux/sparc/sparc64/clone.S +@@ -32,6 +32,9 @@ + + ENTRY (__clone) + save %sp, -192, %sp ++ save %sp, -192, %sp ++ flushw ++ restore + cfi_def_cfa_register(%fp) + cfi_window_save + cfi_register(%o7, %i7) +-- +2.43.0 +