[Bug string/34300] New: Power 10 memchr clobbers v20

"Sachin.Monga at ibm dot com via Glibc-bugs" <[email protected]> Thu, 18 Jun 2026 11:52:36 +0000
Newsgroups gmane.comp.lib.glibc.bugs
Message-ID <[email protected]/bugzilla/>
https://sourceware.org/bugzilla/show_bug.cgi?id=34300

            Bug ID: 34300
           Summary: Power 10 memchr clobbers v20
           Product: glibc
           Version: 2.44
            Status: UNCONFIRMED
          Severity: normal
          Priority: P2
         Component: string
          Assignee: unassigned at sourceware dot org
          Reporter: Sachin.Monga at ibm dot com
                CC: carlos at redhat dot com, fweimer at redhat dot com,
                    Sachin.Monga at ibm dot com, siddhesh at sourceware dot org,
                    unassigned at sourceware dot org
  Target Milestone: ---
            Target: powerpc

+++ This bug was initially created as a clone of Bug #33059 +++

+++ This bug was initially created as a clone of Bug #33056 +++

The Power10 memchr uses v20 as a zero register without saving/restoring it,
which is a violation of the ppc64le psABI.

This is not treated as a security issue since v20 is not user controlled and
doesn't leak input strings.

This bug wasn't originally fixed but rather changes were reverted.

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