public inbox for glibc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug libc/14461] New: __m128i_strloadu_tolower returns unaligned __m128i
@ 2012-08-13  1:00 psyberbits at gmail dot com
  2012-08-13  2:57 ` [Bug libc/14461] " john at pointysoftware dot net
                   ` (14 more replies)
  0 siblings, 15 replies; 16+ messages in thread
From: psyberbits at gmail dot com @ 2012-08-13  1:00 UTC (permalink / raw)
  To: glibc-bugs

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

             Bug #: 14461
           Summary: __m128i_strloadu_tolower returns unaligned __m128i
           Product: glibc
           Version: 2.17
            Status: NEW
          Severity: critical
          Priority: P2
         Component: libc
        AssignedTo: unassigned@sourceware.org
        ReportedBy: psyberbits@gmail.com
                CC: drepper.fsp@gmail.com
    Classification: Unclassified


Created attachment 6575
  --> http://sourceware.org/bugzilla/attachment.cgi?id=6575
patch

__m128i_strloadu_tolower function in
sysdeps/x86_64/multiarch/strcasestr-nonascii.c does not use _mm_loadu_si128()
to return the variable. So, if the caller has unaligned stack the program will
crash.

We had crashes with openssl and glibc when we use Wine and the solution was to
use _mm_loadu_si128().

Here are the bug reports:
https://bugs.archlinux.org/task/23277
https://bugs.archlinux.org/task/31020

I attached the patch.

Thanks.

-- 
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] 16+ messages in thread

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

Thread overview: 16+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2012-08-13  1:00 [Bug libc/14461] New: __m128i_strloadu_tolower returns unaligned __m128i psyberbits at gmail dot com
2012-08-13  2:57 ` [Bug libc/14461] " john at pointysoftware dot net
2012-08-13  3:37 ` psyberbits at gmail dot com
2012-08-13  3:49 ` sh at lutzhaase dot com
2012-08-13 18:11 ` psyberbits at gmail dot com
2012-08-13 18:52 ` psyberbits at gmail dot com
2012-08-13 18:56 ` aj at suse dot de
2012-08-13 19:08 ` psyberbits at gmail dot com
2012-08-13 20:20 ` aj at suse dot de
2012-08-13 21:36 ` psyberbits at gmail dot com
2012-08-14  6:28 ` jakub at redhat dot com
2012-08-14 15:06 ` carlos_odonell at mentor dot com
2012-08-14 15:16 ` psyberbits at gmail dot com
2012-08-14 15:24 ` carlos_odonell at mentor dot com
2012-08-14 16:20 ` schwab@linux-m68k.org
2014-06-13 14:01 ` 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).