154 Commits

Author SHA1 Message Date
liqingqing_1229
2e0cab11bd malloc: Fix -Wuse-after-free warning in tst-mallocalign1 [BZ #26779]
(cherry picked from commit f4d1aa7c0eb6ab455206eac45fed334f8af28237)
2023-04-14 18:02:40 +08:00
zhang-hao-jon
f5607f879f backport patches from upstream
(cherry picked from commit e6532c26154a7a6b382fb0478488b7722a4aa592)
2023-04-12 11:00:41 +08:00
sxt1001
8b3679adf0 backport patches from upstream
(cherry picked from commit d7460c58d721d6a431ce21d0bd3e455c1070abea)
2023-03-27 14:18:33 +08:00
Chen Ziyang
fed2858eec elf/ld.so: fix ld.so mmap shared object use hugepage bugfix
(cherry picked from commit a7c72dd6ca9aa03f9c7c5e6cbe1f3e32883d12d5)
2023-03-27 09:03:59 +08:00
liqingqing_1229
c96c4bdfd7 malloc: Fix transposed arguments in sysmalloc_mmap_fallback call
(cherry picked from commit 5fd83b1e3edd02c5098cc3776715103c97bd5ac0)
2023-03-14 15:07:16 +08:00
Lv Ying
73615b42a5 elf/ld.so: ld.so mmap shared object use hugepage new feature and bugfix
* feature: support HUGEPAGE_PROBE + hugepageedit mark shared object
           specified segment, just try to use hugepage to mmap specified segment
           instead of all the segments in the shared object
* bugfix: remove _mmap_hole when ld.so mmap PT_LOAD segment try to use hugepage

Signed-off-by: Lv Ying <lvying6@huawei.com>
2023-02-28 05:05:08 +08:00
liqingqing_1229
bd4e84be07 gmon: Fix allocated buffer overflow (bug 29444)
(cherry picked from commit 9d4bb4e38920dea02b55bc62b0dcb6b3b155cf6c)
2023-02-23 09:42:54 +08:00
Yang Yanchao
ff694d9533 fix error patch number
(cherry picked from commit 5239f8f79ceabf8ab487dba5e32799c23340e36e)
2023-02-08 15:36:03 +08:00
Yang Yanchao
25a73f93ac add pthread_cond_clockwait@GLIBC_2_28
Since the pthread_cond_clockwait@GLIBC_2_28 is introduced in earlier versions, this symbol is required to keep the previous items compatible.

Signed-off-by: Yang Yanchao <yangyanchao6@huawei.com>
(cherry picked from commit 7853017efa751cdd6a4b95f3f2484558bd68d1fb)
2023-02-07 10:17:35 +08:00
Xing Li
9cd31027a4 Fixup asin and acos errors for LoongArch
(cherry picked from commit d7774929145fcc559a76bc1b1a294711385602e2)
2023-02-02 21:00:22 +08:00
Xing Li
1a8cc80474 Fixup release version error
(cherry picked from commit 7f5708c573b6feb9f053a93d4215d6018b38266b)
2023-02-01 20:52:50 +08:00
Xing Li
9041102488 Fixup testsuite_whitelist for LoongArch64
(cherry picked from commit 5549e0ff1c14a64323c61ea6c2c4c201db136d49)
2023-02-01 10:14:08 +08:00
Xue Liu
4adfab66ba LoongArch: Optimize string functions including memcpy, memmove,
memset, strchr, strchrnul, strcmp, strncmp, ctrcpy, ctrlen, strnlen.

(cherry picked from commit 4ba365320a633ecd4cb47d8f171aa81fcd1dd6ef)
2023-01-29 14:28:25 +08:00
wanghongliang
37e8dfc0c5 LoongArch Port.
Signed-off-by: wanghongliang <wanghongliang@loongson.cn>
(cherry picked from commit 9783953f246d74ea2dfd5fbf25ff483b5988e8c0)
2022-12-21 17:48:29 +08:00
lijianglin
bd29306baa x86: Fix wcsnlen-avx2 page cross length comparison
(cherry picked from commit 37e8226583d88a2b812ae226ad51ca3b0df08f67)
2022-12-16 17:20:27 +08:00
liqingqing_1229
475a8ee8af io: Fix use after free in ftw (BZ 26779)
(cherry picked from commit 79dcf1a0e983217810662ec0ebe26dc33b43c41c)
2022-12-12 19:57:16 +08:00
shixuantong
0a6899cbaa sync patches from upstream community
(cherry picked from commit 728e1f1f679b5177ba8e35972e119cea66aa1694)
2022-12-09 14:48:47 +08:00
lvying6
1e8491e670 elf: Fix alloca size in _dl_debug_vdprintf
Signed-off-by: lvying6 <lvying6@huawei.com>
(cherry picked from commit 9b2f121d729ab002d75baa22a57b031e1fd0fdbf)
2022-11-29 19:11:18 +08:00
xujing
3eb39cfce7 elf: Fix hwcaps string size overestimation
(cherry picked from commit 61f728ecca0cad5ba471ce56a853e97209bb4725)
2022-10-22 16:37:25 +08:00
xujing
1e766c498c backport upstream patches 2022-10-10 14:27:02 +08:00
lvying6
98bfe82501 elf: refactor for ld.so use hugepage
LD_HUGEPAGE_LIB HUGEPAGE_PROBE and LD_DEBUG no longer share GLRO(dl_debug_mask)
remove use-mlock-to-determine-hugepage-RLIMIT_MEMLOCK-soft-.patch

Signed-off-by: lvying6 <lvying6@huawei.com>
2022-10-10 12:36:29 +08:00
Vchanger
3fafbd6275 socket: Fix mistyped define statement in socket/sys/socket.h(BZ #29225) 2022-10-09 10:08:33 +08:00
liqingqing_1229
f9979abd6d nptl:Fix ___pthread_unregister_cancel_restore asynchronous 2022-09-08 19:16:19 +08:00
liqingqing_1229
af0473d7f8 add requires between glibc-info and glibc 2022-09-08 14:22:57 +08:00
Lv Ying
e9d4e0e558 fix LD_HUGEPAGE_LIB env does not take effect
Signed-off-by: Lv Ying <lvying6@huawei.com>
2022-08-10 05:31:56 +08:00
xujing
542058db63 sync patches from upstream community 2022-08-02 10:59:01 +08:00
liqingqing_1229
8110ba7b02 optimize Obsoletes version 2022-07-28 16:17:16 +08:00
Yang Yanchao
13528d91ee add libpthread_nonshared.a in glibc-compat-2.17 for old applications
Signed-off-by: Yang Yanchao <yangyanchao6@huawei.com>
2022-07-07 15:42:58 +08:00
liqingqing_1229
3300f1534a enable -werror by default 2022-07-06 15:18:20 +08:00
liqingqing_1229
f7943522cd Fix mq_timereceive check for 32bit fallback code (BZ 29304) 2022-07-01 14:56:43 +08:00
liqingqing_1229
0d00f6fd2a aarch64: add -mno-outline-atomics to prevent mallocT2_xx performance regression 2022-06-28 16:27:57 +08:00
liqingqing_1229
f0a89aa4dd x86: use total l3cache for non_temporal_threshold 2022-06-27 20:42:44 +08:00
Yang Yanchao
56e49a9484 Use Lua to compile the installation scripts of glibc-common and glibc-locale-archive.
Signed-off-by: Yang Yanchao <yangyanchao6@huawei.com>
2022-06-14 19:37:40 +08:00
liqingqing_1229
29b022e112 use locale-archive to prevent basic command performance regression
all the basic command like chgrp/chmod/chown/mkdir/touch
will first search /use/lib/locale/locale-archive. if failed,
then search the exact locale like /usr/lib/locale/zh_CN.
right now we don't have locale-archive and this will cause the
basic command's performance regression, so add it.
2022-06-01 16:30:30 +08:00
superhugepan
9cdd2ced15 Fix deadlock when pthread_atwork handler calls pthread_atwork or dlclose 2022-05-31 20:51:11 +08:00
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