162 Commits

Author SHA1 Message Date
Peng Fan
aaa20272be 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>
(cherry picked from commit 3b53810c70dfea943576a3f2774d62275bb2a851)
2025-01-07 18:46:04 +08:00
Qingqing Li
11e72654dc x86: Avoid integer truncation with large cache sizes (bug 32470) 2025-01-04 15:19:12 +08:00
swcompiler
55189b18b5 Sw64: Add Sw64 ISA support
(cherry picked from commit 7c7ae25b26c3c937686ae3f686a768532b14ec36)
2025-01-04 15:06:39 +08:00
nicholastao
64c7e1cd01 Change Inner-Net to Inner-Net-2.0 2024-12-10 14:48:23 +08:00
沈仲伟
cab7417374 delete useless patches in the source package.
(cherry picked from commit 9fde2c0b4b8b134c4027b107df4c661909aad0ed)
2024-12-10 14:10:17 +08:00
Qingqing Li
cdd894e5de 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
2024-12-09 20:03:04 +08:00
shixuantong
d5144c30f4 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
2024-12-09 09:10:23 +08:00
shixuantong
9c2adabe09 sync some patches
- elf: avoid jumping over a needed declaration
- elf: Move __rtld_malloc_init_stubs call into _dl_start_final
2024-11-29 11:17:13 +08:00
Xing Li
97a285c161 LoongArch: Simplify static PIE configure and and nptl support
(cherry picked from commit b2edb2abb4c138916140c84b9a65dc296dd5e8d7)
2024-11-28 14:25:15 +08:00
Xing Li
501a0422cf LoongArch: Add tlsdesc and tunable support
(cherry picked from commit 09da963a2510672ba92a60667ac840badffceaf2)
2024-11-06 14:32:51 +08:00
Qingqing Li
14e056a722 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:54 +08:00
liqingqing_1229
0a760d3913 cleancode, remove some oe patches which already fixed in upstream
(cherry picked from commit 6404e8904b645dca6cd75aa799e714b6874c4818)
2024-11-05 15:22:19 +08:00
liqingqing_1229
d925c00e19 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:20:53 +08:00
kkz
80430ac0e5 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:16 +08:00
YunQiang Su
b54a5f2790 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:45 +08:00
liqingqing_1229
4089d6917a x86: Fix bug in strchrnul-evex512 [BZ #32078]
(cherry picked from commit b3df4ce3b9d85aa30006b64edcc3c2979ee5e143)
2024-08-22 14:32:30 +08:00
nicholastao
1b20a7d7c0 Specify the GFDL version to GFDL-1.3-ONLY in spec
(cherry picked from commit 0a8127fa7bf40255583bd1ee5b70fa718bdb9e21)
2024-08-09 17:14:19 +08:00
liqingqing_1229
c96875551b Fix name space violation in fortify wrappers (bug 32052)
(cherry picked from commit eed1d6e58125ee5776eba788f1e2d41470bbf657)
2024-08-08 20:08:04 +08:00
liqingqing_1229
8ead2a5406 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:39 +08:00
lipengyu
594c82bf24 Fix bug "info command is unable to index the doc info"
(cherry picked from commit 7501d16918c1b5fc9f786d71383a11073930f7e4)
2024-08-02 14:33:37 +08:00
liqingqing_1229
9163cd6ddb 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:54 +08:00
liqingqing_1229
0d03b0da4a Force DT_RPATH for --enable-hardcoded-path-in-tests
(cherry picked from commit 24f047da6b0f1bfad09ee1171472fca38011a48d)
2024-05-13 10:54:12 +08:00
liqingqing_1229
1015b7d4cd sync from glibc 2.38 upstream
(cherry picked from commit 8edff846dce230900fb3c22e90566985af7766b3)
2024-05-10 20:13:45 +08:00
chengyechun
34111b90f8 fix CVE-2024-33599 CVE-2024-33600 CVE-2024-33601 CVE-2024-33602
(cherry picked from commit 3a486a11383bc4db36e65ee3aa217494acc2355a)
2024-04-30 10:10:51 +08:00
Yang Yanchao
0ba67e91b7 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>
2024-04-23 11:33:50 +08:00
zhangnaichuan
f25c289ee2 add Wl,-z,noseparate-code for so 2024-04-18 19:36:24 +08:00
yangpan
be8d066e3f disable sysboost 2024-04-09 20:59:01 +08:00
ticat_fp
fd8447e5f4 LoongArch: update from glibc upstream and reduce kernel version requirements
Signed-off-by: ticat_fp <fanpeng@loongson.cn>
2024-03-06 14:12:05 +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
liqingqing_1229
107ed1e8d8 stdlib: Improve tst-realpath compatibility with source fortification 2023-09-11 09:04:51 +08:00
lw
6ce9ce8271 add reloaction package 2023-08-22 10:38:50 +08:00
chenhaixiang
ce221e90ce skipping test case building to fix glibc build error on x86
Signed-off-by:chenhaixiang3@huawei.com
2023-08-16 21:42:45 -04:00
zhanghao
12e71eb1de nscd: sync some patches 2023-08-07 20:04:35 +08:00
chenhaixiang
f0fae38203 use the released glibc 2.38 version 2023-08-02 16:21:21 +08:00
chenhaixiang
09233ed4c7 Upgrade to glibc-2.38 2023-07-25 14:29:27 +08:00