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
* [Bug libc/13583] AVX check not done correctly for strcasecmp
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 ` allan at archlinux dot org
2012-01-26 12:46 ` drepper.fsp at gmail dot com
` (4 subsequent siblings)
5 siblings, 0 replies; 7+ messages in thread
From: allan at archlinux dot org @ 2012-01-11 21:11 UTC (permalink / raw)
To: glibc-bugs
http://sourceware.org/bugzilla/show_bug.cgi?id=13583
Allan McRae <allan at archlinux dot org> changed:
What |Removed |Added
----------------------------------------------------------------------------
CC| |allan at archlinux dot org
--
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
* [Bug libc/13583] AVX check not done correctly for strcasecmp
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
` (3 subsequent siblings)
5 siblings, 0 replies; 7+ messages in thread
From: drepper.fsp at gmail dot com @ 2012-01-26 12:46 UTC (permalink / raw)
To: glibc-bugs
http://sourceware.org/bugzilla/show_bug.cgi?id=13583
Ulrich Drepper <drepper.fsp at gmail dot com> changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|NEW |RESOLVED
Resolution| |FIXED
--- Comment #1 from Ulrich Drepper <drepper.fsp at gmail dot com> 2012-01-26 12:46:20 UTC ---
I checked in a patch.
--
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
* [Bug libc/13583] AVX check not done correctly for strcasecmp
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
` (2 subsequent siblings)
5 siblings, 0 replies; 7+ messages in thread
From: drepper.fsp at gmail dot com @ 2012-01-26 14:48 UTC (permalink / raw)
To: glibc-bugs
http://sourceware.org/bugzilla/show_bug.cgi?id=13583
--- Comment #2 from Ulrich Drepper <drepper.fsp at gmail dot com> 2012-01-26 14:48:35 UTC ---
Actually, strcmp cannot have problems since the code only uses the AVX
instruction encoding, not the YMM registers. Therefore any problem in that
area must have a completely different reason. There is code which potentially
uses the YMM registers and I added protection there.
--
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
* [Bug libc/13583] AVX check not done correctly for strcasecmp
2012-01-11 14:13 [Bug libc/13583] New: AVX check not done correctly for strcasecmp delroth at gmail dot com
` (2 preceding siblings ...)
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
5 siblings, 0 replies; 7+ messages in thread
From: jackie.rosen at hushmail dot com @ 2014-02-16 17:51 UTC (permalink / raw)
To: glibc-bugs
https://sourceware.org/bugzilla/show_bug.cgi?id=13583
Jackie Rosen <jackie.rosen at hushmail dot com> changed:
What |Removed |Added
----------------------------------------------------------------------------
CC| |jackie.rosen at hushmail dot com
--- Comment #3 from Jackie Rosen <jackie.rosen at hushmail dot com> ---
*** Bug 260998 has been marked as a duplicate of this bug. ***
Seen from the domain http://volichat.com
Page where seen: http://volichat.com/adult-chat-rooms
Marked for reference. Resolved as fixed @bugzilla.
--
You are receiving this mail because:
You are on the CC list for the bug.
^ permalink raw reply [flat|nested] 7+ messages in thread
* [Bug libc/13583] AVX check not done correctly for strcasecmp
2012-01-11 14:13 [Bug libc/13583] New: AVX check not done correctly for strcasecmp delroth at gmail dot com
` (3 preceding siblings ...)
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
5 siblings, 0 replies; 7+ messages in thread
From: schwab at sourceware dot org @ 2014-05-28 19:43 UTC (permalink / raw)
To: glibc-bugs
https://sourceware.org/bugzilla/show_bug.cgi?id=13583
Andreas Schwab <schwab at sourceware dot org> changed:
What |Removed |Added
----------------------------------------------------------------------------
CC|jackie.rosen at hushmail dot com |
--
You are receiving this mail because:
You are on the CC list for the bug.
^ permalink raw reply [flat|nested] 7+ messages in thread
* [Bug libc/13583] AVX check not done correctly for strcasecmp
2012-01-11 14:13 [Bug libc/13583] New: AVX check not done correctly for strcasecmp delroth at gmail dot com
` (4 preceding siblings ...)
2014-05-28 19:43 ` schwab at sourceware dot org
@ 2014-06-27 11:13 ` fweimer at redhat dot com
5 siblings, 0 replies; 7+ messages in thread
From: fweimer at redhat dot com @ 2014-06-27 11:13 UTC (permalink / raw)
To: glibc-bugs
https://sourceware.org/bugzilla/show_bug.cgi?id=13583
Florian Weimer <fweimer at redhat dot com> changed:
What |Removed |Added
----------------------------------------------------------------------------
Flags| |security-
--
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).