about summary refs log tree commit diff
path: root/sysdeps/unix/bsd/tcdrain.c
diff options
context:
space:
mode:
authorAdhemerval Zanella <adhemerval.zanella@linaro.org>2023-02-23 10:12:24 -0300
committerAdhemerval Zanella <adhemerval.zanella@linaro.org>2023-02-23 10:12:24 -0300
commit834bb0a29cf1047a33a3609fa98f31f44f297d5d (patch)
tree9173070e7eaa393fb2ae10ac65d870103b2bc416 /sysdeps/unix/bsd/tcdrain.c
parent41fc6b16944f1056ad4d334f74b410fb195dcabe (diff)
downloadglibc-834bb0a29cf1047a33a3609fa98f31f44f297d5d.tar.gz
glibc-834bb0a29cf1047a33a3609fa98f31f44f297d5d.tar.xz
glibc-834bb0a29cf1047a33a3609fa98f31f44f297d5d.zip
powerpc: Remove powerpc64 strncmp variants
The default powerpc64, and power7 might access OOB memory which trigers
invalid memory access with stratcliff.

Although the fix is simple, just to reorder the by loads before the
mismatch checks; all implementation just add one optimization: word
aligned access when inputs have the same aligment.  The unaligned
case is still done by byte operations.

This is already covered by the generic implementation, which also
adds unaligned optimization.  So instead of adjust powerpc32
implementations, just use default implementation instead.

The power8 and power9 does not trigger any regression with stratcliff.

Checked on powerpc64-linux-gnu built without multi-arch for powerpc64,
power7, power8, and power9 (build for le).
Diffstat (limited to 'sysdeps/unix/bsd/tcdrain.c')
0 files changed, 0 insertions, 0 deletions