taoyuxiang
22e8e12bc8
[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.
(cherry picked from commit 05ed122de513e7cd1dd41d13453fac9b931e73ae)
2024-07-22 09:08:09 +08:00
openeuler-ci-bot
03d346d3da
!845 [sync] PR-843: elf: Properly align PT_LOAD segments
...
From: @openeuler-sync-bot
Reviewed-by: @liqingqing_1229
Signed-off-by: @liqingqing_1229
2024-06-26 02:34:50 +00:00
chenhaixiang
fb0263a87a
elf: Properly align PT_LOAD segments
...
Signed-off-by: chenhaixiang <chenhaixiang3@huawei.com>
(cherry picked from commit 9e979d281b7638988401d97edfc71a3fdaeeb64b)
2024-06-25 16:23:26 +08:00
openeuler-ci-bot
597164478f
!842 [sync] PR-840: 修复ppc64le架构编译问题
...
From: @openeuler-sync-bot
Reviewed-by: @liqingqing_1229
Signed-off-by: @liqingqing_1229
2024-06-18 06:07:34 +00:00
hefq343
9c71106d0f
fix compile error for ppc64le
...
Signed-off-by: hefq343 <fengqing.he@shingroup.cn>
(cherry picked from commit 116659c1e33b5e5e68cb57b5c7e502314155d0cd)
2024-06-18 11:25:09 +08:00
openeuler-ci-bot
b4f6bb69fa
!833 [sync] PR-829: elf:sync some patches:
...
From: @openeuler-sync-bot
Reviewed-by: @liqingqing_1229
Signed-off-by: @liqingqing_1229
2024-05-11 03:05:01 +00:00
shixuantong
995edf4011
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:29 +08:00
openeuler-ci-bot
2d76efa64d
!822 [sync] PR-819: sync upstream patch
...
From: @openeuler-sync-bot
Reviewed-by: @liqingqing_1229
Signed-off-by: @liqingqing_1229
2024-05-07 13:36:36 +00:00
chengyechun
ce85cedaf5
sync some patches from upstream
...
(cherry picked from commit 2f5eacafd0fa15456697f66351c59afa1a02e1cc)
2024-05-07 20:04:09 +08:00
openeuler-ci-bot
3e6ef6b32c
!808 fix CVE-2024-33599 CVE-2024-33600 CVE-2024-33601 CVE-2024-33602
...
From: @chengyechun
Reviewed-by: @yang_yanchao
Signed-off-by: @yang_yanchao
2024-04-30 02:10:36 +00:00
chengyechun
434a61b6c9
fix CVE-2024-33599 CVE-2024-33600 CVE-2024-33601 CVE-2024-33602
2024-04-29 17:09:03 +08:00
openeuler-ci-bot
1a36306f9f
!801 [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:00 +00:00
Xing Li
389b5b3da0
LoongArch: Add missing relcation types in elf.h
...
(cherry picked from commit 9b33d5e1078751c7940997de1c21a0532e8b0c0f)
2024-04-25 09:06:31 +08:00
openeuler-ci-bot
56f7fed229
!796 [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:03 +00:00
Yang Yanchao
c58dda0e48
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:39 +08:00
openeuler-ci-bot
911c576279
!772 [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:48 +00:00
liqingqing_1229
39da5105f1
malloc:ImproveMAP_HUGETLBwithglibc.malloc.hugetlb=2
...
(cherry picked from commit df8d97af7ff7a6b7abb8ac46f48f581f621362cc)
2024-01-13 15:12:58 +08:00
openeuler-ci-bot
c44d692564
!765 [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-08 01:03:22 +00:00
shixuantong
463285abd7
Fix invalid pointer dereference in wcpcpy_chk and wcscpy_chk
...
(cherry picked from commit eb2474daa03e009409d5070d7d822cab56da5169)
2023-12-29 16:32:58 +08:00
openeuler-ci-bot
b258c766f9
!760 [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:19 +00:00
shixuantong
efb9eb20a0
elf: Handle non-directory name in search path (BZ 31035)
...
(cherry picked from commit 18ffacbc1aafc4d06ddcae595f373dc234a3609b)
2023-12-14 16:40:56 +08:00
openeuler-ci-bot
0be0b208a9
!748 fix one patch missing in source rpm package
...
From: @ni-cunshu
Reviewed-by: @barbo, @liqingqing_1229
Signed-off-by: @liqingqing_1229
2023-12-06 00:58:15 +00:00
Ni Cunshu
2902834bba
fix one patch missing in source rpm package
...
Signed-off-by: Ni Cunshu <nicunshu@huawei.com>
2023-12-05 20:44:32 +08:00
openeuler-ci-bot
3b2777c1fc
!743 [sync] PR-740: Fixup LoongArch port problem
...
From: @openeuler-sync-bot
Reviewed-by: @liqingqing_1229
Signed-off-by: @liqingqing_1229
2023-11-22 06:11:58 +00:00
Xing Li
27df048fb5
Fixup LoongArch Port errors after the fstatat64 backport
...
(cherry picked from commit a11d8db8e5f44a5dd6b482483ae6dc2cdf4397fb)
2023-11-22 09:05:44 +08:00
openeuler-ci-bot
12ba85f615
!738 [sync] PR-734: Modify patch 9030 defined multiple times
...
From: @openeuler-sync-bot
Reviewed-by: @liqingqing_1229
Signed-off-by: @liqingqing_1229
2023-11-09 08:47:12 +00:00
doupengda
5d6536f25f
Modify patch 9030 defined multiple times
...
(cherry picked from commit 5ffc1199b1878d27a4f85d1e97c940242498e96d)
2023-11-09 14:12:42 +08:00
openeuler-ci-bot
5ce9b1663d
!733 [sync] PR-729: [Backport]posix: Fix some crashes in wordexp
...
From: @openeuler-sync-bot
Reviewed-by: @liqingqing_1229
Signed-off-by: @liqingqing_1229
2023-10-27 06:11:49 +00:00
zhangnaichuan
6d56e5985b
posix: Fix some crashes in wordexp
...
(cherry picked from commit 6772715cbd4db6047a3563a304da26f2cbe528a9)
2023-10-27 09:00:02 +08:00
openeuler-ci-bot
fd09f7374f
!724 io: Do not implement fstat with fstatat, use the upstream's implementation
...
From: @lijianglin6
Reviewed-by: @liqingqing_1229
Signed-off-by: @liqingqing_1229
2023-10-23 00:49:20 +00:00
lijianglin
7ddcd38c39
io: Do not implement fstat with fstatat, use the upstream's implementation
2023-10-20 10:27:25 +08:00
openeuler-ci-bot
3091fca8d4
!722 [sync] PR-716: fix CVE-2023-4911
...
From: @openeuler-sync-bot
Reviewed-by: @liqingqing_1229
Signed-off-by: @liqingqing_1229
2023-10-09 07:52:19 +00:00
liningjie
429777cd36
fix CVE-2023-4911
...
(cherry picked from commit 022f49af2584ef5c96035079995d38d7b2eea194)
2023-10-09 11:15:49 +08:00
openeuler-ci-bot
03db3ce75e
!710 fix:CVE-2023-5156
...
From: @zhang-hao-jon
Reviewed-by: @liqingqing_1229
Signed-off-by: @liqingqing_1229
2023-09-28 01:11:42 +00:00
zhanghao
b0c75da703
fix:CVE-2023-5156
2023-09-27 10:59:22 +08:00
openeuler-ci-bot
3ac148a4ad
!704 [sync] PR-701: fix:CVE-2023-4086 CVE-2023-5156
...
From: @openeuler-sync-bot
Reviewed-by: @liqingqing_1229
Signed-off-by: @liqingqing_1229
2023-09-26 08:46:49 +00:00
zhanghao
c07b6a456a
fix:CVE-2023-4086 CVE-2023-5156
...
(cherry picked from commit 8e08a0bf6218646948d86545e33a809d39cd5ca2)
2023-09-26 15:22:01 +08:00
openeuler-ci-bot
3382c2c8dd
!697 [sync] PR-694: glibc:CVE-2023-4813
...
From: @openeuler-sync-bot
Reviewed-by: @liqingqing_1229
Signed-off-by: @liqingqing_1229
2023-09-25 08:42:16 +00:00
zhanghao
d4b226d0b9
glibc:CVE-2023-4813
...
(cherry picked from commit 68cce272bbe12f9ada16144818c433cd2bbd1380)
2023-09-25 08:50:13 +08:00
openeuler-ci-bot
210750baec
!679 string: strerror must not return NULL (bug 30555)
...
From: @lvying6
Reviewed-by: @liqingqing_1229
Signed-off-by: @liqingqing_1229
2023-08-30 07:41:52 +00: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
openeuler-ci-bot
6be0c886d6
!674 time: strftime_l: Avoid an unbounded alloca.
...
From: @chenhaixaing
Reviewed-by: @liqingqing_1229
Signed-off-by: @liqingqing_1229
2023-08-30 06:17:07 +00:00
chenhaixiang
ef4082b826
time: strftime_l: Avoid an unbounded alloca.
2023-08-29 03:57:53 -04:00
openeuler-ci-bot
496a6a31fe
!666 [sync] PR-665: resolv_conf: release lock on allocation failure (bug 30527)
...
From: @openeuler-sync-bot
Reviewed-by: @liqingqing_1229
Signed-off-by: @liqingqing_1229
2023-08-15 09:23:20 +00: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
openeuler-ci-bot
715a4e00df
!663 [sync] PR-659: inet: backport patch from upstream
...
From: @openeuler-sync-bot
Reviewed-by: @liqingqing_1229
Signed-off-by: @liqingqing_1229
2023-08-14 01:24:27 +00:00
chengyechun
e6fbc6502f
inet: fix warn unused result
...
(cherry picked from commit 802108b8501a08d882d784fc9eba1c81388e56eb)
2023-08-14 09:23:39 +08:00
openeuler-ci-bot
74c246474c
!657 [sync] PR-654: nscd:sync some patches
...
From: @openeuler-sync-bot
Reviewed-by: @liqingqing_1229
Signed-off-by: @liqingqing_1229
2023-08-08 06:21:15 +00:00
zhanghao
db4cb6ba4d
nscd:sync some patches
...
(cherry picked from commit b4fb6b6565cf891067795e92f4ad649d50adede0)
2023-08-08 14:20:28 +08:00
openeuler-ci-bot
b3c7917f79
!646 [sync] PR-645: Add static PIE support for LoongArch
...
From: @openeuler-sync-bot
Reviewed-by: @liqingqing_1229
Signed-off-by: @liqingqing_1229
2023-07-31 02:40:38 +00:00