122 Commits

Author SHA1 Message Date
liqingqing_1229
cc054c6ba0 do not define tgmath.h fmaxmag, fminmag macros for C2X (BZ #28397) 2021-12-24 16:33:10 +08:00
liqingqing_1229
83668a2e5d io: Fix ftw internal realloc buffer (BZ #28126) 2021-12-24 15:09:14 +08:00
liqingqing_1229
c66918bc60 fix glibc upstream bug BZ#28260 and nss/tst-nss-files-hosts-long and nptl/tst-create1 2021-12-22 17:31:47 +08:00
liqingqing_1229
4405c42868 pthread/tst-cancel28: Fix barrier re-init race condition 2021-12-15 19:33:12 +08:00
Yang Yanchao
91e26f23d2 Deleted some unnecessary command when make master.filelist
Signed-off-by: Yang Yanchao <yangyanchao6@huawei.com>
2021-12-09 21:50:16 +08:00
Yang Yanchao
f5e24fbbc9 support all Chinese and English by default
add zh_* and en_* to glibc-common
the size of glibc-common is increased from 1.8MB to 3.5MB

Signed-off-by: Yang Yanchao <yangyanchao6@huawei.com>
2021-12-09 20:03:45 +08:00
Yang Yanchao
6495a142f4 turn the default value of x86_rep_stosb_threshold from 2k to 1M
Signed-off-by: Yang Yanchao <yangyanchao6@huawei.com>
2021-12-03 12:13:47 +08:00
liqingqing_1229
0057d144a9 revert the use of sched_getaffinity [BZ #28310] 2021-12-02 21:02:21 +08:00
Bin Wang
b91290ce41 Linux: Simplify __opensock and fix race condition [BZ #28353]
AF_NETLINK support is not quite optional on modern Linux systems
anymore, so it is likely that the first attempt will always succeed.
Consequently, there is no need to cache the result.  Keep AF_UNIX
and the Internet address families as a fallback, for the rare case
that AF_NETLINK is missing.  The other address families previously
probed are totally obsolete be now, so remove them.

Use this simplified version as the generic implementation, disabling
Netlink support as needed.

Signed-off-by: Bin Wang <wangbin224@huawei.com>
2021-11-30 10:15:28 +08:00
Yang Yanchao
8615244aa3 Refactor the libpthread-2.17.so code and pass all test cases.
delete libpthread-2.17.so from glibc-devel
2021-11-24 18:19:16 +08:00
liqingqing_1229
1feba0288f revert supress -Wcast-qual warnings in bsearch 2021-11-19 09:51:27 +08:00
liqingqing_1229
05f7be5273 fix attribute access mode on getcwd [BZ #27476], supress -Wcast-qual warnings in bsearch 2021-11-15 21:38:26 +08:00
liqingqing_1229
35e1891d71 elf: fix ld.so crash while loading a DSO with a read-only dynamic section 2021-11-15 19:32:05 +08:00
liqingqing_1229
3ab2b7b71b gconv: Do not emit spurious NUL character in ISO-2022-JP-3, this also fix CVE-2021-43396. 2021-11-10 20:49:28 +08:00
liqingqing_1229
2b77a61d3e iconvconfig: Fix behaviour with --prefix 2021-11-09 15:28:35 +08:00
liqingqing_1229
83aeb85874 nptl: pthread_kill race condition issues fixed.
uplink: https://sourceware.org/bugzilla/show_bug.cgi?id=19193
        https://sourceware.org/bugzilla/show_bug.cgi?id=12889
        https://sourceware.org/bugzilla/show_bug.cgi?id=28036
        https://sourceware.org/bugzilla/show_bug.cgi?id=28363
        https://sourceware.org/bugzilla/show_bug.cgi?id=28407
2021-11-08 21:07:42 +08:00
liqingqing_1229
5d781b4a0c pthread_kill and pthread_cancel return success for satisfy posix standard. 2021-11-05 08:50:35 +08:00
liqingqing_1229
653f3153b9 aarch64: update a64fx memset not to degrade at 16KB 2021-10-29 11:07:27 +08:00
liqingqing_1229
a085006b9e use testl, instead of andl, to check __x86_string_control to
avoid updating __x86_string_control
2021-10-28 20:59:51 +08:00
Yang Yanchao
e6a721beed Show more debugging information during testsuite
Signed-off-by: Yang Yanchao <yangyanchao6@huawei.com>
2021-10-27 09:24:23 +08:00
Fcc
14d36df964 Use __executable_start as the lowest address for profiling 2021-10-26 20:29:37 +08:00
Yang Yanchao
0efa08b12d glibc:add glibc-compat-2.17 subpackage to provide the function of the glibc-2.17 pthread library.
Currently, provide pthread_condition function.

Signed-off-by: Yang Yanchao <yangyanchao6@huawei.com>
2021-10-26 15:11:36 +08:00
liqingqing_1229
88a66f7a0c fix mtrace output and valgrind check failed for tunables_strdup.
-mtrace fix output with PIE and ASLR.
-elf: rtld copy terminating null in tunables strdup.
2021-10-25 16:54:09 +08:00
liqingqing_1229
018de895ca fpu: x86-64 optimize load of all bits set into ZMM register. 2021-10-25 15:09:40 +08:00
Yang Yanchao
14364fe566 Add locale-archive sub packages to support more languages and reduce memory usage.
Signed-off-by: Yang Yanchao <yangyanchao6@huawei.com>
2021-10-19 16:26:18 +08:00
Yang Yanchao
99e0df3458 Add the testsuite whitelist.
If a test case out of the trustlist fails, the compilation is interrupted.

Signed-off-by: Yang Yanchao <yangyanchao6@huawei.com>
2021-10-14 14:45:26 +08:00
liqingqing_1229
09e73f980a update test memmove.c to cover 16KB 2021-10-11 09:01:17 +08:00
liqingqing_1229
39ba937215 elf: drop elf/tls-macros.h in favor of thread tls_mode attribute.
use __ehdr_start for __GLOBAL_OFFSET_TABLE[0]
2021-09-29 11:52:55 +08:00
liqingqing_1229
60314ef12d time fix overflow itimer tests on 32 bit system 2021-09-29 10:55:38 +08:00
liqingqing_1229
8b0605e3bf mtrace: use a static buffer for printing, fix upstream bug BZ #25947 2021-09-27 19:18:52 +08:00
liqingqing_1229
e4fd5bf689 aarch64: Make elf_machine_{load_addr,dynamic} robust [BZ #28203] 2021-09-26 09:52:11 +08:00
liqingqing_1229
8d6576b56f aarch64: optimize memset performance 2021-09-17 16:04:25 +08:00
liqingqing_1229
524981388e fix some patches to fix some memory leak and double free bugs. 2021-09-17 10:20:57 +08:00
yangyanchao
40f3e7ca8a add --enable-static-pie in aarch64
Signed-off-by: yangyanchao <yangyanchao6@huawei.com>
2021-09-14 15:53:21 +08:00
liqingqing_1229
2418652d62 fix CVE-2021-38604 2021-08-25 09:42:32 +08:00
liqingqing_1229
bc9517add8 upgrade to glibc 2.34 2021-08-06 17:32:15 +08:00
zhouwenpei
0b221203fb remove unnecessary build require. 2021-07-23 16:17:31 +08:00
liqingqing_1229
b49c4bc483 malloc: tcache shutdown sequence does not work if the thread never allocated anything. (bug 28028) 2021-07-03 15:47:42 +08:00
liqingqing_1229
c4279fb077 fix CVE-2021-35942. wordexp: Use strtoul instead of atoi so that overflow can be detected. 2021-07-01 14:42:59 +08:00
liqingqing_1229
90b78e8b57 fix CVE-2021-33574 2021-06-21 10:19:58 +08:00
xuhuijie
d33df5fa43 fix locales's BEP inconsistence, use python to replace same file to hard link 2021-04-27 20:38:33 +08:00
xielhxie
a2703f537a Fix-the-inaccuracy-of-j0f-j1f-y0f-y1f-BZ.patch 2021-04-16 16:18:35 +08:00
wangshuo
51bddc616d upgrade glibc from 2.31-9 to 2.33-1 2021-03-08 17:25:09 +08:00
Sdrkun
102231c569 elf: Allow dlopen of filter object to work [BZ #16272] 2021-01-26 20:09:32 +08:00
wangshuo
83df0b99ce Replace openEuler by %{_vendor} for versatility 2021-01-08 15:51:38 +08:00
liusirui
95f5794214 Fix CVE-2020-27618
Signed-off-by: liusirui <liusirui@huawei.com>
2020-11-10 17:30:27 +08:00
Sdrkun
2ed033ad3c rtld: Avoid using up static TLS surplus for optimizations [BZ #25051]. 2020-09-16 20:31:38 +08:00
MarsChan
0c410efa03 For political reasons, remove country selection from tzselect.ksh 2020-09-06 09:48:05 +08:00
xuhuijie
94a9b01b4e the new pthread_cond_wait function is slow when in multi core environment
because of the queue. so we build old version function in an extra .so file.
you can use it by adding LD_PRELOAD=./libpthreadcond.so in front of your
program (eg: LD_PRELOAD=./libpthreadcond.so ./test).
use with-libpthreadcond to open the spec compile option.
2020-08-17 10:20:27 +08:00
wangshuo
9093b3b59e disable warnings due to deprecated libselinux symbols used by nss and nscd 2020-07-25 11:43:05 +08:00