public inbox for glibc-bugs@sourceware.org help / color / mirror / Atom feed
From: "adhemerval.zanella at linaro dot org" <sourceware-bugzilla@sourceware.org> To: glibc-bugs@sourceware.org Subject: [Bug libc/31068] sysdeps: sparc: invalid data access in memset due to regression Date: Thu, 01 Feb 2024 20:51:38 +0000 [thread overview] Message-ID: <bug-31068-131-lh7IrAbc8Q@http.sourceware.org/bugzilla/> (raw) In-Reply-To: <bug-31068-131@http.sourceware.org/bugzilla/> https://sourceware.org/bugzilla/show_bug.cgi?id=31068 --- Comment #4 from Adhemerval Zanella <adhemerval.zanella at linaro dot org> --- (In reply to John Paul Adrian Glaubitz from comment #3) > (In reply to Adhemerval Zanella from comment #1) > > Fixed on 2.39. > > Does this by any chance need to be fixed on sparc64 as well? > > This bug could be the reason for the posix_spawn() bug we're seeing on > sparc64. The sparc64 changes were less intrusive and I could not see any change that might trigger it. The niagara4 changes slight the alignment of the 'clr' instruction: diff --git a/sysdeps/sparc/sparc64/multiarch/memset-niagara4.S b/sysdeps/sparc/sparc64/multiarch/memset-niagara4.S index 1ccf24e516..d6fbd83009 100644 --- a/sysdeps/sparc/sparc64/multiarch/memset-niagara4.S +++ b/sysdeps/sparc/sparc64/multiarch/memset-niagara4.S @@ -39,10 +39,6 @@ ENTRY(__memset_niagara4) sllx %o2, 32, %g1 ba,pt %icc, 1f or %g1, %o2, %o4 -END(__memset_niagara4) - - .align 32 -ENTRY(__bzero_niagara4) clr %o4 1: cmp %o1, 16 ble %icc, .Ltiny @@ -118,6 +114,6 @@ ENTRY(__bzero_niagara4) bne,pt %icc, 1b add %o0, 0x30, %o0 ba,a,pt %icc, .Lpostloop -END(__bzero_niagara4) +END(__memset_niagara4) #endif But afaiu this should not change the correctness of the code. Also, unless you are building with --disable-multi-arch; sparc64 string tests will check for every string implementation currently supported by the CPU. So I would expect that a failure in memset would trigger at least one regression as for sparc32. -- You are receiving this mail because: You are on the CC list for the bug.
prev parent reply other threads:[~2024-02-01 20:51 UTC|newest] Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top 2023-11-15 9:32 [Bug libc/31068] New: " ludwig.rydberg at gaisler dot com 2023-11-15 9:34 ` [Bug libc/31068] " sam at gentoo dot org 2023-11-16 14:11 ` adhemerval.zanella at linaro dot org 2024-02-01 20:06 ` pinskia at gcc dot gnu.org 2024-02-01 20:14 ` glaubitz at physik dot fu-berlin.de 2024-02-01 20:51 ` adhemerval.zanella at linaro dot org [this message]
Reply instructions: You may reply publicly to this message via plain-text email using any one of the following methods: * Save the following mbox file, import it into your mail client, and reply-to-all from there: mbox Avoid top-posting and favor interleaved quoting: https://en.wikipedia.org/wiki/Posting_style#Interleaved_style * Reply using the --to, --cc, and --in-reply-to switches of git-send-email(1): git send-email \ --in-reply-to=bug-31068-131-lh7IrAbc8Q@http.sourceware.org/bugzilla/ \ --to=sourceware-bugzilla@sourceware.org \ --cc=glibc-bugs@sourceware.org \ /path/to/YOUR_REPLY https://kernel.org/pub/software/scm/git/docs/git-send-email.html * If your mail client supports setting the In-Reply-To header via mailto: links, try the mailto: linkBe sure your reply has a Subject: header at the top and a blank line before the message body.
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 read-only IMAP folder(s) and NNTP newsgroup(s).