public inbox for glibc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug libc/13583] New: AVX check not done correctly for strcasecmp
@ 2012-01-11 14:13 delroth at gmail dot com
  2012-01-11 21:11 ` [Bug libc/13583] " allan at archlinux dot org
                   ` (5 more replies)
  0 siblings, 6 replies; 7+ messages in thread
From: delroth at gmail dot com @ 2012-01-11 14:13 UTC (permalink / raw)
  To: glibc-bugs

http://sourceware.org/bugzilla/show_bug.cgi?id=13583

             Bug #: 13583
           Summary: AVX check not done correctly for strcasecmp
           Product: glibc
           Version: 2.15
            Status: NEW
          Severity: normal
          Priority: P2
         Component: libc
        AssignedTo: drepper.fsp@gmail.com
        ReportedBy: delroth@gmail.com
    Classification: Unclassified


According to Intel manuals, checking for AVX has to be done by checking AVX and
OS XSAVE support in CPUID + XFEATURE_ENABLED_MASK via xgetbv. However, for
strcasecmp, AVX is checked by testing the AVX bit in the cpuid.

This makes systems using glibc-2.15 unbootable under current versions of Xen
when the CPU supports AVX because Xen does not have XSAVE support. On these
systems, strcasecmp fails with a SIGILL when executing vmovdqa.

Bad check is here:
http://sourceware.org/git/?p=glibc.git;a=blob;f=sysdeps/x86_64/multiarch/strcmp.S;h=f93c83d7d469085029018dcf0d7f2eaadb05a44f;hb=HEAD#l108

Example of a good check:
http://sourceware.org/git/?p=glibc.git;a=blob;f=sysdeps/x86_64/dl-trampoline.S;h=6523c92945a59e6a5eefa3cfb2e0c58dfa99fd44;hb=HEAD#l137

-- 
Configure bugmail: http://sourceware.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.


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

end of thread, other threads:[~2014-06-27 11:13 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2012-01-11 14:13 [Bug libc/13583] New: AVX check not done correctly for strcasecmp delroth at gmail dot com
2012-01-11 21:11 ` [Bug libc/13583] " allan at archlinux dot org
2012-01-26 12:46 ` drepper.fsp at gmail dot com
2012-01-26 14:48 ` drepper.fsp at gmail dot com
2014-02-16 17:51 ` jackie.rosen at hushmail dot com
2014-05-28 19:43 ` schwab at sourceware dot org
2014-06-27 11:13 ` fweimer at redhat 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).