liqingqing_1229
5bb3b84187
backport patches from upstream 2.34 branch
2022-02-08 12:31:30 +08:00
liqingqing_1229
d1531ed325
fix misc/tst-glibcsyscalls failed due to kernel reserve some syscalls
2022-02-07 21:21:34 +08:00
liqingqing_1229
c0d8fe0932
Pass the actual number of bytes returned by the kernel. Fixes: 33099d72e41c ("linux: Simplify get_nprocs")
...
(cherry picked from commit fbc7ff5e1a4c70a4cbcbbafdc055e114c0414931)
2022-02-07 16:17:00 +08:00
Yang Yanchao
facbb7dec1
Reconstruct the Debug Package Generation Mode:
...
The default debuginfo management mechanism is not deleted.
Instead, Use the default macro of RPM.
/usr/lib/rpm/openEuler/macros defines:
"""
%install% {?_Enable Debug Package:% {?Build subdirectory:% {debug package}\
%%Install\
%{nil}
"""
There are two changes:
1. The source files in /usr/src are
correctly packed into the debugging source.
2. The debugging file contains the glibc version number.
The CI detects the file change. However, I think this is caused by the CI.
Signed-off-by: Yang Yanchao <yangyanchao6@huawei.com>
(cherry picked from commit 962ab381cb348507eef59878a6ce56b4203b59ce)
2022-01-28 17:37:29 +08:00
Lv Ying
f7cd45c1c8
fix CVE-2019-1010023
...
Signed-off-by: Lv Ying <lvying6@huawei.com>
(cherry picked from commit 3c52b74faf765a574e6abc492c212655b4b45cfe)
2022-01-28 15:45:20 +08:00
liqingqing_1229
ebae52d773
Fix __wcsncmp_evex and __wcsncmp_avx2 [BZ #28755 ]
...
(cherry picked from commit 4035b008a59eb8f5b2701940f4fe8a1969c0fed9)
2022-01-28 12:02:44 +08:00
f00467700
6b774ad599
Disable debuginfod in printer tests [BZ #28757 ]
...
i386: Remove broken CAN_USE_REGISTER_ASM_EBP (bug 28771)
x86: use default cache size if it cannot be determined [BZ #28784 ]
2022-01-25 21:59:48 +08:00
liqingqing_1229
120d11e601
fix CVE-2021-3998 and CVE-2021-3999
2022-01-25 15:37:26 +08:00
Yang Yanchao
6e134fd0a5
disable check-installed-headers-c and check-installed-headers-cxx and delete glibc-benchtest to improve build speed
...
Signed-off-by: Yang Yanchao <yangyanchao6@huawei.com>
2022-01-21 15:46:51 +08:00
liqingqing_1229
2fe3fe9429
support: Add check for TID zero in support_wait_for_thread_exit
2022-01-21 10:40:22 +08:00
liqingqing_1229
c6eb2400b0
fix CVE-2022-23218 and CVE-2022-23219
2022-01-18 20:41:39 +08:00
Yang Yanchao
cc7c79d2a0
delete macro __filter_GLIBC_PRIVATE which is not support in rpm-4.17 Use arbitrary filtering to control GLIBC_PRIVATE
...
Signed-off-by: Yang Yanchao <yangyanchao6@huawei.com>
2022-01-12 09:59:40 +08:00
liqingqing_1229
5c4b6ffe5d
backport some bugfix patches from mainline
2022-01-11 10:27:21 +08:00
Yang Yanchao
2b5fb60476
build:add a switch, select find-debuginfo.sh
...
rpm-build move find-debuginfo.sh into debugedit.
and change the path from "/usr/lib/rpm" to "/usr/bin"
adapts this change
Signed-off-by: Yang Yanchao <yangyanchao6@huawei.com>
2022-01-10 15:11:04 +08:00
liqingqing_1229
fcfb718ec7
support: Also return fd when it is 0
2021-12-28 20:45:07 +08:00
liqingqing_1229
980c1e01c2
elf replace nsid with args.nsid [BZ #27609 ]
2021-12-27 09:27:05 +08:00
liusirui
6c13f1369d
ld.so: Don't fill the DT_DEBUG entry in ld.so [BZ #28129 ]
...
Signed-off-by: liusirui <liusirui@huawei.com>
(cherry picked from commit 38869172b4e1b1a6945cf8f0fb78f41093c3797e)
2021-12-27 08:42:27 +08:00
liqingqing_1229
c8f2841089
do not define tgmath.h fmaxmag, fminmag macros for C2X (BZ #28397 )
...
(cherry picked from commit cc054c6ba075a695abec8d3008e5183fdeea03f1)
2021-12-25 09:25:28 +08:00
liqingqing_1229
69524a30a5
io: Fix ftw internal realloc buffer (BZ #28126 )
...
(cherry picked from commit 83668a2e5d42180104021590f818d73052e4947b)
2021-12-24 16:07:14 +08:00
liqingqing_1229
2517d33b7f
fix glibc upstream bug BZ#28260 and nss/tst-nss-files-hosts-long and nptl/tst-create1
...
(cherry picked from commit c66918bc6053415d346a3b7f94553a73ba1df236)
2021-12-22 20:14:45 +08:00
liqingqing_1229
d2217b5497
pthread/tst-cancel28: Fix barrier re-init race condition
...
(cherry picked from commit 4405c4286873be3f9f04f742112af22caf8839bb)
2021-12-16 11:05:41 +08:00
Yang Yanchao
3369b7a7b2
Deleted some unnecessary command when make master.filelist
...
Signed-off-by: Yang Yanchao <yangyanchao6@huawei.com>
(cherry picked from commit 91e26f23d233769007ccca102b720697dc69ecf9)
2021-12-13 21:26:32 +08:00
Yang Yanchao
6e7a05a844
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>
(cherry picked from commit f5e24fbbc91f5674b85d32b2f71148638bc7c920)
2021-12-10 08:58:19 +08:00
Yang Yanchao
f573e88f94
turn the default value of x86_rep_stosb_threshold from 2k to 1M
...
Signed-off-by: Yang Yanchao <yangyanchao6@huawei.com>
(cherry picked from commit 6495a142f4b026f769f6162f18be549ede7a1476)
2021-12-03 14:17:59 +08:00
liqingqing_1229
738782294d
revert the use of sched_getaffinity [BZ #28310 ]
...
(cherry picked from commit 0057d144a90d6b57f3e3ba185dfca19d1a3282d7)
2021-12-03 10:23:52 +08:00
Bin Wang
3930cde25a
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>
(cherry picked from commit b91290ce417b9a6dec5d1d044fa8ab361d0e300a)
2021-11-30 11:36:38 +08:00
Yang Yanchao
2a138b3c83
Refactor the libpthread-2.17.so code and pass all test cases.
...
delete libpthread-2.17.so from glibc-devel
(cherry picked from commit 8615244aa3b58b6251dfad0c2c660134bd96bfcd)
2021-11-25 15:18:17 +08:00
liqingqing_1229
e55f336874
revert supress -Wcast-qual warnings in bsearch
...
(cherry picked from commit 1feba0288f96de12ea102ec6e8da994ceae77788)
2021-11-19 11:34:49 +08:00
liqingqing_1229
59c98cbb45
fix attribute access mode on getcwd [BZ #27476 ], supress -Wcast-qual warnings in bsearch
...
(cherry picked from commit 05f7be52737763a2b31fc326413d86e2a02a0c58)
2021-11-16 17:34:22 +08:00
liqingqing_1229
753f2695f1
elf: fix ld.so crash while loading a DSO with a read-only dynamic section
...
(cherry picked from commit 35e1891d7115354b362c1c6c122c085bb880d6fb)
2021-11-15 20:43:23 +08:00
liqingqing_1229
ef9fb4112e
gconv: Do not emit spurious NUL character in ISO-2022-JP-3, this also fix CVE-2021-43396.
...
(cherry picked from commit 3ab2b7b71b179a0de5b079c0c24b85172b847805)
2021-11-11 09:35:54 +08:00
liqingqing_1229
224e3c77ad
iconvconfig: Fix behaviour with --prefix
...
(cherry picked from commit 2b77a61d3e0765d9b5545e35002b1b23eb7b4b83)
2021-11-09 19:20:28 +08:00
liqingqing_1229
0703419f24
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
(cherry picked from commit 83aeb85874abee17a312eab44d75484c097ed8a8)
2021-11-09 09:49:28 +08:00
liqingqing_1229
2431e249b5
pthread_kill and pthread_cancel return success for satisfy posix standard.
...
(cherry picked from commit 5d781b4a0c02a823e7dae98e86775c3516ca3d91)
2021-11-05 09:59:30 +08:00
liqingqing_1229
d20be8b766
aarch64: update a64fx memset not to degrade at 16KB
...
(cherry picked from commit 653f3153b97d952c1e05772dbad0e9c6af4d6692)
2021-11-02 14:42:14 +08:00
liqingqing_1229
60ab5dcac1
use testl, instead of andl, to check __x86_string_control to
...
avoid updating __x86_string_control
(cherry picked from commit a085006b9ecdc4685067692c4d50832a28e274af)
2021-11-02 14:41:33 +08:00
Yang Yanchao
25bfe0fc5c
Show more debugging information during testsuite
...
Signed-off-by: Yang Yanchao <yangyanchao6@huawei.com>
(cherry picked from commit e6a721beed80460b73fa2bc1f39130336922914a)
2021-11-02 14:40:46 +08:00
Fcc
6dc5233811
Use __executable_start as the lowest address for profiling
...
(cherry picked from commit 14d36df964740fcf1236710de9e79b4380c2dae4)
2021-11-02 14:39:58 +08:00
Yang Yanchao
6a6b8fb597
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>
(cherry picked from commit 0efa08b12d929199d6355cfbffe03d86c2c798cc)
2021-11-02 14:39:08 +08:00
liqingqing_1229
af382177a3
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.
(cherry picked from commit 88a66f7a0c88f2b58ab82a670ff1d671c5cbfb68)
2021-11-02 14:38:13 +08:00
liqingqing_1229
89ddec60f7
fpu: x86-64 optimize load of all bits set into ZMM register.
...
(cherry picked from commit 018de895cabd2b028eba48efcba0d9f5bbaf71b1)
2021-11-02 14:37:06 +08:00
Yang Yanchao
eceb2aabf5
Add locale-archive sub packages to support more languages and reduce memory usage.
...
Signed-off-by: Yang Yanchao <yangyanchao6@huawei.com>
(cherry picked from commit 14364fe566c40364998b24184700e87ec69f593b)
2021-11-02 14:36:16 +08:00
Yang Yanchao
edaae34689
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>
(cherry picked from commit 99e0df34584506161b2e1b34dfa5d4cbd6100562)
2021-11-02 14:33:03 +08:00
liqingqing_1229
b0f357c5e8
update test memmove.c to cover 16KB
...
(cherry picked from commit 09e73f980a2082976132db18fec9247b7d01891b)
2021-11-02 12:03:52 +08:00
liqingqing_1229
353770b818
elf: drop elf/tls-macros.h in favor of thread tls_mode attribute.
...
use __ehdr_start for __GLOBAL_OFFSET_TABLE[0]
(cherry picked from commit 39ba9372151901720447a246c3293e862e7c0d39)
2021-11-02 08:51:52 +08:00
liqingqing_1229
cf356da366
time fix overflow itimer tests on 32 bit system
...
(cherry picked from commit 60314ef12d246e73f1ac04308ff9bda01d3c8ab6)
2021-11-01 20:49:49 +08:00
liqingqing_1229
270c700e66
mtrace: use a static buffer for printing, fix upstream bug BZ #25947
...
(cherry picked from commit 8b0605e3bfb2c5f594f8d16b2ff802e59df24c18)
2021-11-01 19:06:39 +08:00
liqingqing_1229
c91dfbc17b
aarch64: Make elf_machine_{load_addr,dynamic} robust [BZ #28203 ]
...
(cherry picked from commit e4fd5bf689c258409e10311fc1500998b8c9f3ad)
2021-11-01 16:58:27 +08:00
liqingqing_1229
1e9651012c
aarch64: optimize memset performance
...
(cherry picked from commit 8d6576b56f864d1a1fd03f1035fcd9a0b835e10a)
2021-11-01 10:47:22 +08:00
liqingqing_1229
b9bf92ef1c
fix some patches to fix some memory leak and double free bugs.
...
(cherry picked from commit 524981388ed240aa2c6728cadcf26d255e401e77)
2021-09-17 11:02:42 +08:00