glibc/string
Stefan Liebler bfdb731438 S390: Fix handling of needles crossing a page in strstr z15 ifunc-variant. [BZ #25226]
If the specified needle crosses a page-boundary, the s390-z15 ifunc variant of
strstr truncates the needle which results in invalid results.

This is fixed by loading the needle beyond the page boundary to v18 instead of v16.
The bug is sometimes observable in test-strstr.c in check1 and check2 as the
haystack and needle is stored on stack. Thus the needle can be on a page boundary.

check2 is now extended to test haystack / needles located on stack, at end of page
and on two pages.

This bug was introduced with commit 6f47401bd5
("S390: Add arch13 strstr ifunc variant.") and is already released in glibc 2.30.
2019-11-27 12:35:40 +01:00
..
bits Split up endian.h to minimize exposure of BYTE_ORDER. 2019-10-01 14:54:46 -07:00
_strerror.c Prefer https to http for gnu.org and fsf.org URLs 2019-09-07 02:43:31 -07:00
argz-addsep.c Prefer https to http for gnu.org and fsf.org URLs 2019-09-07 02:43:31 -07:00
argz-append.c Prefer https to http for gnu.org and fsf.org URLs 2019-09-07 02:43:31 -07:00
argz-count.c Prefer https to http for gnu.org and fsf.org URLs 2019-09-07 02:43:31 -07:00
argz-create.c Prefer https to http for gnu.org and fsf.org URLs 2019-09-07 02:43:31 -07:00
argz-ctsep.c Prefer https to http for gnu.org and fsf.org URLs 2019-09-07 02:43:31 -07:00
argz-delete.c Prefer https to http for gnu.org and fsf.org URLs 2019-09-07 02:43:31 -07:00
argz-extract.c Prefer https to http for gnu.org and fsf.org URLs 2019-09-07 02:43:31 -07:00
argz-insert.c Prefer https to http for gnu.org and fsf.org URLs 2019-09-07 02:43:31 -07:00
argz-next.c Prefer https to http for gnu.org and fsf.org URLs 2019-09-07 02:43:31 -07:00
argz-replace.c Prefer https to http for gnu.org and fsf.org URLs 2019-09-07 02:43:31 -07:00
argz-stringify.c Prefer https to http for gnu.org and fsf.org URLs 2019-09-07 02:43:31 -07:00
argz.h Prefer https to http for gnu.org and fsf.org URLs 2019-09-07 02:43:31 -07:00
basename.c Prefer https to http for gnu.org and fsf.org URLs 2019-09-07 02:43:31 -07:00
bcopy.c Prefer https to http for gnu.org and fsf.org URLs 2019-09-07 02:43:31 -07:00
bug-envz1.c
bug-strcoll1.c
bug-strcoll2.c Prefer https to http for gnu.org and fsf.org URLs 2019-09-07 02:43:31 -07:00
bug-strncat1.c
bug-strpbrk1.c
bug-strspn1.c
bug-strtok1.c
byteswap.h Prefer https to http for gnu.org and fsf.org URLs 2019-09-07 02:43:31 -07:00
bzero.c Prefer https to http for gnu.org and fsf.org URLs 2019-09-07 02:43:31 -07:00
Depend
endian.h string/endian.h: Restore the __USE_MISC conditionals 2019-10-02 12:26:06 -07:00
envz.c Prefer https to http for gnu.org and fsf.org URLs 2019-09-07 02:43:31 -07:00
envz.h Prefer https to http for gnu.org and fsf.org URLs 2019-09-07 02:43:31 -07:00
explicit_bzero.c Prefer https to http for gnu.org and fsf.org URLs 2019-09-07 02:43:31 -07:00
ffs.c Prefer https to http for gnu.org and fsf.org URLs 2019-09-07 02:43:31 -07:00
ffsll.c Prefer https to http for gnu.org and fsf.org URLs 2019-09-07 02:43:31 -07:00
inl-tester.c
Makefile Split up endian.h to minimize exposure of BYTE_ORDER. 2019-10-01 14:54:46 -07:00
memccpy.c Prefer https to http for gnu.org and fsf.org URLs 2019-09-07 02:43:31 -07:00
memchr.c Prefer https to http for gnu.org and fsf.org URLs 2019-09-07 02:43:31 -07:00
memcmp.c Prefer https to http for gnu.org and fsf.org URLs 2019-09-07 02:43:31 -07:00
memcpy.c Prefer https to http for gnu.org and fsf.org URLs 2019-09-07 02:43:31 -07:00
memfrob.c Prefer https to http for gnu.org and fsf.org URLs 2019-09-07 02:43:31 -07:00
memmem.c Prefer https to http for gnu.org and fsf.org URLs 2019-09-07 02:43:31 -07:00
memmove.c Prefer https to http for gnu.org and fsf.org URLs 2019-09-07 02:43:31 -07:00
memory.h Prefer https to http for gnu.org and fsf.org URLs 2019-09-07 02:43:31 -07:00
mempcpy.c Prefer https to http for gnu.org and fsf.org URLs 2019-09-07 02:43:31 -07:00
memrchr.c Prefer https to http for gnu.org and fsf.org URLs 2019-09-07 02:43:31 -07:00
memset.c Prefer https to http for gnu.org and fsf.org URLs 2019-09-07 02:43:31 -07:00
noinl-tester.c
rawmemchr.c Prefer https to http for gnu.org and fsf.org URLs 2019-09-07 02:43:31 -07:00
stpcpy.c Prefer https to http for gnu.org and fsf.org URLs 2019-09-07 02:43:31 -07:00
stpncpy.c Prefer https to http for gnu.org and fsf.org URLs 2019-09-07 02:43:31 -07:00
str-two-way.h Prefer https to http for gnu.org and fsf.org URLs 2019-09-07 02:43:31 -07:00
stratcliff.c Prefer https to http for gnu.org and fsf.org URLs 2019-09-07 02:43:31 -07:00
strcasecmp_l.c Prefer https to http for gnu.org and fsf.org URLs 2019-09-07 02:43:31 -07:00
strcasecmp.c Prefer https to http for gnu.org and fsf.org URLs 2019-09-07 02:43:31 -07:00
strcasestr.c Prefer https to http for gnu.org and fsf.org URLs 2019-09-07 02:43:31 -07:00
strcat.c Prefer https to http for gnu.org and fsf.org URLs 2019-09-07 02:43:31 -07:00
strchr.c Prefer https to http for gnu.org and fsf.org URLs 2019-09-07 02:43:31 -07:00
strchrnul.c Prefer https to http for gnu.org and fsf.org URLs 2019-09-07 02:43:31 -07:00
strcmp.c Prefer https to http for gnu.org and fsf.org URLs 2019-09-07 02:43:31 -07:00
strcoll_l.c Prefer https to http for gnu.org and fsf.org URLs 2019-09-07 02:43:31 -07:00
strcoll.c Prefer https to http for gnu.org and fsf.org URLs 2019-09-07 02:43:31 -07:00
strcpy.c Prefer https to http for gnu.org and fsf.org URLs 2019-09-07 02:43:31 -07:00
strcspn.c Prefer https to http for gnu.org and fsf.org URLs 2019-09-07 02:43:31 -07:00
strdup.c Prefer https to http for gnu.org and fsf.org URLs 2019-09-07 02:43:31 -07:00
strerror_l.c Prefer https to http for gnu.org and fsf.org URLs 2019-09-07 02:43:31 -07:00
strerror.c Prefer https to http for gnu.org and fsf.org URLs 2019-09-07 02:43:31 -07:00
strfry.c Change most internal uses of time to __clock_gettime. 2019-10-30 17:11:10 -03:00
string-inlines.c Prefer https to http for gnu.org and fsf.org URLs 2019-09-07 02:43:31 -07:00
string.h Prefer https to http for gnu.org and fsf.org URLs 2019-09-07 02:43:31 -07:00
strings.h Prefer https to http for gnu.org and fsf.org URLs 2019-09-07 02:43:31 -07:00
strlen.c Prefer https to http for gnu.org and fsf.org URLs 2019-09-07 02:43:31 -07:00
strncase_l.c Prefer https to http for gnu.org and fsf.org URLs 2019-09-07 02:43:31 -07:00
strncase.c Prefer https to http for gnu.org and fsf.org URLs 2019-09-07 02:43:31 -07:00
strncat.c Prefer https to http for gnu.org and fsf.org URLs 2019-09-07 02:43:31 -07:00
strncmp.c Prefer https to http for gnu.org and fsf.org URLs 2019-09-07 02:43:31 -07:00
strncpy.c Prefer https to http for gnu.org and fsf.org URLs 2019-09-07 02:43:31 -07:00
strndup.c Prefer https to http for gnu.org and fsf.org URLs 2019-09-07 02:43:31 -07:00
strnlen.c Prefer https to http for gnu.org and fsf.org URLs 2019-09-07 02:43:31 -07:00
strpbrk.c Prefer https to http for gnu.org and fsf.org URLs 2019-09-07 02:43:31 -07:00
strrchr.c Prefer https to http for gnu.org and fsf.org URLs 2019-09-07 02:43:31 -07:00
strsep.c Prefer https to http for gnu.org and fsf.org URLs 2019-09-07 02:43:31 -07:00
strsignal.c Prefer https to http for gnu.org and fsf.org URLs 2019-09-07 02:43:31 -07:00
strspn.c Prefer https to http for gnu.org and fsf.org URLs 2019-09-07 02:43:31 -07:00
strstr.c Prefer https to http for gnu.org and fsf.org URLs 2019-09-07 02:43:31 -07:00
strtok_r.c Prefer https to http for gnu.org and fsf.org URLs 2019-09-07 02:43:31 -07:00
strtok.c Prefer https to http for gnu.org and fsf.org URLs 2019-09-07 02:43:31 -07:00
strverscmp.c Prefer https to http for gnu.org and fsf.org URLs 2019-09-07 02:43:31 -07:00
strxfrm_l.c Prefer https to http for gnu.org and fsf.org URLs 2019-09-07 02:43:31 -07:00
strxfrm.c Prefer https to http for gnu.org and fsf.org URLs 2019-09-07 02:43:31 -07:00
swab.c Prefer https to http for gnu.org and fsf.org URLs 2019-09-07 02:43:31 -07:00
test-bcopy.c Prefer https to http for gnu.org and fsf.org URLs 2019-09-07 02:43:31 -07:00
test-bzero.c Prefer https to http for gnu.org and fsf.org URLs 2019-09-07 02:43:31 -07:00
test-endian-file-scope.c Prefer https to http for gnu.org and fsf.org URLs 2019-09-07 02:43:31 -07:00
test-endian-sign-conversion.c Prefer https to http for gnu.org and fsf.org URLs 2019-09-07 02:43:31 -07:00
test-endian-types.c Prefer https to http for gnu.org and fsf.org URLs 2019-09-07 02:43:31 -07:00
test-explicit_bzero.c Prefer https to http for gnu.org and fsf.org URLs 2019-09-07 02:43:31 -07:00
test-ffs.c Prefer https to http for gnu.org and fsf.org URLs 2019-09-07 02:43:31 -07:00
test-memccpy.c Prefer https to http for gnu.org and fsf.org URLs 2019-09-07 02:43:31 -07:00
test-memchr.c Prefer https to http for gnu.org and fsf.org URLs 2019-09-07 02:43:31 -07:00
test-memcmp.c Prefer https to http for gnu.org and fsf.org URLs 2019-09-07 02:43:31 -07:00
test-memcpy.c Prefer https to http for gnu.org and fsf.org URLs 2019-09-07 02:43:31 -07:00
test-memmem.c Prefer https to http for gnu.org and fsf.org URLs 2019-09-07 02:43:31 -07:00
test-memmove.c Prefer https to http for gnu.org and fsf.org URLs 2019-09-07 02:43:31 -07:00
test-mempcpy.c Prefer https to http for gnu.org and fsf.org URLs 2019-09-07 02:43:31 -07:00
test-memrchr.c Prefer https to http for gnu.org and fsf.org URLs 2019-09-07 02:43:31 -07:00
test-memset.c Prefer https to http for gnu.org and fsf.org URLs 2019-09-07 02:43:31 -07:00
test-rawmemchr.c Prefer https to http for gnu.org and fsf.org URLs 2019-09-07 02:43:31 -07:00
test-stpcpy.c Prefer https to http for gnu.org and fsf.org URLs 2019-09-07 02:43:31 -07:00
test-stpncpy.c Prefer https to http for gnu.org and fsf.org URLs 2019-09-07 02:43:31 -07:00
test-strcasecmp.c Prefer https to http for gnu.org and fsf.org URLs 2019-09-07 02:43:31 -07:00
test-strcasestr.c Prefer https to http for gnu.org and fsf.org URLs 2019-09-07 02:43:31 -07:00
test-strcat.c Prefer https to http for gnu.org and fsf.org URLs 2019-09-07 02:43:31 -07:00
test-strchr.c Prefer https to http for gnu.org and fsf.org URLs 2019-09-07 02:43:31 -07:00
test-strchrnul.c Prefer https to http for gnu.org and fsf.org URLs 2019-09-07 02:43:31 -07:00
test-strcmp.c Prefer https to http for gnu.org and fsf.org URLs 2019-09-07 02:43:31 -07:00
test-strcpy.c Prefer https to http for gnu.org and fsf.org URLs 2019-09-07 02:43:31 -07:00
test-strcspn.c Prefer https to http for gnu.org and fsf.org URLs 2019-09-07 02:43:31 -07:00
test-strerror-errno.c Prefer https to http for gnu.org and fsf.org URLs 2019-09-07 02:43:31 -07:00
test-string.h Prefer https to http for gnu.org and fsf.org URLs 2019-09-07 02:43:31 -07:00
test-strlen.c Prefer https to http for gnu.org and fsf.org URLs 2019-09-07 02:43:31 -07:00
test-strncasecmp.c Prefer https to http for gnu.org and fsf.org URLs 2019-09-07 02:43:31 -07:00
test-strncat.c Prefer https to http for gnu.org and fsf.org URLs 2019-09-07 02:43:31 -07:00
test-strncmp.c Prefer https to http for gnu.org and fsf.org URLs 2019-09-07 02:43:31 -07:00
test-strncpy.c Prefer https to http for gnu.org and fsf.org URLs 2019-09-07 02:43:31 -07:00
test-strnlen.c Prefer https to http for gnu.org and fsf.org URLs 2019-09-07 02:43:31 -07:00
test-strpbrk.c Prefer https to http for gnu.org and fsf.org URLs 2019-09-07 02:43:31 -07:00
test-strrchr.c Prefer https to http for gnu.org and fsf.org URLs 2019-09-07 02:43:31 -07:00
test-strspn.c Prefer https to http for gnu.org and fsf.org URLs 2019-09-07 02:43:31 -07:00
test-strstr.c S390: Fix handling of needles crossing a page in strstr z15 ifunc-variant. [BZ #25226] 2019-11-27 12:35:40 +01:00
testcopy.c Prefer https to http for gnu.org and fsf.org URLs 2019-09-07 02:43:31 -07:00
tester.c Disable warnings in string/tester.c at top level. 2019-10-02 17:26:14 +00:00
tst-bswap.c Prefer https to http for gnu.org and fsf.org URLs 2019-09-07 02:43:31 -07:00
tst-cmp.c Prefer https to http for gnu.org and fsf.org URLs 2019-09-07 02:43:31 -07:00
tst-endian.c
tst-inlcall.c Prefer https to http for gnu.org and fsf.org URLs 2019-09-07 02:43:31 -07:00
tst-strcoll-overflow.c Prefer https to http for gnu.org and fsf.org URLs 2019-09-07 02:43:31 -07:00
tst-strfry.c
tst-strlen.c
tst-strtok_r.c Prefer https to http for gnu.org and fsf.org URLs 2019-09-07 02:43:31 -07:00
tst-strtok.c
tst-strxfrm2.c
tst-strxfrm.c
tst-svc2.c
tst-svc.c
tst-svc.expect
tst-svc.input
tst-xbzero-opt.c Prefer https to http for gnu.org and fsf.org URLs 2019-09-07 02:43:31 -07:00
Versions
wordcopy.c Prefer https to http for gnu.org and fsf.org URLs 2019-09-07 02:43:31 -07:00
xpg-strerror.c Prefer https to http for gnu.org and fsf.org URLs 2019-09-07 02:43:31 -07:00