Bug 647448
| Summary: | strchr (x86-64/multiarch/SSE4.2) handles second parameter incorrectly | ||
|---|---|---|---|
| Product: | Red Hat Enterprise Linux 6 | Reporter: | Andreas Schwab <schwab> |
| Component: | glibc | Assignee: | Andreas Schwab <schwab> |
| Status: | CLOSED ERRATA | QA Contact: | qe-baseos-tools-bugs |
| Severity: | medium | Docs Contact: | |
| Priority: | low | ||
| Version: | 6.0 | CC: | fweimer, mfranc, pmuller |
| Target Milestone: | rc | ||
| Target Release: | --- | ||
| Hardware: | x86_64 | ||
| OS: | Unspecified | ||
| Whiteboard: | |||
| Fixed In Version: | glibc-2.12-1.11.el6 | Doc Type: | Bug Fix |
| Doc Text: | Story Points: | --- | |
| Clone Of: | Environment: | ||
| Last Closed: | 2011-05-19 13:16:05 UTC | Type: | --- |
| Regression: | --- | Mount Type: | --- |
| Documentation: | --- | CRM: | |
| Verified Versions: | Category: | --- | |
| oVirt Team: | --- | RHEL 7.3 requirements from Atomic Host: | |
| Cloudforms Team: | --- | Target Upstream Version: | |
| Embargoed: | |||
An advisory has been issued which should help the problem described in this bug report. This report is therefore being closed with a resolution of ERRATA. For more information on therefore solution and/or where to find the updated files, please follow the link below. You may reopen this bug report if the solution does not work for you. http://rhn.redhat.com/errata/RHBA-2011-0584.html |
From: Richard Li <liptxyz> sysdeps/x86-64/multiarch/strchr.S (Both glibc-2.12.1 and latest git version): If %rdi is aligned to a 16-byte boundary, the value of %xmm1 is not properly set. The following program exposes this problem: #include <stdio.h> #include <string.h> int main () { char s[] __attribute__((aligned(16))) = "\xff"; printf ("%p\n", strchr (s, '\xfe')); return 0; } It is expected to output "(nil)", but it actually prints a valid pointer if run on an x86-64 system with a multiarch-enabled glibc and a CPU which supports SSE4.2.