public inbox for glibc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug string/25933] New: Off by one error in __strncmp_avx2 when length=VEC_SIZE*4 and strings are at page boundaries can cause a segfault
@ 2020-05-06 23:49 dpmendenhall at gmail dot com
  2020-05-07  0:46 ` [Bug string/25933] " hjl.tools at gmail dot com
                   ` (35 more replies)
  0 siblings, 36 replies; 37+ messages in thread
From: dpmendenhall at gmail dot com @ 2020-05-06 23:49 UTC (permalink / raw)
  To: glibc-bugs

https://sourceware.org/bugzilla/show_bug.cgi?id=25933

            Bug ID: 25933
           Summary: Off by one error in __strncmp_avx2 when
                    length=VEC_SIZE*4 and strings are at page boundaries
                    can cause a segfault
           Product: glibc
           Version: 2.28
            Status: UNCONFIRMED
          Severity: normal
          Priority: P2
         Component: string
          Assignee: unassigned at sourceware dot org
          Reporter: dpmendenhall at gmail dot com
  Target Milestone: ---

Created attachment 12507
  --> https://sourceware.org/bugzilla/attachment.cgi?id=12507&action=edit
report

When the two strings being compared are at the end of their pages,
__strncmp_avx2 will fall back to a one-byte-at-a-time loop named
"cross_page_loop". This loop is incorrect if the length of the comparison
exactly matches VEC_SIZE*4, which is 128 on my machine.

Full report in attached pdf.

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

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

end of thread, other threads:[~2020-07-04 17:22 UTC | newest]

Thread overview: 37+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-05-06 23:49 [Bug string/25933] New: Off by one error in __strncmp_avx2 when length=VEC_SIZE*4 and strings are at page boundaries can cause a segfault dpmendenhall at gmail dot com
2020-05-07  0:46 ` [Bug string/25933] " hjl.tools at gmail dot com
2020-05-07  2:23 ` dpmendenhall at gmail dot com
2020-05-07 13:07 ` adhemerval.zanella at linaro dot org
2020-05-07 14:26 ` hjl.tools at gmail dot com
2020-05-08 23:03 ` lsg.tools at gmail dot com
2020-05-19 16:52 ` skpgkp2 at gmail dot com
2020-05-19 17:39 ` hjl.tools at gmail dot com
2020-06-07 18:15 ` skpgkp2 at gmail dot com
2020-06-07 18:30 ` hjl.tools at gmail dot com
2020-06-07 20:03 ` skpgkp2 at gmail dot com
2020-06-07 20:43 ` hjl.tools at gmail dot com
2020-06-07 21:46 ` skpgkp2 at gmail dot com
2020-06-07 21:58 ` hjl.tools at gmail dot com
2020-06-07 22:01 ` hjl.tools at gmail dot com
2020-06-07 23:05 ` hjl.tools at gmail dot com
2020-06-08  1:26 ` hjl.tools at gmail dot com
2020-06-09  2:30 ` hjl.tools at gmail dot com
2020-06-10  8:21 ` skpgkp2 at gmail dot com
2020-06-10 13:11 ` hjl.tools at gmail dot com
2020-06-11  2:03 ` skpgkp2 at gmail dot com
2020-06-11  2:04 ` skpgkp2 at gmail dot com
2020-06-11  2:06 ` skpgkp2 at gmail dot com
2020-06-11  2:08 ` skpgkp2 at gmail dot com
2020-06-11  2:11 ` skpgkp2 at gmail dot com
2020-06-11 16:05 ` hjl.tools at gmail dot com
2020-06-13 11:27 ` hjl.tools at gmail dot com
2020-06-13 11:27 ` hjl.tools at gmail dot com
2020-06-13 11:27 ` hjl.tools at gmail dot com
2020-06-13 11:28 ` hjl.tools at gmail dot com
2020-06-13 11:28 ` hjl.tools at gmail dot com
2020-06-13 11:28 ` hjl.tools at gmail dot com
2020-07-04 16:47 ` cvs-commit at gcc dot gnu.org
2020-07-04 16:52 ` cvs-commit at gcc dot gnu.org
2020-07-04 17:02 ` cvs-commit at gcc dot gnu.org
2020-07-04 17:21 ` cvs-commit at gcc dot gnu.org
2020-07-04 17:22 ` hjl.tools at gmail 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).