public inbox for glibc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug string/29127] New: Incomplete backport causes tst-{strncmp,wcsncmp}-rtm to fail
@ 2022-05-07  1:17 ats-sourceware at offog dot org
  2022-05-23 13:32 ` [Bug string/29127] " fweimer at redhat dot com
                   ` (6 more replies)
  0 siblings, 7 replies; 8+ messages in thread
From: ats-sourceware at offog dot org @ 2022-05-07  1:17 UTC (permalink / raw)
  To: glibc-bugs

https://sourceware.org/bugzilla/show_bug.cgi?id=29127

            Bug ID: 29127
           Summary: Incomplete backport causes tst-{strncmp,wcsncmp}-rtm
                    to fail
           Product: glibc
           Version: 2.35
            Status: UNCONFIRMED
          Severity: normal
          Priority: P2
         Component: string
          Assignee: unassigned at sourceware dot org
          Reporter: ats-sourceware at offog dot org
  Target Milestone: ---

Created attachment 14093
  --> https://sourceware.org/bugzilla/attachment.cgi?id=14093&action=edit
Sample fix for 2.35 branch

The commit c6272098323153db373f2986c67786ea8c85f1cf ("x86: Fallback
{str|wcs}cmp RTM in the ncmp overflow case [BZ #28896]") was backported as
fd412fff6d2bd322ec24ebd13fab196efc6c5506 to the 2.35 branch, but the backported
version doesn't cover all of the fallback cases in the original commit.
(Looking at #28896, maybe the original version got backported rather than the
revised version that went into master?)

On my i7-9700KF, this causes string/tst-strncmp-rtm and string/tst-wcsncmp-rtm
to fail with:

error: ../sysdeps/x86/tst-string-rtm.h:63: TSX abort rate: 100.00% (3000 out of
3000)

I've attached an example patch to fix this for 2.35 - just making the
appropriate bit of sysdeps/x86_64/multiarch/strcmp-avx2.S match what's now in
master - but a similar fix probably needs applying to the other release
branches too.

-- 
You are receiving this mail because:
You are on the CC list for the bug.

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

end of thread, other threads:[~2022-05-26  3:01 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2022-05-07  1:17 [Bug string/29127] New: Incomplete backport causes tst-{strncmp,wcsncmp}-rtm to fail ats-sourceware at offog dot org
2022-05-23 13:32 ` [Bug string/29127] " fweimer at redhat dot com
2022-05-23 15:25 ` goldstein.w.n at gmail dot com
2022-05-25 22:03 ` cvs-commit at gcc dot gnu.org
2022-05-25 23:08 ` cvs-commit at gcc dot gnu.org
2022-05-25 23:11 ` cvs-commit at gcc dot gnu.org
2022-05-25 23:24 ` ats-sourceware at offog dot org
2022-05-26  3:01 ` hjl.tools at gmail dot com

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).