glibc/sysdeps
Stefan Liebler 712453634c s390x: Fix segfault in wcsncmp [BZ #31934]
The z13/vector-optimized wcsncmp implementation segfaults if n=1
and there is only one character (equal on both strings) before
the page end.  Then it loads and compares one character and misses
to check n again.  The following load fails.

This patch removes the extra load and compare of the first character
and just start with the loop which uses vector-load-to-block-boundary.
This code-path also checks n.

With this patch both tests are passing:
- the simplified one mentioned in the bugzilla 31934
- the full one in Florian Weimer's patch:
"manual: Document a GNU extension for strncmp/wcsncmp"
(https://patchwork.sourceware.org/project/glibc/patch/874j9eml6y.fsf@oldenburg.str.redhat.com/):
On s390x-linux-gnu (z16), the new wcsncmp test fails due to bug 31934.
Reviewed-by: Carlos O'Donell <carlos@redhat.com>

(cherry picked from commit 9b76514103)
2024-07-16 10:26:44 +02:00
..
aarch64 AArch64: Check kernel version for SVE ifuncs 2024-04-10 14:03:08 +01:00
alpha configure: Use autoconf 2.71 2023-07-17 10:08:10 -04:00
arc login: Check default sizes of structs utmp, utmpx, lastlog 2024-04-19 18:38:23 +02:00
arm login: structs utmp, utmpx, lastlog _TIME_BITS independence (bug 30701) 2024-04-19 18:38:24 +02:00
csky login: structs utmp, utmpx, lastlog _TIME_BITS independence (bug 30701) 2024-04-19 18:38:24 +02:00
generic login: Check default sizes of structs utmp, utmpx, lastlog 2024-04-19 18:38:23 +02:00
gnu configure: Use autoconf 2.71 2023-07-17 10:08:10 -04:00
hppa login: Check default sizes of structs utmp, utmpx, lastlog 2024-04-19 18:38:23 +02:00
htl Fix misspellings in sysdeps/ -- BZ 25337 2023-05-30 23:02:29 +00:00
hurd hurd: Fix using interposable hurd_thread_self 2023-05-19 20:45:51 +02:00
i386 i386: ulp update for SSE2 --disable-multi-arch configurations 2024-04-25 13:07:19 +02:00
ia64 configure: Use autoconf 2.71 2023-07-17 10:08:10 -04:00
ieee754 configure: Use autoconf 2.71 2023-07-17 10:08:10 -04:00
loongarch LoongArch: Correct {__ieee754, _}_scalb -> {__ieee754, _}_scalbf 2024-03-22 09:25:39 +08:00
m68k login: structs utmp, utmpx, lastlog _TIME_BITS independence (bug 30701) 2024-04-19 18:38:24 +02:00
mach malloc: Use __get_nprocs on arena_get2 (BZ 30945) 2024-02-12 09:53:27 -03:00
microblaze login: structs utmp, utmpx, lastlog _TIME_BITS independence (bug 30701) 2024-04-19 18:38:24 +02:00
mips login: structs utmp, utmpx, lastlog _TIME_BITS independence (bug 30701) 2024-04-19 18:38:24 +02:00
nios2 login: structs utmp, utmpx, lastlog _TIME_BITS independence (bug 30701) 2024-04-19 18:38:24 +02:00
nptl Fix misspellings in sysdeps/ -- BZ 25337 2023-05-30 23:02:29 +00:00
or1k login: Check default sizes of structs utmp, utmpx, lastlog 2024-04-19 18:38:23 +02:00
posix getaddrinfo: translate ENOMEM to EAI_MEMORY (bug 31163) 2024-01-02 14:37:02 +01:00
powerpc login: structs utmp, utmpx, lastlog _TIME_BITS independence (bug 30701) 2024-04-19 18:38:24 +02:00
pthread nptl: Fix tst-cancel30 on kernels without ppoll_time64 support 2024-04-23 21:18:04 +02:00
riscv login: Check default sizes of structs utmp, utmpx, lastlog 2024-04-19 18:38:23 +02:00
s390 s390x: Fix segfault in wcsncmp [BZ #31934] 2024-07-16 10:26:44 +02:00
sh login: structs utmp, utmpx, lastlog _TIME_BITS independence (bug 30701) 2024-04-19 18:38:24 +02:00
sparc login: structs utmp, utmpx, lastlog _TIME_BITS independence (bug 30701) 2024-04-19 18:38:24 +02:00
unix misc: Add support for Linux uio.h RWF_NOAPPEND flag 2024-05-29 14:20:58 +02:00
wordsize-32 Update copyright dates with scripts/update-copyrights 2023-01-06 21:14:39 +00:00
wordsize-64 hurd: Fix tst-writev test 2023-05-01 13:01:30 +02:00
x86 i386: Disable Intel Xeon Phi tests for GCC 15 and above (BZ 31782) 2024-05-28 09:33:22 -07:00
x86_64 x86_64: Optimize ffsll function code size. 2024-01-31 18:31:28 -08:00