aboutsummaryrefslogtreecommitdiffstats
path: root/toolchain/glibc
Commit message (Collapse)AuthorAgeFilesLines
* glibc: update to latest 2.27 commit (BZ #2503, BZ #2504)Hans Dedecker2019-12-141-2/+2
| | | | | | | | bef0b1cb31 libio: Disable vtable validation for pre-2.1 interposed handles [BZ #25203] 4d5cfeb510 rtld: Check __libc_enable_secure before honoring LD_PREFER_MAP_32BIT_EXEC (CVE-2019-19126) [BZ #25204] 92f04eedb5 mips: Force RWX stack for hard-float builds that can run on pre-4.8 kernels Signed-off-by: Hans Dedecker <dedeckeh@gmail.com>
* glibc: backport fix for regexec buffer read overrunAlin Nastac2019-12-141-0/+26
| | | | | | | | | | | | | | | | | | | Problem found by AddressSanitizer[1]: Latest `grep` (git commit 1019e6e) compiled with asan may cause a heap-buffer-overflow when `-i` is specified. ./grep -i '\(\(\)*.\)*\(\)\(\)\1' /bin/chvt ================================================================= ==16206==ERROR: AddressSanitizer: heap-buffer-overflow on address 1. https://debbugs.gnu.org/34140 Ref: https://sourceware.org/bugzilla/show_bug.cgi?id=24114 Signed-off-by: Alin Nastac <alin.nastac@gmail.com> [commit title and description facelift] Signed-off-by: Petr Štetiar <ynezz@true.cz>
* glibc: update to latest 2.27 commit (BZ#23637)Hans Dedecker2019-12-141-2/+2
| | | | | | | | | | | | 5b4f7382af Add undef to fix test failure. 9456483fb2 Improve performance of memmem 373f8b06a3 Improve performance of strstr 4ec1b9e913 Fix strstr bug with huge needles (bug 23637) ecd6271ed8 Speedup first memmem match bba6b9288f Simplify and speedup strstr/strcasestr first match 7a4da6ef7a Improve strstr performance Signed-off-by: Hans Dedecker <dedeckeh@gmail.com>
* glibc: update to latest 2.27 commit (BZ #24228, BZ #24744, BZ #24699)Hans Dedecker2019-12-141-2/+2
| | | | | | | | | | | | | | | | | | | | | | 5f0d2e0491 [AArch64] Add ifunc support for Ares e6b7252040 aarch64,falkor: Use vector registers for memcpy c74b884f70 aarch64,falkor: Ignore prefetcher tagging for smaller copies 0fc5934ebd aarch64/strncmp: Use lsr instead of mov+lsr e0a0bd3acc aarch64/strncmp: Unbreak builds with old binutils 638caf3000 aarch64: Improve strncmp for mutually misaligned inputs d5f45a29ff aarch64/strcmp: fix misaligned loop jump target 7f690fafad aarch64: Improve strcmp unaligned performance 40df047b3b aarch64: Fix branch target to loop16 062139f233 aarch64: Optimized memcmp for medium to large sizes f3e2add213 aarch64: Use the L() macro for labels in memcmp 22bd3ab40e posix: Fix large mmap64 offset for mips64n32 (BZ#24699) bdd16894aa aarch64: handle STO_AARCH64_VARIANT_PCS 0b48caab9a aarch64: add STO_AARCH64_VARIANT_PCS and DT_AARCH64_VARIANT_PCS 949da7f2fd io: Remove copy_file_range emulation [BZ #24744] f056ac8363 libio: do not attempt to free wide buffers of legacy streams [BZ #24228] 5f90e009b1 NEWS: add entries for bugs 22964, 24180, and 24531 Signed-off-by: Hans Dedecker <dedeckeh@gmail.com>
* glibc: update to latest 2.27 commit (BZ #24531)Hans Dedecker2019-05-231-2/+2
| | | | | | 54ba8bcd423 Fix tcache count maximum (BZ #24531) Signed-off-by: Hans Dedecker <dedeckeh@gmail.com>
* glibc: update to latest 2.27 commitHans Dedecker2019-05-161-2/+2
| | | | | | f9c3c12f336 Fix crash in _IO_wfile_sync (bug 20568) Signed-off-by: Hans Dedecker <dedeckeh@gmail.com>
* glibc: update to latest 2.27 commit (BZ #18035)Hans Dedecker2019-04-291-2/+2
| | | | | | 1961e5c7296 elf: Fix pldd (BZ#18035) Signed-off-by: Hans Dedecker <dedeckeh@gmail.com>
* glibc: update to latest 2.27 commit [BZ #22964]Hans Dedecker2019-04-081-2/+2
| | | | | | de9d4aa353 ja_JP locale: Add entry for the new Japanese era [BZ #22964] Signed-off-by: Hans Dedecker <dedeckeh@gmail.com>
* glibc: update to latest 2.27 commitHans Dedecker2019-03-221-2/+2
| | | | | | 1ab314d8d3 S390: Mark vx and vxe as important hwcap. Signed-off-by: Hans Dedecker <dedeckeh@gmail.com>
* glibc: update to latest 2.27 commit [BZ #24180]Hans Dedecker2019-02-091-2/+2
| | | | | | 9f44fa22cb Add compiler barriers around modifications of the robust mutex list for pthread_mutex_trylock. [BZ #24180] Signed-off-by: Hans Dedecker <dedeckeh@gmail.com>
* glibc: update to latest 2.27 commit (BZ #24155,BZ #24097)Hans Dedecker2019-02-041-2/+2
| | | | | | | | | | | | | | 2ebadb6451 x86-64 memcmp: Use unsigned Jcc instructions on size [BZ #24155] 3a5ae8db68 x86-64 strnlen/wcsnlen: Properly handle the length parameter [BZ #24097] 2c016ffa24 x86-64 strncpy: Properly handle the length parameter [BZ #24097] d8457edece x86-64 strncmp family: Properly handle the length parameter [BZ #24097] 55f8812858 x86-64 memset/wmemset: Properly handle the length parameter [BZ #24097] efc3714845 x86-64 memrchr: Properly handle the length parameter [BZ #24097] a4690969ed x86-64 memcpy: Properly handle the length parameter [BZ #24097] 6465327195 x86-64 memcmp/wmemcmp: Properly handle the length parameter [BZ #24097] 50117e00a1 x86-64 memchr/wmemchr: Properly handle the length parameter [BZ #24097] Signed-off-by: Hans Dedecker <dedeckeh@gmail.com>
* glibc: update to latest 2.27 commit (BZ #24018)Hans Dedecker2019-01-071-2/+2
| | | | | | | 68c2930a56 NEWS: add entries for bugs 23275, 23861, and 23907 766e8fb932 intl: Do not return NULL on asprintf failure in gettext [BZ #24018] Signed-off-by: Hans Dedecker <dedeckeh@gmail.com>
* glibc: update to latest 2.27 commit (BZ #24027, BZ #23927)Hans Dedecker2019-01-011-2/+2
| | | | | | | | | | | | | | | | 3981fc3453 malloc: Always call memcpy in _int_realloc [BZ #24027] f6d0e8c36f Fix rwlock stall with PREFER_WRITER_NONRECURSIVE_NP (bug 23861) 2794474c65 powerpc: Add missing CFI register information (bug #23614) d8ca7a0c71 Fix _dl_profile_fixup data-dependency issue (Bug 23690) f1e211096b inet/tst-if_index-long: New test case for CVE-2018-19591 [BZ #23927] 4e9f34e54f support: Implement <support/descriptors.h> to track file descriptors e75481a7a7 support: Close original descriptors in support_capture_subprocess 0f79dc0be3 support_quote_string: Do not use str parameter name 6b2dd53aa0 support: Implement support_quote_string 50477165b9 malloc: Add another test for tcache double free check. 4b246928bd malloc: tcache double free check Signed-off-by: Hans Dedecker <dedeckeh@gmail.com>
* glibc: update to latest 2.27 commit (BZ #23927)Hans Dedecker2018-12-141-2/+2
| | | | | | | | | | | | | | | f6d0e8c36f Fix rwlock stall with PREFER_WRITER_NONRECURSIVE_NP (bug 23861) 2794474c65 powerpc: Add missing CFI register information (bug #23614) d8ca7a0c71 Fix _dl_profile_fixup data-dependency issue (Bug 23690) f1e211096b inet/tst-if_index-long: New test case for CVE-2018-19591 [BZ #23927] 4e9f34e54f support: Implement <support/descriptors.h> to track file descriptors e75481a7a7 support: Close original descriptors in support_capture_subprocess 0f79dc0be3 support_quote_string: Do not use str parameter name 6b2dd53aa0 support: Implement support_quote_string 50477165b9 malloc: Add another test for tcache double free check. 4b246928bd malloc: tcache double free check Signed-off-by: Hans Dedecker <dedeckeh@gmail.com>
* glibc: update to latest 2.27 commit (BZ #23927)Hans Dedecker2018-12-061-2/+2
| | | | | | 9f433fc791 CVE-2018-19591: if_nametoindex: Fix descriptor for overlong name [BZ #23927] Signed-off-by: Hans Dedecker <dedeckeh@gmail.com>
* glibc: update to latest 2.27 commitHans Dedecker2018-11-221-2/+2
| | | | | | | 1517dfb8aa Add an additional test to resolv/tst-resolv-network.c 1050634904 libanl: properly cleanup if first helper thread creation failed (bug 22927) Signed-off-by: Hans Dedecker <dedeckeh@gmail.com>
* glibc: update to latest 2.27 commit (BZ#23709,BZ#23822)Hans Dedecker2018-11-051-2/+2
| | | | | | | | d8eee5ef55 x86: Fix Haswell CPU string flags (BZ#23709) 5cd5309d91 i64: fix missing exp2f, log2f and powf symbols in libm.a [BZ #23822] 1759ea197b conform: XFAIL siginfo_t si_band test on sparc64 Signed-off-by: Hans Dedecker <dedeckeh@gmail.com>
* glibc: update to latest 2.27 commit (BZ #23562, BZ #23275)Hans Dedecker2018-10-231-2/+2
| | | | | | | 77b4b8231e signal: Use correct type for si_band in siginfo_t [BZ #23562] 5bdb6897fc Fix race in pthread_mutex_lock while promoting to PTHREAD_MUTEX_ELISION_NP [BZ #23275] Signed-off-by: Hans Dedecker <dedeckeh@gmail.com>
* toolchain/glibc: update to 2.27+Hans Dedecker2018-10-162-4/+4
| | | | Signed-off-by: Hans Dedecker <dedeckeh@gmail.com>
* toolchain/glibc: update to latest 2.26 commitHans Dedecker2018-09-131-2/+2
| | | | | | | c5c90b480e Fix segfault in maybe_script_execute. 174709d879 pthread_cond_broadcast: Fix waiters-after-spinning case [BZ #23538] Signed-off-by: Hans Dedecker <dedeckeh@gmail.com>
* toolchain/glibc: update to latest 2.26 commitHans Dedecker2018-08-071-2/+2
| | | | | | | | | | | | | c9570bd2f5 x86: Populate COMMON_CPUID_INDEX_80000001 for Intel CPUs [BZ #23459] 86e0996b1a x86: Correct index_cpu_LZCNT [BZ #23456] cf6deb084b conform/conformtest.pl: Escape literal braces in regular expressions b12bed3e06 stdio-common/tst-printf.c: Remove part under a non-free license [BZ #23363] 20dc7a909a libio: Add tst-vtables, tst-vtables-interposed 4b10e69b1f Synchronize support/ infrastructure with master 762e9d63d5 NEWS: Reorder out-of-order bugs 2781bd5a86 libio: Disable vtable validation in case of interposition [BZ #23313] Signed-off-by: Hans Dedecker <dedeckeh@gmail.com>
* toolchain/glibc: update to latest 2.26 commitHans Dedecker2018-07-021-2/+2
| | | | | | | | | 74d16a57a3 Check length of ifname before copying it into to ifreq structure. 3aaf8bda00 getifaddrs: Don't return ifa entries with NULL names [BZ #21812] f958b45d52 Use _STRUCT_TIMESPEC as guard in <bits/types/struct_timespec.h> [BZ #23349] 81b994bd83 Fix parameter type in C++ version of iseqsig (bug 23171) Signed-off-by: Hans Dedecker <dedeckeh@gmail.com>
* toolchain/glibc: update to latest 2.26 commitHans Dedecker2018-06-113-4/+4
| | | | | | | | 7b52c8ae05 libio: Avoid _allocate_buffer, _free_buffer function pointers [BZ #23236] Refresh patches Signed-off-by: Hans Dedecker <dedeckeh@gmail.com>
* toolchain/glibc: update to latest 2.26 commitHans Dedecker2018-05-301-2/+2
| | | | | | | | | 4df8479e6b Add NEWS entry for CVE-2018-11236 a5bc5ec967 Add references to CVE-2018-11236, CVE-2017-18269 58ad5f8a64 Add a test case for [BZ #23196] 6b4362f2cb Don't write beyond destination in __mempcpy_avx512_no_vzeroupper (bug 23196) Signed-off-by: Hans Dedecker <dedeckeh@gmail.com>
* toolchain/glibc: update to latest 2.26 commitHans Dedecker2018-05-231-2/+2
| | | | | | | | | | | | | | | af7519f7b3 Fix path length overflow in realpath [BZ #22786] 365722ace6 Fix stack overflow with huge PT_NOTE segment [BZ #20419] be056fae3b Fix blocking pthread_join. [BZ #23137] 02f0dd83a4 Fix signed integer overflow in random_r (bug 17343). 3241353ab2 i386: Fix i386 sigaction sa_restorer initialization (BZ#21269) 677e6d13e0 [BZ #22342] Fix netgroup cache keys. 71d339cb86 Fix i386 memmove issue (bug 22644). 31e2d15b80 Fix crash in resolver on memory allocation failure (bug 23005) 1f7c4748d6 getlogin_r: return early when linux sentinel value is set 7e7a5f0bcd resolv: Fully initialize struct mmsghdr in send_dg [BZ #23037] Signed-off-by: Hans Dedecker <dedeckeh@gmail.com>
* glibc: switch from git to httpsJohann Neuhauser2018-04-291-1/+1
| | | | | | This is needed for working behind a http proxy. Signed-off-by: Johann Neuhauser <jneuhauser@dh-electronics.de>
* toolchain/glibc: unset LD_LIBRARY_PATHHyeonsik Song2018-04-191-0/+1
| | | | | | Fix build error when use glibc Signed-off-by: Hyeonsik Song <blogcin@naver.com>
* glibc: update glibc to 2.26+ and switch to download from gitHans Dedecker2018-03-131-4/+6
| | | | | | | | | | | | | | Switch glibc to 2.26+ [0] and download the sources from git which will it make easier to update glibc in the future. For an overview of the fixed bugs and CVE related fixes in 2.26+ see the NEWS file [1] [0] https://sourceware.org/git/?p=glibc.git;a=commit;h=d300041c533a3d837c9f37a099bcc95466860e98 [1] https://sourceware.org/git/?p=glibc.git;a=blob;f=NEWS;h=410f0d163145c1549fb73fdd96568f585b5bf62f;hb=refs/heads/release/2.26/master Signed-off-by: Xinxing Hu <xinxing.huchn@gmail.com> Signed-off-by: Hans Dedecker <dedeckeh@gmail.com>
* glibc: fix applying of patchesHans Dedecker2018-03-131-0/+1
| | | | | | | | | | Commit f4d9d7a removed support for version specific patches; but it also broke applying of patches in the patches glibc dir. Fix the issue by setting PATCH_DIR to $(PATH_PREFIX)/patches similar as musl/common.mk. Signed-off-by: Xinxing Hu <xinxing.huchn@gmail.com> Signed-off-by: Hans Dedecker <dedeckeh@gmail.com>
* toolchain/glibc: Update to 2.26Daniel Engberg2017-10-151-2/+2
| | | | | | Update glibc to 2.26 Signed-off-by: Daniel Engberg <daniel.engberg.lists@pyret.net>
* glibc: update to version 2.25Felix Fietkau2017-02-112-12/+7
| | | | Signed-off-by: Felix Fietkau <nbd@nbd.name>
* glibc: override default rpath to /lib:/usr/libFelix Fietkau2017-02-111-0/+1
| | | | Signed-off-by: Felix Fietkau <nbd@nbd.name>
* glibc: use default PATCH_DIRFelix Fietkau2017-02-113-2/+0
| | | | | | | Version configuration is gone, so version specific patch directories are not necessary either. Signed-off-by: Felix Fietkau <nbd@nbd.name>
* build: remove libc version config codeFelix Fietkau2017-02-113-32/+3
| | | | | | We only support one version per libc type Signed-off-by: Felix Fietkau <nbd@nbd.name>
* treewide: clean up download hashesFelix Fietkau2016-12-161-2/+2
| | | | | | Replace *MD5SUM with *HASH, replace MD5 hashes with SHA256 Signed-off-by: Felix Fietkau <nbd@nbd.name>
* toolchain: Rework external toolchain libc selectionFlorian Fainelli2016-09-281-1/+1
| | | | | | | | | | | | | | | | Make it a choice menu which offers the 3 C libraries we know about: glibc, uClibc and musl. While at it, make it possible for the external toolchain libc to select USE_GLIBC, USE_UCLIBC or USE_MUSL which is used by several packages to conditionally include specific CFLAGS (e.g: iproute2). Because USE_GLIBC et al. can now be selected by external toolchains, we need to restrict the per-libc menus to check on !EXTERNAL_TOOLCHAIN. While at it, make musl the default C library for external toolchain to match the internal toolchain. Signed-off-by: Florian Fainelli <f.fainelli@gmail.com> Signed-off-by: Felix Fietkau <nbd@nbd.name>
* glibc: re-enable parallel buildsFelix Fietkau2016-08-301-2/+2
| | | | Signed-off-by: Felix Fietkau <nbd@nbd.name>
* glibc: switch to 2.24 by default and remove old versions, fixes security issuesFelix Fietkau2016-08-305-85/+2
| | | | | | | | | | | | | | | | | | | 2.24 fixes the following CVEs compared to 2.23: - CVE-2016-3075 - CVE-2016-3706 - CVE-2016-1234 - CVE-2016-4429 - CVE-2016-5417 CVEs fixed in 2.23: - CVE-2015-8776 - CVE-2015-8777 - CVE-2015-8778 - CVE-2015-8779 - CVE-2014-9761 - CVE-2015-7547 Signed-off-by: Felix Fietkau <nbd@nbd.name>
* glibc: add 2.24Dirk Neukirchen2016-08-305-2/+84
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | since eglibc is deprecated just use glibc as name - fix build errors w. stack-protector (observed for x86_64): libresolv_pic.a(gethnamaddr.os): In function `addrsort': gethnamaddr.c:(.text+0x425): undefined reference to `__stack_chk_guard' by additionally setting libc_cv_ssp_strong=no like previously libc_cv_ssp=no was set - fix compile errors on 2.24 x86 introduced by upstream changesets "Optimize i386 syscall inlining" errors are like: - https://sourceware.org/ml/libc-alpha/2015-10/msg00745.html and trying to fix with the whats suggested at: https://patchwork.openembedded.org/patch/118909/ leads to other error: gcc6: elf/librtld.os: In function `__mmap': (.text+0x131a9): undefined reference to `__libc_do_syscall' or: gcc5: elf/dl-load.os {standard input}: Assembler messages: {standard input}:5129: Error: symbol `__x86.get_pc_thunk.cx' is already defined instead of testing other flags/effects (-fno-omit-frame-pointer) just use -O2 (like buildroot does) instead of -Os boot+pings tested on: qemu malta (le+be) (gcc5+bin2.25.1) qemu aarch64 (gcc5+bin2.25.1) qemu x86_64 (gcc6+bin2.26) qemu x86 generic (gcc6+bin2.26) Signed-off-by: Dirk Neukirchen <dirkneukirchen@web.de>
* toolchain: skip gcc/minimal for muslFelix Fietkau2016-07-071-0/+1
| | | | | | | | No extra libc header build step is done, so no extra toolchain is needed for preparing it. This saves a significant amount of build time and disk space Signed-off-by: Felix Fietkau <nbd@nbd.name>
* toolchain/glibc: remove obsolete versionsFelix Fietkau2016-02-2516-1393/+1
| | | | | | Signed-off-by: Felix Fietkau <nbd@openwrt.org> SVN-Revision: 48780
* toolchain: use latest glibc 2.21 and 2.22 revisionsJo-Philipp Wich2016-02-174-22/+22
| | | | | | | | | Refresh patches and rework Makefile to fetch glibc from release branches instead of relying on tarballs. Signed-off-by: Jo-Philipp Wich <jow@openwrt.org> SVN-Revision: 48735
* toolchain: mark eglibc 2.19 brokenJo-Philipp Wich2016-02-171-0/+1
| | | | | | | | Upstream is dead and the last available version has multiple open CVEs. Signed-off-by: Jo-Philipp Wich <jow@openwrt.org> SVN-Revision: 48734
* glibc: switch to downloading version 2.22 via tarball instead of git to ↵Felix Fietkau2016-01-292-7/+13
| | | | | | | | improve mirror support Signed-off-by: Felix Fietkau <nbd@openwrt.org> SVN-Revision: 48556
* glibc: switch to version 2.22 by defaultFelix Fietkau2016-01-292-2/+2
| | | | | | Signed-off-by: Felix Fietkau <nbd@openwrt.org> SVN-Revision: 48555
* toolchain: Reverse glibc/eglibc conditionals to check for eglibcFelix Fietkau2016-01-201-4/+4
| | | | | | | | | This will make adding future glibc versions easier because the conditionals won't have to be modified again. Signed-off-by: Michael Marley <michael@michaelmarley.com> SVN-Revision: 48399
* toolchain: Add glibc 2.22Felix Fietkau2016-01-195-1/+76
| | | | | | Signed-off-by: Michael Marley <michael@michaelmarley.com> SVN-Revision: 48383
* toolchain: fix eglibc build when TOOLCHAINOPTS is not setJohn Crispin2015-03-261-1/+5
| | | | | | Signed-off-by: John Crispin <blogic@openwrt.org> SVN-Revision: 45015
* toolchain/glibc: remove broken eglibc 2.15 supportFelix Fietkau2015-03-253-20/+1
| | | | | | Signed-off-by: Felix Fietkau <nbd@openwrt.org> SVN-Revision: 44976
* toolchain: The glorious return of glibc, ver 2.21John Crispin2015-03-1219-0/+1586
| | | | | | | | | | | It's the eglibc packaging with a bit of spit-polishing. And testing. :-) [blogic: merged glibc and eglibc into 1 and made eglibc a glibc variant] Signed-off-by: Jeff Waugh <jdub@bethesignal.org> Signed-off-by: John Crispin <blogic@openwrt.org> SVN-Revision: 44701