Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 16 Dec 2025 19:16:07 +0000
From:      Dag-Erling=?utf-8?Q? Sm=C3=B8rg?=rav <des@FreeBSD.org>
To:        src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-main@FreeBSD.org
Subject:   git: ce9557d4ee17 - main - libc/amd64: Disable baseline version of stpncpy()
Message-ID:  <6941aff7.26359.29dd85c8@gitrepo.freebsd.org>

index | next in thread | raw e-mail

The branch main has been updated by des:

URL: https://cgit.FreeBSD.org/src/commit/?id=ce9557d4ee174267504a63b2c8f6009be27368c9

commit ce9557d4ee174267504a63b2c8f6009be27368c9
Author:     Dag-Erling Smørgrav <des@FreeBSD.org>
AuthorDate: 2025-12-16 19:04:51 +0000
Commit:     Dag-Erling Smørgrav <des@FreeBSD.org>
CommitDate: 2025-12-16 19:14:44 +0000

    libc/amd64: Disable baseline version of stpncpy()
    
    This implementation appears to be broken on some CPUs.  Disable it
    until the issue can be investigated and fixed.
    
    PR:             291720
    Fixes:          66eb78377bf1 ("libc/amd64: fix overread conditions in stpncpy()")
    Fixes:          90253d49db09 ("lib/libc/amd64/string: add stpncpy scalar, baseline implementation")
---
 lib/libc/amd64/string/stpncpy.S | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/lib/libc/amd64/string/stpncpy.S b/lib/libc/amd64/string/stpncpy.S
index df22bb9f0c53..764ee1d4008c 100644
--- a/lib/libc/amd64/string/stpncpy.S
+++ b/lib/libc/amd64/string/stpncpy.S
@@ -36,7 +36,9 @@
 	.set stpncpy, __stpncpy
 ARCHFUNCS(__stpncpy)
 	ARCHFUNC(__stpncpy, scalar)
+#if 0 /* temporarily disabled cf. PR 291720 */
 	ARCHFUNC(__stpncpy, baseline)
+#endif
 ENDARCHFUNCS(__stpncpy)
 
 ARCHENTRY(__stpncpy, scalar)


help

Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?6941aff7.26359.29dd85c8>