187 Commits

Author SHA1 Message Date
liqingqing_1229
b93eaf863f malloc:ImproveMAP_HUGETLBwithglibc.malloc.hugetlb=2
(cherry picked from commit df8d97af7ff7a6b7abb8ac46f48f581f621362cc)
2024-01-13 15:12:47 +08:00
shixuantong
1982405ab3 Fix invalid pointer dereference in wcpcpy_chk and wcscpy_chk
(cherry picked from commit eb2474daa03e009409d5070d7d822cab56da5169)
2023-12-29 16:32:48 +08:00
shixuantong
bb17d5bf08 elf: Handle non-directory name in search path (BZ 31035)
(cherry picked from commit 18ffacbc1aafc4d06ddcae595f373dc234a3609b)
2023-12-14 16:40:46 +08:00
Ni Cunshu
cb98108345 fix one patch missing in source rpm package
Signed-off-by: Ni Cunshu <nicunshu@huawei.com>
(cherry picked from commit 2902834bbaa0e7575e2bbeefb8bc410d1064f09a)
2023-12-06 08:58:20 +08:00
Xing Li
3d89829d16 Fixup LoongArch Port errors after the fstatat64 backport
(cherry picked from commit a11d8db8e5f44a5dd6b482483ae6dc2cdf4397fb)
2023-11-22 09:05:47 +08:00
doupengda
af70b3b58b Modify patch 9030 defined multiple times
(cherry picked from commit 5ffc1199b1878d27a4f85d1e97c940242498e96d)
2023-11-09 14:12:29 +08:00
zhangnaichuan
6d56e5985b posix: Fix some crashes in wordexp
(cherry picked from commit 6772715cbd4db6047a3563a304da26f2cbe528a9)
2023-10-27 09:00:02 +08:00
lijianglin
7ddcd38c39 io: Do not implement fstat with fstatat, use the upstream's implementation 2023-10-20 10:27:25 +08:00
liningjie
429777cd36 fix CVE-2023-4911
(cherry picked from commit 022f49af2584ef5c96035079995d38d7b2eea194)
2023-10-09 11:15:49 +08:00
zhanghao
b0c75da703 fix:CVE-2023-5156 2023-09-27 10:59:22 +08:00
zhanghao
c07b6a456a fix:CVE-2023-4086 CVE-2023-5156
(cherry picked from commit 8e08a0bf6218646948d86545e33a809d39cd5ca2)
2023-09-26 15:22:01 +08:00
zhanghao
d4b226d0b9 glibc:CVE-2023-4813
(cherry picked from commit 68cce272bbe12f9ada16144818c433cd2bbd1380)
2023-09-25 08:50:13 +08:00
Lv Ying
18d6e3aaeb string: strerror must not return NULL (bug 30555)
Reference: https://sourceware.org/git/?p=glibc.git;a=commit;h=1d44530a5be2442e064baa48139adc9fdfb1fc6b

Signed-off-by: Lv Ying <lvying6@huawei.com>
2023-08-30 14:30:48 +08:00
chenhaixiang
ef4082b826 time: strftime_l: Avoid an unbounded alloca. 2023-08-29 03:57:53 -04:00
zhanghao
417d94e473 resolv_conf: release lock on allocation failure (bug 30527)
(cherry picked from commit 0652cd2981823513710ff9622318f642dcdd0735)
2023-08-15 17:22:37 +08:00
chengyechun
e6fbc6502f inet: fix warn unused result
(cherry picked from commit 802108b8501a08d882d784fc9eba1c81388e56eb)
2023-08-14 09:23:39 +08:00
zhanghao
db4cb6ba4d nscd:sync some patches
(cherry picked from commit b4fb6b6565cf891067795e92f4ad649d50adede0)
2023-08-08 14:20:28 +08:00
Xing Li
6d0055ebb0 Add static PIE support for LoongArch
(cherry picked from commit a5bb20f35b1c8c3375d5c62038bb4c79766fe8b1)
2023-07-31 10:39:57 +08:00
liqingqing_1229
17c3c399b9 time: Fix use-after-free in getdate
(cherry picked from commit ea9aab6ca5b57a3e3ee6ca2dba70b63805832429)
2023-07-17 09:41:07 +08:00
lijianglin
1ab3728dba add GB18030-2022 charmap and test the entire GB18030 charmap
(cherry picked from commit f80afd0133ec162dd50ae643533f143e4ba031d8)
2023-07-12 14:13:12 +08:00
chenziyang
be1cb38be8 elf: backport upstream patches
(cherry picked from commit 2e9614ea7c0dfb8a1ac213e34e4b6b7ab3472fd3)
2023-07-04 11:43:25 +08:00
lijianglin
fa67420a22 display declaration fstat function, make fstat call the system fstat function
(cherry picked from commit d11bcbf6d2e8b2c23722681bbd66d5fad0c8b92b)
2023-07-04 09:56:07 +08:00
liqingqing_1229
1e654c212a x86: add noseparate-code for bash program performance
(cherry picked from commit 34b884988db3e284ae8d219204af3aa1d05ad2d4)
2023-07-04 09:53:52 +08:00
liqingqing_1229
8bd345089f locale: reduce the size of locale C.utf-8
(cherry picked from commit 83ff00cc9338d93235f92a4df58282665f32c76e)
2023-07-04 09:52:01 +08:00
ljl
2ac9131cae add GB18030-2022 charmap
(cherry picked from commit 9c82f3e605ce8ae1ad401b7ba97ab2986dca893b)
2023-07-04 09:49:26 +08:00
Xing Li
f2871bed32 Async SHMLBA value with kernel
(cherry picked from commit f957e6025c012709b2f98fe9fac290c7f40e92cc)
2023-07-04 09:41:12 +08:00
liqingqing_1229
bf65691800 Revert "!589 Generate available relocations for sysboost"
This reverts commit d2186f2cd7ca09f9ee1688b58214d49594ce7ccd, reversing
changes made to 8892758dbf0f6c8ee597af204f109068cd4e8de1.
2023-07-04 09:40:25 +08:00
liqingqing_1229
06da24306c Revert "!592 locale: reduce the size of locale C.utf-8"
This reverts commit e31bffb62acdcc5b41af6d7feec21024ab590189, reversing
changes made to d2186f2cd7ca09f9ee1688b58214d49594ce7ccd.
2023-07-04 09:39:35 +08:00
liqingqing_1229
8a9625bbb1 locale: reduce the size of locale C.utf-8 2023-05-24 12:10:10 +08:00
Ricardo
cbeb280edc Merge branch 'openEuler-22.03-LTS-Next' of gitee.com:src-openeuler/glibc into openEuler-22.03-LTS-Next
Signed-off-by: Ricardo <liutie4@huawei.com>
2023-05-12 15:55:53 +08:00
Tie Liu
c633f505f0 Generate available relocations for sysboost 2023-05-12 10:08:40 +08:00
laokz
eed9a9d927 backport RISC-V patches
"align stack in clone" fix misaligned stack (from v2.35)

"stdlib strfrom Add copysign to fix NAN issue on riscv" fix
incomformity of strform with C99. (from v2.37)

"Assume only FLAG_ELF_LIBC6 support" deprecated all other
FLAG_ELFs which actually deprecated long ago for all arches.
(from v2.37)

"Restore ldconfig libc6 implicit soname logic" fix mistaken
of the above patch. (from v2.38)
2023-05-08 10:23:49 +08:00
Lv Ying
17c0041f1c elf/ld.so: Consider maybe-existing hole between PT_LOAD segments when mmap reserved area
Signed-off-by: Lv Ying <lvying6@huawei.com>
2023-04-28 13:59:31 +08:00
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