glibc:ibm/2.30/master

Last commit made on 2022-02-25
Get this branch:
git clone -b ibm/2.30/master https://git.launchpad.net/glibc

Branch merges

Branch information

Name:
ibm/2.30/master
Repository:
lp:glibc

Recent commits

0d6fdf9... by Raoni Fassina Firmino <email address hidden>

Merge branch release/2.30/master into ibm/2.30/master

6bbd88c... by Raoni Fassina Firmino <email address hidden>

Merge branch release/2.30/master into ibm/2.30/master

821f0a9... by Raoni Fassina Firmino <email address hidden>

Merge branch release/2.30/master into ibm/2.30/master

a79bc55... by "H.J. Lu" <email address hidden>

NEWS: Add a bug fix entry for BZ #28896

31615a5... by Noah Goldstein <email address hidden>

x86: Fix TEST_NAME to make it a string in tst-strncmp-rtm.c

Previously TEST_NAME was passing a function pointer. This didn't fail
because of the -Wno-error flag (to allow for overflow sizes passed
to strncmp/wcsncmp)

Reviewed-by: H.J. Lu <email address hidden>
(cherry picked from commit b98d0bbf747f39770e0caba7e984ce9f8f900330)

6428a66... by Noah Goldstein <email address hidden>

x86: Test wcscmp RTM in the wcsncmp overflow case [BZ #28896]

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.
Reviewed-by: H.J. Lu <email address hidden>

(cherry picked from commit 7835d611af0854e69a0c71e3806f8fe379282d6f)

a3ef8a0... by Noah Goldstein <email address hidden>

x86: Fallback {str|wcs}cmp RTM in the ncmp overflow case [BZ #28896]

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 <email address hidden>

(cherry picked from commit c6272098323153db373f2986c67786ea8c85f1cf)

70522b1... by "H.J. Lu" <email address hidden>

string: Add a testcase for wcsncmp with SIZE_MAX [BZ #28755]

Verify that wcsncmp (L("abc"), L("abd"), SIZE_MAX) == 0. The new test
fails without

commit ddf0992cf57a93200e0c782e2a94d0733a5a0b87
Author: Noah Goldstein <email address hidden>
Date: Sun Jan 9 16:02:21 2022 -0600

    x86: Fix __wcsncmp_avx2 in strcmp-avx2.S [BZ# 28755]

and

commit 7e08db3359c86c94918feb33a1182cd0ff3bb10b
Author: Noah Goldstein <email address hidden>
Date: Sun Jan 9 16:02:28 2022 -0600

    x86: Fix __wcsncmp_evex in strcmp-evex.S [BZ# 28755]

This is for BZ #28755.

Reviewed-by: Sunil K Pandey <email address hidden>

(cherry picked from commit aa5a720056d37cf24924c138a3dbe6dace98e97c)

8ad5519... by "H.J. Lu" <email address hidden>

x86-64: Test strlen and wcslen with 0 in the RSI register [BZ #28064]

commit 6f573a27b6c8b4236445810a44660612323f5a73
Author: Noah Goldstein <email address hidden>
Date: Wed Jun 23 01:19:34 2021 -0400

    x86-64: Add wcslen optimize for sse4.1

added wcsnlen-sse4.1 to the wcslen ifunc implementation list. Since the
random value in the the RSI register is larger than the wide-character
string length in the existing wcslen test, it didn't trigger the wcslen
test failure. Add a test to force 0 into the RSI register before calling
wcslen.

(cherry picked from commit a6e7c3745d73ff876b4ba6991fb00768a938aef5)

23bc964... by Noah Goldstein <email address hidden>

x86: Remove wcsnlen-sse4_1 from wcslen ifunc-impl-list [BZ #28064]

The following commit

commit 6f573a27b6c8b4236445810a44660612323f5a73
Author: Noah Goldstein <email address hidden>
Date: Wed Jun 23 01:19:34 2021 -0400

    x86-64: Add wcslen optimize for sse4.1

Added wcsnlen-sse4.1 to the wcslen ifunc implementation list and did
not add wcslen-sse4.1 to wcslen ifunc implementation list. This commit
fixes that by removing wcsnlen-sse4.1 from the wcslen ifunc
implementation list and adding wcslen-sse4.1 to the ifunc
implementation list.

Testing:
test-wcslen.c, test-rsi-wcslen.c, and test-rsi-strlen.c are passing as
well as all other tests in wcsmbs and string.

Signed-off-by: Noah Goldstein <email address hidden>
Reviewed-by: H.J. Lu <email address hidden>
Reviewed-by: H.J. Lu <email address hidden>
(cherry picked from commit 0679442defedf7e52a94264975880ab8674736b2)