liqingqing_1229
f1754a4f67
Linux: Avoid closing -1 onfaiure in __closefrom_fallback
2022-05-30 10:31:09 +08:00
liqingqing_1229
9674849853
realpath: Avoid overwriting preexisting error(CVE-2021-3998)
2022-05-28 18:42:49 +08:00
xujing
fcdff92b0c
elf: Fix use-after-free in ldconfig [BZ #26779 ]
2022-05-20 14:42:00 +08:00
liqingqing_1229
09f4240df1
linux: Fix posix_spawn return code if clone fails (BZ#29109)
2022-05-07 09:07:08 +08:00
jiangheng
83d841595a
restore remove nscd
2022-05-05 19:31:28 +08:00
liqingqing_1229
b4ec523985
linux: Fix fchmodat with AT_SYMLINK_NOFOLLOW for 64 bit time_t (BZ#29097)
2022-05-05 15:30:43 +08:00
superhugepan
0a93b71ea4
posix/glob.c: update from gnulib
2022-04-29 16:27:00 +08:00
xujing
c14cb1be99
elf: Fix initial-exec TLS access on audit modules (BZ #28096 )
2022-04-24 19:23:33 +08:00
liqingqing_1229
752db166d0
nptl: Handle spurious EINTR when thread cancellation is disabled (BZ#29029)
...
upstream link is https://sourceware.org/bugzilla/show_bug.cgi?id=29029
2022-04-21 09:13:33 +08:00
liqingqing_1229
21334ee1f9
sync glibc upstream to fix bug 28828/28949/28993
...
here the details:
libio: Ensure output buffer for wchars bug 28828
libio: libio Flush onlu _IO_str_overflow must not return EOF bug 28949
linux: Fix _closefrom_fallback iterates until max int bug 28993
2022-04-11 14:19:05 +08:00
liqingqing_1229
a99a5d915f
localedef: Handle symbolic links when generating locale-archive
2022-04-08 09:13:59 +08:00
Lv Ying
3579b038ab
use mlock to determine hugepage RLIMIT_MEMLOCK soft resource limit is valid
...
Signed-off-by: Lv Ying <lvying6@huawei.com>
(cherry picked from commit e2b1c096a33d8130e739a6800ebae38db80a6346)
2022-03-31 09:37:58 +08:00
Yang Yanchao
74dd0680dc
mv libc.info.gz* to the package glibc-help
...
Signed-off-by: Yang Yanchao <yangyanchao6@huawei.com>
2022-03-29 19:24:08 +08:00
Yang Yanchao
780caed580
malloc: Improve Huge Page support
...
backport the following seven patches
malloc: Add madvise support for Transparent Huge Pages
malloc: Add THP/madvise support for sbrk
malloc: Move mmap logic to its own function
malloc: Add Huge Page support for mmap
malloc: Add Huge Page support to arenas
malloc: Move MORECORE fallback mmap to sysmalloc_mmap_fallback
malloc: Enable huge page support on main arena
Signed-off-by: Yang Yanchao <yangyanchao6@huawei.com>
2022-03-17 10:37:59 +08:00
Yang Yanchao
9727938951
malloc: use __get_nprocs replace __get_nprocs_sched.
...
Signed-off-by: Yang Yanchao <yangyanchao6@huawei.com>
2022-03-12 15:57:30 +08:00
Lv Ying
5793040e7a
elf: dynamic linker load lib use hugepage
...
This patch provides environment variables HUGEPAGE_PROBE and LD_HUGEPAGE_LIB
to enable load shared object use hugepage.
Signed-off-by: Lv Ying <lvying6@huawei.com>
Reviewed-by: zhoukang <gameoverboss@163.com>
2022-03-07 03:48:03 +00:00
qinyu
2c4eaeba9b
glibc: disable rseq feature by default with tunable
...
disable rseq feature by default with tunable
Signed-off-by: qinyu <qinyu16@huawei.com>
2022-03-04 10:59:43 +08:00
Yunfeng Ye
3247300521
glibc: Add PTRACE_GET_RSEQ_CONFIGURATION
...
Linux 5.13 adds a PTRACE_GET_RSEQ_CONFIGURATION constant, with an
associated ptrace_rseq_configuration structure.
Add this constant to the various sys/ptrace.h headers in glibc, with
the structure in bits/ptrace-shared.h (named struct
__ptrace_rseq_configuration in glibc, as with other such structures).
2022-03-03 06:19:37 -05:00
liqingqing_1229
e3cb56ed65
add chrpath to BuildRequires to make 'remove shared library's RPATH/RUNPATH' to take effect
2022-03-03 10:26:53 +08:00
liqingqing_1229
c06b87ef7b
x86: strncmp-avx2-rtm and wcsncmp-avx2-rtm fallback on non-rtm variants when avoiding overflow. [BZ #28896 ]
2022-03-02 15:27:48 +08:00
Yang Yanchao
4dddc72189
glibc:Merge testsuite_whitelist.aarch64 and testsuite_whitelist.x86_64 to testsuite_whitelist.
...
Signed-off-by: Yang Yanchao <yangyanchao6@huawei.com>
2022-03-02 11:36:35 +08:00
liqingqing_1229
6293129cfe
remove shared library's RPATH/RUNPATH for security
2022-03-01 17:26:44 +08:00
qinyu
9042da8301
glibc: add supposrt for rseq
...
add rseq support
Signed-off-by: qinyu <qinyu16@huawei.com>
(cherry picked from commit db74864101252bb75250782ca32e47d1b1545c1f)
2022-03-01 14:37:01 +08:00
Yang Yanchao
6b21936199
Only in the CI environment, the build is interrupted due to test case failure.
...
Signed-off-by: Yang Yanchao <yangyanchao6@huawei.com>
2022-02-24 11:21:03 +08:00
Yang Yanchao
03b9b27526
strcmp: delete align for loop_aligned
...
In Kunpeng-920, the performance of strcmp deteriorates only
when the 16 to 23 characters are different.Or the string is
only 16-23 characters.That shows 2 misses per iteration which
means this is a branch predictor issue indeed.
In the preceding scenario, strcmp performance is 300% worse than expected.
Fortunately, this problem can be solved by modifying the alignment of the functions.
Signed-off-by: Yang Yanchao <yangyanchao6@huawei.com>
2022-02-23 15:35:13 +08:00
Yang Yanchao
14ed19693b
- The release of glibc.src.rpm in OpenEuler is not based on the architecture.
...
Developers only have glibc.src.rpm in the ARM, so add all testsuite_whitelist in glibc.src.rpm.
Signed-off-by: Yang Yanchao <yangyanchao6@huawei.com>
2022-02-23 14:24:59 +08:00
liqingqing_1229
31a8154528
tzselect: use region to instead of country for extract timezone selection
2022-02-22 15:20:56 +08:00
shirely16
223e18c1a6
remove nscd
...
(cherry picked from commit b3377d2da5dc73eca67e2ac15399fc51fff19699)
2022-02-11 15:12:54 +08:00
liqingqing_1229
0e1ffabe6f
linux: fix accurarcy of get_nprocs and get_nprocs_conf [BZ #28865 ]
2022-02-09 12:15:48 +08:00
Yang Yanchao
1b7bed85e9
disable rt/tst-cpuclock2 which often fails in CI.
...
Signed-off-by: Yang Yanchao <yangyanchao6@huawei.com>
2022-02-08 15:42:22 +08:00
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