about summary refs log tree commit diff
Commit message (Collapse)AuthorAgeFilesLines
* alpha: Fix tls-macros.h gentoo/2.18Richard Henderson2014-01-251-11/+11
| | | | | | | | Reported to the gcc bugzilla, there was a missing dependency on $gp that let the compiler generated $gp reload be scheduled across the macros here. (cherry picked from commit 4ab6acaebd0047dc37c6493946484be9f1b4920b)
* ARM: Fix clone build for ARMv4Will Newton2014-01-251-7/+1
| | | | | | | | | | | | | | | | | ARMv4 does not have the blx instruction, so use the BLX macro which handles abstracting this for us. Build tested for armv7, armv4t and armv4. ports/ChangeLog.arm: 2014-01-24 Will Newton <will.newton@linaro.org> [BZ #16499] * sysdeps/unix/sysv/linux/arm/clone.S: Use BLX macro instead of blx instruction directly. (cherry picked from commit 47590bce28616abbcee93457da91d65a7a07589b)
* Fix sparc 64-bit GMP ifunc resolution in static builds.David S. Miller2014-01-065-5/+5
| | | | | | | | | | | | [BZ #16150] * sysdeps/sparc/sparc64/multiarch/add_n.S: Resolve to the correct generic symbol in the non-vis3 case in static builds. * sysdeps/sparc/sparc64/multiarch/addmul_1.S: Likewise. * sysdeps/sparc/sparc64/multiarch/mul_1.S: Likewise. * sysdeps/sparc/sparc64/multiarch/sub_n.S: Likewise. * sysdeps/sparc/sparc64/multiarch/submul_1.S: Likewise. (cherry picked from commit 2293d2b10a583486cd22ce578796848f4c3a8b6d)
* Fix build on pre-v9 32-bit Sparc.David S. Miller2014-01-061-1/+2
| | | | | | | | | | | We cannot use fnegd in this code, as fnegd was added in v9. Only fnegs exists in v8 and earlier. [BZ #15985] * sysdeps/sparc/sparc32/fpu/s_fdim.S (__fdim): Do not use fnegd on pre-v9 cpus, use a fnegs+fmovs sequence instead. (cherry picked from commit 2216e48645dbd297cdc0f4050fdfc0b52e2a4ab8)
* PowerPC: Fix POINTER_CHK_GUARD thread register for PPC64Adhemerval Zanella2014-01-061-1/+1
| | | | (cherry picked from commit dc3a1f98dc4c86cb454474f4912ae325573655cb)
* malloc: Check for integer overflow in memalign.Will Newton2014-01-061-0/+7
| | | | | | | | | | | | | | | | A large bytes parameter to memalign could cause an integer overflow and corrupt allocator internals. Check the overflow does not occur before continuing with the allocation. ChangeLog: 2013-09-11 Will Newton <will.newton@linaro.org> [BZ #15857] * malloc/malloc.c (__libc_memalign): Check the value of bytes does not overflow. (cherry picked from commit c51d675c459aefef8d84d5a0b114010f916ea278)
* malloc: Check for integer overflow in valloc.Will Newton2014-01-061-0/+7
| | | | | | | | | | | | | | | | A large bytes parameter to valloc could cause an integer overflow and corrupt allocator internals. Check the overflow does not occur before continuing with the allocation. ChangeLog: 2013-09-11 Will Newton <will.newton@linaro.org> [BZ #15856] * malloc/malloc.c (__libc_valloc): Check the value of bytes does not overflow. (cherry picked from commit 6a6a386a3040726053a5fb8582ff26dc85d84741)
* malloc: Check for integer overflow in pvalloc.Will Newton2014-01-061-0/+7
| | | | | | | | | | | | | | | | A large bytes parameter to pvalloc could cause an integer overflow and corrupt allocator internals. Check the overflow does not occur before continuing with the allocation. ChangeLog: 2013-09-11 Will Newton <will.newton@linaro.org> [BZ #15855] * malloc/malloc.c (__libc_pvalloc): Check the value of bytes does not overflow. (cherry picked from commit 7e0e64ead52591b968df582b0ddc247ba5c4eab4)
* BZ #15754: CVE-2013-4788Carlos O'Donell2014-01-0615-2/+302
| | | | | | | | | | | | | | The pointer guard used for pointer mangling was not initialized for static applications resulting in the security feature being disabled. The pointer guard is now correctly initialized to a random value for static applications. Existing static applications need to be recompiled to take advantage of the fix. The test tst-ptrguard1-static and tst-ptrguard1 add regression coverage to ensure the pointer guards are sufficiently random and initialized to a default value. (cherry picked from commit c779e9df75256f19c7be8d12b2d163e2016a63f4)
* Fix stack overflow due to large AF_INET6 requestsSiddhesh Poyarekar2014-01-061-2/+18
| | | | | | | | | | Resolves #16072 (CVE-2013-4458). This patch fixes another stack overflow in getaddrinfo when it is called with AF_INET6. The AF_UNSPEC case was fixed as CVE-2013-1914, but the AF_INET6 case went undetected back then. (cherry picked from commit 6f95434fd488e9b72117f9b93ec2e2dbf397a4d3)
* Fix memory leak in stdlib/isomac.cAllan McRae2014-01-061-0/+1
| | | | (cherry picked from commit 3f71830d35d7bf4ac11664f0c48c3c68d250618b)
* Fix memory leaks in libio on allocation failureAllan McRae2014-01-062-3/+8
| | | | (cherry picked from commit 8e395175c4786ad9679851e3ed3c0c54a6f4e1f0)
* PowerPC: fix POWER7 memrchr for some large inputsAdhemerval Zanella2014-01-062-4/+4
| | | | | | | (cherry picked from commit b51679672648410c6627a4bd169e076c5b36f47b) Conflicts: ChangeLog
* * elf/setup-vdso.h (setup_vdso): Fix missing string termination.Andreas Arnez2014-01-061-1/+1
| | | | | | backport of f315524e034cfc644157cb4af5ecc99f645dd067 (cherry picked from commit f8a004f1fa412e3aae77faa30b4dfb654d721510)
* CVE-2013-4237, BZ #14699: Buffer overflow in readdir_rFlorian Weimer2014-01-068-34/+96
| | | | | | | | | | | | | | | | | | | | | | | | * sysdeps/posix/dirstream.h (struct __dirstream): Add errcode member. * sysdeps/posix/opendir.c (__alloc_dir): Initialize errcode member. * sysdeps/posix/rewinddir.c (rewinddir): Reset errcode member. * sysdeps/posix/readdir_r.c (__READDIR_R): Enforce NAME_MAX limit. Return delayed error code. Remove GETDENTS_64BIT_ALIGNED conditional. * sysdeps/unix/sysv/linux/wordsize-64/readdir_r.c: Do not define GETDENTS_64BIT_ALIGNED. * sysdeps/unix/sysv/linux/i386/readdir64_r.c: Likewise. * manual/filesys.texi (Reading/Closing Directory): Document ENAMETOOLONG return value of readdir_r. Recommend readdir more strongly. * manual/conf.texi (Limits for Files): Add portability note to NAME_MAX, PATH_MAX. (Pathconf): Add portability note for _PC_NAME_MAX, _PC_PATH_MAX. backport of 91ce40854d0b7f865cf5024ef95a8026b76096f3 (cherry picked from commit f166b9c6e90d631115c59b4357357bc168d8e51a)
* Fix PI mutex check in pthread_cond_broadcast and pthread_cond_signalSiddhesh Poyarekar2014-01-064-11/+12
| | | | | | | | | | Fixes BZ #15996. The check had a typo - it checked for PTHREAD_MUTEX_ROBUST_NP instead of PTHREAD_MUTEX_ROBUST_NORMAL_NP. It has now been replaced by the already existing convenience macro USE_REQUEUE_PI. (cherry picked from commit 2770d15e7e880821fc586619c59eb45180628e16)
* ARM: Fix clone code when built for Thumb.Will Newton2014-01-063-2/+14
| | | | | | | | | | | | | | | | The mov lr, pc instruction will lose the Thumb bit from the return address so use blx lr instead. ports/ChangeLog.arm: 2013-08-30 Will Newton <will.newton@linaro.org> [BZ #15909] * sysdeps/unix/sysv/linux/arm/clone.S (__clone): Use blx instead of mov lr, pc. (cherry picked from commit 6b06ac56cdfc9293908724e51e827534e97819aa) (cherry picked from commit 4f2bcda964d4fff56855e0c66198c9bcb682ea1e)
* ia64: add __ prefix to pt_all_user_regs/ia64_fpreg [BZ #762]Mike Frysinger2014-01-063-5/+5
| | | | | | | | | | | | This addresses a long standing collision between userspace headers and kernel headers only on ia64 systems. All other types have a __ prefix in the ptrace headers except these two. Let's finally namespace these. Verified that at least strace still builds after this change, as well as after deleting all the struct hacks it has specifically for ia64. URL: https://sourceware.org/bugzilla/show_bug.cgi?id=762 Signed-off-by: Mike Frysinger <vapier@gentoo.org>
* ptrace.h: add __ prefix to ptrace_peeksiginfo_argsMike Frysinger2014-01-067-7/+7
| | | | | | | | | | | | | | | | | | | | | | | | All the other ptrace structures in this file have a __ prefix except this new one. This in turn causes build problems for most packages that try to use ptrace such as strace: gcc -DHAVE_CONFIG_H -I. -I../.. -I../../linux/x86_64 -I../../linux \ -I./linux -Wall -Wwrite-strings -g -O2 -MT process.o -MD -MP \ -MF .deps/process.Tpo -c -o process.o ../../process.c In file included from ../../process.c:63:0: /usr/include/linux/ptrace.h:58:8: error: redefinition of 'struct ptrace_peeksiginfo_args' struct ptrace_peeksiginfo_args { ^ In file included from ../../defs.h:159:0, from ../../process.c:37: /usr/include/sys/ptrace.h:191:8: note: originally defined here struct ptrace_peeksiginfo_args ^ Since this struct was introduced in glibc-2.18, there shouldn't be any real regressions with adding the __ prefix. Signed-off-by: Mike Frysinger <vapier@gentoo.org>
* Don't use broken DL_AUTO_FUNCTION_ADDRESS()Guy Martin2013-11-248-61/+71
| | | | | | | | | | | | | | | | | On hppa and ia64, the macro DL_AUTO_FUNCTION_ADDRESS() uses the variable fptr[2] in it's own scope. The content of fptr[] is thus undefined right after the macro exits. Newer gcc's (>= 4.7) reuse the stack space of this variable triggering a segmentation fault in dl-init.c:69. To fix this we rewrite the macros to make the call directly to init and fini without needing to pass back a constructed function pointer. URL: https://bugs.gentoo.org/486618 URL: https://bugs.gentoo.org/486974 (cherry picked from commit daf75146de07303ea0c5ad700ec5ef703ec114a1)
* Accept make versions 4.0 and greaterMarc-Antoine Perennou2013-11-242-2/+2
| | | | | | URL: https://bugs.gentoo.org/487906 (cherry picked from commit 28d708c44bc47b56f6551ff285f78edcf61c208a)
* hppa: add fanotify_markMike Frysinger2013-11-241-0/+1
| | | | | | | | | | | | | | | | | | | | | | Another example of all the 64bit arches getting the definition via a common file, but the 32bit ones all adding it by themselves and hppa was missed. I'm not entirely sure about the usage of GLIBC_2.19 symbols here. We'd like to backport this so people can use it, but it means we'd be releasing a glibc-2.17/glibc-2.18 with a GLIBC_2.19 symbol in it. But maybe it won't be a big deal since you'd only get that 2.19 ref if you actually used the symbol ? There hasn't been a glibc release where hppa worked w/out a bunch of patches, so in reality there's only two distros that matter -- Gentoo and Debian. URL: https://bugs.gentoo.org/480268 Reported-by: Jeroen Roovers <jer@gentoo.org> Signed-off-by: Mike Frysinger <vapier@gentoo.org> (cherry picked from commit 18d4371683fbe347bf4fbaef05d18b5a4918887a)
* alpha: Fix signal thunk unwind infoRichard Henderson2013-11-241-4/+14
| | | | | | | | | | | | 2013-11-16 Richard Henderson <rth@redhat.com> * sysdeps/unix/sysv/linux/alpha/rt_sigaction.S: Include a nop before each signal thunk. URL: https://bugs.gentoo.org/480740 URL: https://sourceware.org/ml/libc-ports/2013-11/msg00000.html (cherry picked from commit 027e32bd42314e17095ba39df82ef293f4a72c09)
* mips: add clock_{g,s}ettime symbol compat hacksMike Frysinger2013-08-164-0/+28
| | | | | | | we kind of screwed ourselves into a corner by having the clock symbols exported only with the glibc-2.0 version ... this patch fixes the export so all new binaries built against librt will use the correct glibc-2.2 symbol version
* arm: fix PIC vs SHARED typosDavid Lamparter2013-08-162-4/+4
| | | | | | | | | | | | | | the logic in setjmp/__longjmp incorrectly tie to "PIC" to figure out whether the code is going into a shared library when it should be using "SHARED". otherwise, building static PIC code goes wrong. https://bugs.gentoo.org/336914 http://sourceware.org/ml/libc-ports/2011-09/msg00018.html 2011-09-19 David Lamparter <equinox-gentoo@diac24.net> * sysdeps/arm/eabi/setjmp.S: Change PIC to SHARED. * sysdeps/arm/eabi/__longjmp.S: Likewise
* gentoo: disable building in timezone subdirMike Frysinger2013-08-161-1/+1
| | | | We've split this out into the package sys-libs/timezone-data
* gentoo: support running tests under sandboxStephanie J. Lockwood-Childs2013-08-163-3/+3
| | | | | | | | | | | | | | | | | when glibc runs its tests, it does so by invoking the local library loader. in Gentoo, we build/run inside of our "sandbox" which itself is linked against libdl (so that it can load libraries and pull out symbols). the trouble is that when you upgrade from an older glibc to the new one, often times internal symbols change name or abi. this is normally OK as you cannot use libc.so from say version 2.3.6 but libpthread.so from say version 2.5, so we always say "keep all of the glibc libraries from the same build". but when glibc runs its tests, it uses dynamic paths to point to its new local copies of libraries. if the test doesnt use libdl, then glibc doesnt add its path, and when sandbox triggers the loading of libdl, glibc does so from the host system system. this gets us into the case of all libraries are from the locally compiled version of glibc except for libdl.so. http://bugs.gentoo.org/56898
* nptl: handle EAGAIN with some futex operationsCarlos O'Donell2013-08-163-4/+5
| | | | https://bugs.gentoo.org/452184
* rtld: do not ignore arch-specific CFLAGSGuy Martin2013-08-161-1/+1
| | | | | | https://bugs.gentoo.org/452184 http://sourceware.org/bugzilla/show_bug.cgi?id=15005 http://sourceware.org/ml/libc-alpha/2013-01/msg00247.html
* nptl: support thread stacks that grow upCarlos O'Donell2013-08-165-13/+55
| | | | http://bugs.gentoo.org/301642
* reload /etc/resolv.conf when it has changedThorsten Kukuk2013-08-161-0/+15
| | | | | | | | | if /etc/resolv.conf is updated, then make sure applications already running get the updated information. ripped from SuSE http://bugs.gentoo.org/177416
* Fix localedef segfault when run under exec-shield, PaX or similarJakub Jelinek2013-08-161-0/+36
| | | | | http://bugs.debian.org/198099 http://bugs.debian.org/231438
* make fortify logic checks less angryMike Frysinger2013-08-161-3/+4
| | | | | | the fortify/optimization check does not play well with our default gcc specs http://sourceware.org/ml/libc-alpha/2012-06/msg00068.html
* workaround crash when handling signals in static PIEsMike Frysinger2013-08-161-1/+1
| | | | | | | | | | work around ... not entirely sure what is going on here. 2011-03-01 squeezy <vina@mailserver.eu> * sysdeps/unix/sysv/linux/x86_64/sigaction.c fix the __restore_rt symbol http://bugs.gentoo.org/283470
* disable ldconfig during installMike Frysinger2013-08-161-0/+1
| | | | | | | | | | do not bother running ldconfig on DESTDIR. it wants to write the temp cache file outside of the chroot. doesnt matter anyways as we wont use the cache results (portage will rebuild cache), so running ldconfig is simply a waste of time. http://sourceware.org/ml/libc-alpha/2012-08/msg00118.html https://bugs.gentoo.org/431038
* Update version.h and include/features.h for 2.18 release. glibc-2.18David S. Miller2013-08-102-3/+3
|
* Fix typo in ChangeLogAndreas Schwab2013-08-061-1/+1
|
* Update Korean translations.David S. Miller2013-08-032-1143/+1342
| | | | * po/ko.po: Update Korean translation from translation project.
* Update manual/contrib.texiDavid S. Miller2013-08-012-1/+21
| | | | | | * manual/contrib.texi: Update entry for Siddhesh Poyarekar. Add entries for Will Newton, Andi Kleen, David Holsgrove, and Ondrej Bilka.
* Update French translations.David S. Miller2013-07-302-934/+972
| | | | * po/fr.po: Update French translation from translation project.
* Update Czech translations.David S. Miller2013-07-282-937/+972
| | | | * po/cs.po: Update Czech translation from translation project.
* Update Swedish translations.David S. Miller2013-07-282-935/+973
| | | | * po/sv.po: Update Swedish translation from translation project.
* Update Esperanto translations.David S. Miller2013-07-272-1020/+1054
| | | | * po/eo.po: Update Esperanto translation from translation project.
* Update Vietnamese translations.David S. Miller2013-07-272-992/+1029
| | | | * po/vi.po: Update Vietnamese translation from translation project.
* Update German translations.David S. Miller2013-07-272-933/+971
| | | | * po/de.po: Update German translation from translation project.
* Update Bulgarian translations.David S. Miller2013-07-262-946/+982
| | | | * po/bg.po: Update Bulgarian translation from translation project.
* Update Dutch, Polish, and Russian translations.David S. Miller2013-07-264-2819/+2927
| | | | | | * po/nl.po: Update Dutch translation from translation project. * po/pl.po: Update Polish translation from translation project. * po/ru.po: Update Russian translation from translation project.
* [AArch64] Provide symbol version for _mcount.Marcus Shawcroft2013-07-265-0/+81
|
* Update libc.pot in preparation for giving tarball to translation project.David S. Miller2013-07-252-930/+968
| | | | * po/libc.pot: Update.
* Added NEWS entries for AT_HWCAP2 and POWER8 enablement.Ryan S. Arnold2013-07-251-0/+5
|