168 Commits

Author SHA1 Message Date
Xie jiamei
9cf451dd6f x86: Add support for Hygon processors
Signed-off-by: Xie jiamei <xiejiamei@hygon.cn>
2025-03-12 20:03:50 +08:00
shixuantong
8e09d668e0 elf: Keep using minimal malloc after early DTV resize
(cherry picked from commit 9eae27b47fc8fcad542f939ee869f65e4405421c)
2025-03-08 09:57:11 +08:00
shixuantong
b42c9f45cf glibc testcase use newly built ld.so instead of environment default installed ld.so
(cherry picked from commit 39be4915e4725de1e52ced4c6b8d0323703fc8c2)
2025-02-18 19:30:49 +08:00
shixuantong
66250a467c fix CVE-2019-1010023
(cherry picked from commit 0e80112809f744dee46b79cb37b4e8b28f546962)
2025-02-07 14:05:31 +08:00
Qingqing Li
d5576a8fed backport form glibc upstream 2.38 branch, this include below patches:
- stdlib: Test using setenv with updated environ [BZ #32588]
- Fix underallocation of abort_msg_s struct (CVE-2025-0395)
- elf: Support recursive use of dynamic TLS in interposed malloc
- elf: Avoid some free (NULL) calls in _dl_update_slotinfo
- x86/string: Fixup alignment of main loop in str{n}cmp-evex [BZ #32212]
- x86: Improve large memset perf with non-temporal stores [RHEL-29312]
- x86_64: Fix missing wcsncat function definition without multiarch (x86-64-v4)
- sysdeps/x86/Makefile: Split and sort tests
- x86: Only align destination to 1x VEC_SIZE in memset 4x loop
- elf: Fix slow tls access after dlopen [BZ #19924]
- x86: Check the lower byte of EAX of CPUID leaf 2 [BZ #30643]
- x86_64: Add log1p with FMA
- x86_64: Add expm1 with FMA
- x86_64: Add log2 with FMA
- x86_64: Sort fpu/multiarch/Makefile
2025-01-27 09:39:05 +08:00
May
6fe82537e2 x86: Set preferred CPU features and default NT threshold for Zhaoxin processors
Signed-off-by: May <mayshao-oc@zhaoxin.com>
(cherry picked from commit c4f135bfbc5d7fc8b2471ce71997067e4441662e)
2025-01-20 10:44:13 +08:00
Peng Fan
3b53810c70 LoongArch: Force SHMLBA the same as kernel
The shmlba.h file related to the LoongArch architecture was introduced
in commit 3eed5f3a1ee to address the mismatch in the SHMLBA definition
between glibc and the kernel.

Signed-off-by: Peng Fan <fanpeng@loongson.cn>
2025-01-07 17:22:57 +08:00
Qingqing Li
e27cfe6f8b x86: Avoid integer truncation with large cache sizes (bug 32470)
(cherry picked from commit 11e72654dce7417518ad20a0007bd7fd813c361a)
2025-01-06 16:11:46 +08:00
swcompiler
7c7ae25b26 Sw64: Add Sw64 ISA support 2024-12-16 14:56:51 +08:00
nicholastao
7fed10e6c3 Change Inner-Net to Inner-Net-2.0
(cherry picked from commit 64c7e1cd0109adba6d0a995b4a2ce28fb4fce1b6)
2024-12-10 14:51:17 +08:00
沈仲伟
b901ecb1f9 delete useless patches in the source package.
(cherry picked from commit 9fde2c0b4b8b134c4027b107df4c661909aad0ed)
2024-12-10 14:10:20 +08:00
Qingqing Li
08ee326157 nptl: initialize cpu_id_start and rseq area prio to registration
- nptl: initialize cpu_id_start prior to rseq registration
    - nptl: initialize rseq area prior to registration

(cherry picked from commit cdd894e5de2917216ccd5335fd998209b7e37c23)
2024-12-10 09:08:07 +08:00
shixuantong
11aef4d999 sync some patch 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 d5144c30f4202cb51dd5b71db984b595cbae5ca3)
2024-12-09 14:39:47 +08:00
shixuantong
530bebd83f 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 9c2adabe09ddb9b1f3e41a9bccffb045a12c3716)
2024-11-29 14:13:43 +08:00
Xing Li
6d40214065 LoongArch: Simplify static PIE configure and and nptl support
(cherry picked from commit b2edb2abb4c138916140c84b9a65dc296dd5e8d7)
2024-11-28 14:23:36 +08:00
Xing Li
714006ccd6 LoongArch: Add tlsdesc and tunable support
(cherry picked from commit 09da963a2510672ba92a60667ac840badffceaf2)
2024-11-06 14:32:48 +08:00
Qingqing Li
599fa26768 sync from glibc upstream 2.38 branch
here is the three patches:
fa4ad10406 (HEAD -> 238, origin/release/2.38/master) elf: Change ldconfig auxcache ma
gic number (bug 32231)
4dd8641461 Add crt1-2.0.o for glibc 2.0 compatibility tests
370be85892 libio: Attempt wide backup free only for non-legacy code

(cherry picked from commit 3770ccfa345bceb7ebdaafbc48177f1e615d1546)
2024-11-05 16:42:57 +08:00
liqingqing_1229
027bd761fb cleancode, remove some oe patches which already fixed in upstream
(cherry picked from commit 6404e8904b645dca6cd75aa799e714b6874c4818)
2024-11-05 15:22:24 +08:00
liqingqing_1229
db6935cb78 sync from glibc upstream branch 2.38
-nptl: Use <support/check.h> facilities in tst-setuid3
- posix: Use <support/check.h> facilities in tst-truncate and tst-truncate64
- ungetc: Fix backup buffer leak on program exit [BZ #27821]
- ungetc: Fix uninitialized read when putting into unused streams [BZ #27821]
- Make tst-ungetc use libsupport
- stdio-common: Add test for vfscanf with matches longer than INT_MAX [BZ #27650]
- support: Add FAIL test failure helper

(cherry picked from commit 7b1f3d1a6f77908bbb340b0657f1a6fd37288d44)
2024-11-05 15:21:00 +08:00
kkz
6bab4d6455 Fix issue that loading a missing locale twice [BZ #832516]
backport from glibc upstream master branch

(cherry picked from commit 8314af7c49a915a4e189d9a8cf08bb0ac7d5f1f0)
2024-09-09 19:25:19 +08:00
YunQiang Su
3e8985e324 Fix libnsl.so and libnss_.so filelist process
In current code, we use `/libnss_`, which is OK for now, while
if we build multiple times, such as for glibc-hwcaps, `grep` will
find multiple ones.

Let's use %{_lib}/libnss_ for them.

And libns.so.1 is listed twice:
  1st in libnsl.filelist
  2nd in %files -f libnsl.filelist -n libnsl
Let's remove the second one.

add changelog entry

fix changelog format

Revert "fix changelog format"

This reverts commit 4a31913d6701c97cb780e82e0b5ff2f7b58c7876.

Fix Release value

(cherry picked from commit dd00306ebd049be4345176bdebba4117795a4ee0)
2024-08-29 10:57:47 +08:00
liqingqing_1229
6e8d1584b8 x86: Fix bug in strchrnul-evex512 [BZ #32078]
(cherry picked from commit b3df4ce3b9d85aa30006b64edcc3c2979ee5e143)
2024-08-22 14:32:34 +08:00
nicholastao
47df179273 Specify the GFDL version to GFDL-1.3-ONLY in spec
(cherry picked from commit 0a8127fa7bf40255583bd1ee5b70fa718bdb9e21)
2024-08-09 17:14:22 +08:00
liqingqing_1229
93eb97acdb Fix name space violation in fortify wrappers (bug 32052)
(cherry picked from commit eed1d6e58125ee5776eba788f1e2d41470bbf657)
2024-08-08 20:08:07 +08:00
liqingqing_1229
202db910a0 sync from glibc upstream 2.38 branch.
here are the patches:
9184c13681 resolv: Fix tst-resolv-short-response for older GCC (bug 32042)
3ac7ba61d2 Update syscall lists for Linux 6.5
6bb75212e6 Add mremap tests
f0e2114535 mremap: Update manual entry
0301637b99 linux: Update the mremap C implementation [BZ #31968]
1bed6acf50 resolv: Track single-request fallback via _res._flags (bug 31476)
6cad0f543c resolv: Do not wait for non-existing second DNS response after error (bug 30081)
dc512364e8 resolv: Allow short error responses to match any query (bug 31890)
bb30bd2162 Linux: Make __rseq_size useful for feature detection (bug 31965)
d9d019d674 elf: Make dl-rseq-symbols Linux only
7bfc35959d nptl: fix potential merge of __rseq_* relro symbols
712453634c s390x: Fix segfault in wcsncmp [BZ #31934]

(cherry picked from commit bfffcbf6ae59fd90403d1a40103b2a61ba4aaf6b)
2024-08-06 19:37:42 +08:00
lipengyu
bb5f245d80 Fix bug "info command is unable to index the doc info"
(cherry picked from commit 7501d16918c1b5fc9f786d71383a11073930f7e4)
2024-08-02 14:33:40 +08:00
liqingqing_1229
841329852f sync from glibc upstream 2.38 branch
- misc: Add support for Linux uio.h RWF_NOAPPEND flag
- Disable Intel Xeon Phi tests for GCC 15 and above (BZ 31782)

(cherry picked from commit 1108228f750d2bfa9e9b66888ef037f7a30cfd1a)
2024-06-07 09:15:57 +08:00
liqingqing_1229
8aef51fdb3 Force DT_RPATH for --enable-hardcoded-path-in-tests
(cherry picked from commit 24f047da6b0f1bfad09ee1171472fca38011a48d)
2024-05-13 10:54:15 +08:00
liqingqing_1229
195ddaf436 sync from glibc 2.38 upstream
(cherry picked from commit 8edff846dce230900fb3c22e90566985af7766b3)
2024-05-10 20:13:49 +08:00
chengyechun
1570c6f9b7 fix CVE-2024-33599 CVE-2024-33600 CVE-2024-33601 CVE-2024-33602
(cherry picked from commit 3a486a11383bc4db36e65ee3aa217494acc2355a)
2024-04-30 10:10:55 +08:00
Yang Yanchao
045bc68287 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 0ba67e91b7e1de3ec99393d5c0960a3e7abf15f3)
2024-04-23 16:12:26 +08:00
zhangnaichuan
cc81ce90ac add Wl,-z,noseparate-code for so
(cherry picked from commit f25c289ee2d163f0dbca8ed7ea712127476680e9)
2024-04-18 20:46:09 +08:00
yangpan
bcdf32e7bc disable sysboost
(cherry picked from commit be8d066e3f190789d7ea165b3bd3e4dd1141a69f)
2024-04-10 15:59:58 +08:00
ticat_fp
4e4762c373 LoongArch: update from glibc upstream and reduce kernel version requirements
Signed-off-by: ticat_fp <fanpeng@loongson.cn>
(cherry picked from commit fd8447e5f44da8f89a1f9e7440fb0f4d2e43e77f)
2024-04-10 15:58:33 +08:00
Lu Jingxiao
7596e6256b malloc: Use __get_nprocs on arena_get2 (BZ 30945)
backport from upstream 506e47da1d

Signed-off-by: Lu Jingxiao <lujingxiao@huawei.com>
2024-02-26 18:24:51 +08:00
liqingqing_1229
5590df9b26 arm: Remove wrong ldr from _dl_start_user (BZ 31339) 2024-02-06 19:16:15 +08:00
liqingqing_1229
ddb1b4b4a4 backport patch from glibc upstream 2.38 branch.
here is the bugfix:
- x86_64: Optimize ffsll function code size
- S390: Fix building with disable mutli arch (BZ 31196)
- sparc: Fix broken memset for sparc32 (BZ 31068)
- sparc: Remove unwind information from signal return
- sparc: Fix sparc64 memmove length comparison (BZ 31266)
- sparc: Remove unwind information from signal return stubs (BZ 31244)
2024-02-05 14:46:39 +08:00
EulerOSWander
d29d31689b [Backport]Fix CVE-2023-6779 CVE-2023-6780
Fix Heap buffer overflow and integer overflow issue.

Signed-off-by: EulerOSWander <314264452@qq.com>
2024-02-01 19:38:38 +08:00
EulerOSWander
2e599fc62b syslog:Fix heap buffer overflow in _vsyslog_internal
Fix CVE-2023-6246

Signed-off-by: EulerOSWander <314264452@qq.com>
2024-01-31 17:48:11 +08:00
liqingqing_1229
714494800c malloc: Improve MAPE_HUGETLB with glibc.malloc.hugetlb=2 2024-01-13 11:27:43 +08:00
liqingqing_1229
bfe4572075 backport patches from glibc upstream 2.38 branch 2024-01-08 14:47:57 +08:00
shixuantong
22385bcead elf: Handle non-directory name in search path (BZ 31035) 2023-12-14 15:15:18 +08:00
liqingqing_1229
b8b0a6475a elf: Fix wrong break removal from 8ee878592c 2023-12-08 15:13:29 +08:00
liqingqing_1229
baf2015a65 sysdeps: sem_open: Clear O_CREAT when semaphore file is expected to exist [BZ #30789] 2023-12-07 14:47:03 +08:00
liqingqing_1229
1290119159 weekly backport patches from upstream 2023-10-24 17:01:10 +08:00
liqingqing_1229
2c5a06e909 backport patches from glibc upstream 2.38 branch 2023-10-07 11:28:41 +08:00
liqingqing_1229
f541c23d45 backport patches from glibc upstream 2.38 branch and revert some customization modification 2023-09-16 16:08:15 +08:00
liqingqing_1229
34bca268b0 fix CVE-2023-4527 2023-09-16 10:26:57 +08:00
liqingqing_1229
7c4167892e backport patches from glibc upstream 2.38 branch 2023-09-15 15:35:03 +08:00
liqingqing_1229
969c290221 backport patches from glibc upstream 2.38 branch 2023-09-11 11:16:07 +08:00