glibc/sysdeps
Noah Goldstein 83ae8287c1 x86: Fallback {str|wcs}cmp RTM in the ncmp overflow case [BZ #29127]
Re-cherry-pick commit c627209832 for strcmp-avx2.S change which was
omitted in intial cherry pick because at the time this bug was not
present on release branch.

Fixes BZ #29127.

In the overflow fallback strncmp-avx2-rtm and wcsncmp-avx2-rtm would
call strcmp-avx2 and wcscmp-avx2 respectively. This would have
not checks around vzeroupper and would trigger spurious
aborts. This commit fixes that.

test-strcmp, test-strncmp, test-wcscmp, and test-wcsncmp all pass on
AVX2 machines with and without RTM.

Co-authored-by: H.J. Lu <hjl.tools@gmail.com>
(cherry picked from commit c627209832)
2022-05-25 15:05:05 -07:00
..
aarch64
alpha
arc
arm
csky
generic csu: Implement and use _dl_early_allocate during static startup 2022-05-19 12:13:53 +02:00
gnu
hppa
htl
hurd
i386
ia64
ieee754
m68k
mach rtld: Use generic argv adjustment in ld.so [BZ #23293] 2022-05-19 16:48:47 +01:00
microblaze
mips
nios2
nptl
posix
powerpc
pthread
riscv
s390 S390: Enable static PIE 2022-05-19 17:15:57 +02:00
sh
sparc
unix linux: Add a getauxval test [BZ #23293] 2022-05-19 16:48:47 +01:00
wordsize-32
wordsize-64
x86 x86: Improve L to support L(XXX_SYMBOL (YYY, ZZZ)) 2022-05-16 18:52:19 -07:00
x86_64 x86: Fallback {str|wcs}cmp RTM in the ncmp overflow case [BZ #29127] 2022-05-25 15:05:05 -07:00