419 Commits

Author SHA1 Message Date
nicholastao
ac0bbd5351 fix CVE-2025-0395
(cherry picked from commit 02a9369f2338ffdde6f8983b006758b5c9899456)
2025-02-25 14:14:52 +08:00
openeuler-ci-bot
7900200f23
!990 AArch64: Optimize memcmp
From: @ivandad 
Reviewed-by: @liqingqing_1229 
Signed-off-by: @liqingqing_1229
2025-02-11 00:53:09 +00:00
mayuhang
5b60a2d9ea AArch64: Optimize memcmp 2025-02-10 11:26:59 +08:00
openeuler-ci-bot
0246ac4aea
!963 [sync] PR-961: 同步PR!958 change Inner-Net to Inner-Net-2.0
From: @openeuler-sync-bot 
Reviewed-by: @liqingqing_1229 
Signed-off-by: @liqingqing_1229
2024-12-12 06:20:01 +00:00
沈仲伟
9a14adef39 Change Inner-Net to Inner-Net-2.0
(cherry picked from commit 76d09e2d038f4ddc431a2e3e6fe09125a15aaa04)
2024-12-12 14:19:34 +08:00
openeuler-ci-bot
673432b017
!942 [sync] PR-939: sync some patches for elf
From: @openeuler-sync-bot 
Reviewed-by: @liqingqing_1229 
Signed-off-by: @liqingqing_1229
2024-12-06 06:07:04 +00:00
shixuantong
b3786af656 sync some patches for elf
details:
   elf: Handle static PIE with non-zero load address
   elf: Introduce _dl_relocate_object_no_relro
   elf: Switch to main malloc after final ld.so self-relocation

(cherry picked from commit 839e7c9f5f823e8b4e7c22ca5e13d2745399dcd7)
2024-12-06 14:06:33 +08:00
openeuler-ci-bot
8950243b00
!934 [sync] PR-931: sync some patches
From: @openeuler-sync-bot 
Reviewed-by: @liqingqing_1229 
Signed-off-by: @liqingqing_1229
2024-11-29 06:15:38 +00:00
shixuantong
ed768104cf sync some patches:
elf: avoid jumping over a needed declaration
    elf: Move __rtld_malloc_init_stubs call into _dl_start_final

(cherry picked from commit 6b2ec1fa1524750b9d8282baf3e13e739a0d5d80)
2024-11-29 14:12:45 +08:00
openeuler-ci-bot
a3eb9f0ce4
!924 try to enable system thp ability when LD_HUGEPAGE_LIB=2
From: @liqingqing_1229 
Reviewed-by: @yang_yanchao 
Signed-off-by: @yang_yanchao
2024-11-22 01:24:30 +00:00
Qingqing Li
a1cf41c361 try to enable system thp ability when LD_HUGEPAGE_LIB=2 2024-11-21 11:56:42 +08:00
openeuler-ci-bot
6b1f79c385
!917 sync some patches
From: @chengyechun 
Reviewed-by: @liqingqing_1229 
Signed-off-by: @liqingqing_1229
2024-11-06 06:35:45 +00:00
jiangheng
5384e3d9f4 sync some patches from upstream 2024-11-06 10:32:45 +08:00
openeuler-ci-bot
a6aea325b1
!906 [sync] PR-903: elf: execve statically linked programs instead of crashing
From: @openeuler-sync-bot 
Reviewed-by: @liqingqing_1229 
Signed-off-by: @liqingqing_1229
2024-11-05 02:53:39 +00:00
shixuantong
7f289005ac elf: execve statically linked programs instead of crashing
(cherry picked from commit 9194b029057ffad3792c84685dd454e68573c86d)
2024-11-05 09:45:00 +08:00
openeuler-ci-bot
d80fabe333
!896 fix changelog
From: @liqingqing_1229 
Reviewed-by: @yangyingliang, @yang_yanchao 
Signed-off-by: @yang_yanchao
2024-09-14 07:53:04 +00:00
liqingqing_1229
b76f3e5c91 fix changelog 2024-09-14 11:52:28 +08:00
openeuler-ci-bot
ef0da3ab1b
!893 Use thp for dynamic shared librarys when LD_HUGEPAGE_LIB=2
From: @liqingqing_1229 
Reviewed-by: @lvying6, @yang_yanchao 
Signed-off-by: @lvying6, @yang_yanchao
2024-09-14 02:45:48 +00:00
Qingqing Li
c991d3f17c Use thp for dynamic shared librarys when LD_HUGEPAGE_LIB=2 2024-09-12 21:37:21 +08:00
openeuler-ci-bot
23ccc71865
!878 enable share library use huge page for aarch architecture
From: @tong_1001 
Reviewed-by: @lvying6, @liqingqing_1229 
Signed-off-by: @lvying6, @liqingqing_1229
2024-08-20 16:07:29 +00:00
openeuler-ci-bot
4a23394457
!863 mktime: improve heuristic for ca-1986 Indiana DST
From: @fundawang 
Reviewed-by: @liqingqing_1229 
Signed-off-by: @liqingqing_1229
2024-08-05 00:53:29 +00:00
Funda Wang
c5118dc63c mktime: improve heuristic for ca-1986 Indiana DST 2024-08-03 10:27:38 +08:00
openeuler-ci-bot
6e2f182388
!858 [sync] PR-854: resolv:Do not wait for no-existing second DNS response after error
From: @openeuler-sync-bot 
Reviewed-by: @liqingqing_1229 
Signed-off-by: @liqingqing_1229
2024-08-02 06:17:22 +00:00
chengyechun
8037b5711f fix bug
(cherry picked from commit 3dc8eecaf21299c21430989673e14dcc2b39ed81)
2024-07-31 09:23:31 +08:00
openeuler-ci-bot
c03a27cd70
!856 [sync] PR-852: stdlib: fix grouping verification with multi-byte thousands
From: @openeuler-sync-bot 
Reviewed-by: @liqingqing_1229 
Signed-off-by: @liqingqing_1229
2024-07-31 01:22:03 +00:00
zhuofeng
107f774e7e stdlib: fix grouping verification with multi-byte thousands
(cherry picked from commit a706d9af7a5b164690dd93828791872ed699254b)
2024-07-31 09:20:03 +08:00
shixuantong
2291cb1684 enable share library use huge page for aarch architecture 2024-07-22 06:31:55 +08:00
openeuler-ci-bot
adfa6cbb06
!850 [PATCH] Check the validity of len before mmap
From: @nicholastao 
Reviewed-by: @tong_1001, @yang_yanchao 
Signed-off-by: @yang_yanchao
2024-07-16 01:16:02 +00:00
t30002884
427e4261f4 [PATCH] Check the validity of len before mmap
Two cases:
(1)If condition 'c->mapend + extra_len < c->mapstart + relro_len' is True, the result of "len" (size_t len = (c->mapend + extra_len) - (c->mapstart + relro_len)) will be a negative value. 'len' is of type size_t, so it overflows. later __mmap will fail, because 'len - mod' is a very large value at this point.

(2)If the data segment is small, "len" may be equal to 0. In this case, __mmap also fails.

In both cases, the mapping fails, the mapping is falled back, and hugepage feature of dynamic library becomes invalid. Case (1) is an exception, and the fallback is the expected. Case (2) should not be fallled back in its entirety. In this case, the code segment may continue to use huge page, and the data segment uses 4KB page.
2024-07-15 10:43:36 +08:00
openeuler-ci-bot
056d76b9e4
!843 elf: Properly align PT_LOAD segments
From: @chenhaixaing 
Reviewed-by: @yang_yanchao 
Signed-off-by: @yang_yanchao
2024-06-25 05:23:39 +00:00
chenhaixiang
9e979d281b elf: Properly align PT_LOAD segments
Signed-off-by: chenhaixiang <chenhaixiang3@huawei.com>
2024-06-24 23:05:35 -04:00
openeuler-ci-bot
4436901148
!840 修复ppc64le架构编译问题
From: @hefq343 
Reviewed-by: @liqingqing_1229 
Signed-off-by: @liqingqing_1229
2024-06-18 03:05:27 +00:00
hefq343
116659c1e3 fix compile error for ppc64le
Signed-off-by: hefq343 <fengqing.he@shingroup.cn>
2024-06-17 08:40:54 +00:00
openeuler-ci-bot
93a1c370a1
!830 [sync] PR-829: elf:sync some patches:
From: @openeuler-sync-bot 
Reviewed-by: @liqingqing_1229 
Signed-off-by: @liqingqing_1229
2024-05-11 02:20:13 +00:00
shixuantong
85d17fd9a2 elf:sync some patches:
elf: Add TLS modid reuse test for bug 29039
    elf: Fix TLS modid reuse generation assignment
    elf: Check objname before calling fatal_error
    elf: Fix _dl_debug_vdprintf to work before self-relocation
    elf: ldconfig should skip temporary files created by package managers
    ldconfig: Fixes for skipping temporary files.

(cherry picked from commit 54a5b49802feca14ddc99bb0ee816ef0e248c38c)
2024-05-11 08:59:19 +08:00
openeuler-ci-bot
1c3cc8e3e4
!824 [sync] PR-819: sync upstream patch
From: @openeuler-sync-bot 
Reviewed-by: @liqingqing_1229 
Signed-off-by: @liqingqing_1229
2024-05-08 00:52:52 +00:00
chengyechun
ad10043b98 sync some patches from upstream
(cherry picked from commit 2f5eacafd0fa15456697f66351c59afa1a02e1cc)
2024-05-07 20:04:15 +08:00
openeuler-ci-bot
7c6cd412b2
!813 [sync] PR-808: fix CVE-2024-33599 CVE-2024-33600 CVE-2024-33601 CVE-2024-33602
From: @openeuler-sync-bot 
Reviewed-by: @yang_yanchao 
Signed-off-by: @yang_yanchao
2024-04-30 07:57:21 +00:00
chengyechun
f42e5b7774 fix CVE-2024-33599 CVE-2024-33600 CVE-2024-33601 CVE-2024-33602
(cherry picked from commit 434a61b6c9c1af67561343c10f4ae5331964b667)
2024-04-30 10:10:47 +08:00
openeuler-ci-bot
3bb17c6134
!798 [sync] PR-797: Add LoongArch missing relocations
From: @openeuler-sync-bot 
Reviewed-by: @liqingqing_1229 
Signed-off-by: @liqingqing_1229
2024-04-25 06:10:14 +00:00
Xing Li
1d2a87dc43 LoongArch: Add missing relcation types in elf.h
(cherry picked from commit 9b33d5e1078751c7940997de1c21a0532e8b0c0f)
2024-04-25 09:06:23 +08:00
openeuler-ci-bot
cf0303c347
!793 [sync] PR-789: iconv: ISO-2022-CN-EXT: fix out-of-bound writes when writing escape sequence (CVE-2024-2961)
From: @openeuler-sync-bot 
Reviewed-by: @yang_yanchao 
Signed-off-by: @yang_yanchao
2024-04-23 08:27:13 +00:00
Yang Yanchao
8978495d8f iconv: ISO-2022-CN-EXT: fix out-of-bound writes when writing escape sequence (CVE-2024-2961)
Signed-off-by: Chen Jun <chenjun102@huawei.com>
(cherry picked from commit c6e9c2f7d9f8bd6457b406af4afd75b9b6ba8c9a)
2024-04-23 16:25:27 +08:00
openeuler-ci-bot
af3d73f514
!769 [sync] PR-768: malloc:ImproveMAP_HUGETLBwithglibc.malloc.hugetlb=2
From: @openeuler-sync-bot 
Reviewed-by: @yang_yanchao 
Signed-off-by: @yang_yanchao
2024-01-15 02:43:36 +00:00
liqingqing_1229
b93eaf863f malloc:ImproveMAP_HUGETLBwithglibc.malloc.hugetlb=2
(cherry picked from commit df8d97af7ff7a6b7abb8ac46f48f581f621362cc)
2024-01-13 15:12:47 +08:00
openeuler-ci-bot
897caba970
!762 [sync] PR-761: Fix invalid pointer dereference in wcpcpy_chk and wcscpy_chk
From: @openeuler-sync-bot 
Reviewed-by: @liqingqing_1229 
Signed-off-by: @liqingqing_1229
2024-01-02 01:14:14 +00: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
openeuler-ci-bot
0425ae7d83
!757 [sync] PR-756: elf: Handle non-directory name in search path (BZ 31035)
From: @openeuler-sync-bot 
Reviewed-by: @liqingqing_1229 
Signed-off-by: @liqingqing_1229
2023-12-14 11:07:06 +00: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
openeuler-ci-bot
4628947e34
!749 [sync] PR-748: fix one patch missing in source rpm package
From: @openeuler-sync-bot 
Reviewed-by: @liqingqing_1229 
Signed-off-by: @liqingqing_1229
2023-12-06 02:14:29 +00:00