about summary refs log tree commit diff
Commit message (Collapse)AuthorAgeFilesLines
* BZ #431 Fix manual of strncat/wcsncat.Ondřej Bílka2013-10-033-9/+15
|
* Fix erroneous (and circular) implied pattern rule for linkobj/libc.so.Brooks Moses2013-10-033-33/+41
| | | | | | | | | | | | | | | | | [BZ #15915] As described in the bug, the pattern rule for lib%.so files in Makerules includes linkobj/libc.so as a dependency. However, the explicit rule for linkobj/libc.so is in the top-level Makefile. Thus, the subdirectory makefiles that include Makerules end up with an erroneous makefile pattern rule for linkobj/libc.so that includes itself as a dependency. The result is make warnings whenever rules for other .so files are resolved -- and, on occasion, actual makefile failures when a race condition causes the implicit rule to actually be used. This patch moves the explicit rules for linkobj/libc.so into Makerules to clear up this problem. It also elaborates a couple of comments that I'd initially found confusing.
* ARM: Add pointer encryption support.Will Newton2013-10-037-6/+109
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Add support for pointer encryption in glibc internal structures in C and assembler code. Pointer encryption is a glibc security feature described here: https://sourceware.org/glibc/wiki/PointerEncryption The ARM implementation uses global variables instead of thread pointer relative accesses to get the value of the pointer encryption guard because accessing the thread pointer can be very expensive on older ARM cores. ports/ChangeLog.arm: 2013-10-03 Will Newton <will.newton@linaro.org> * sysdeps/arm/__longjmp.S (__longjmp): Demangle fp, sp and lr when restoring register values. * sysdeps/arm/include/bits/setjmp.h (JMP_BUF_REGLIST): Remove sp and lr from list and replace fp with a4. * sysdeps/arm/jmpbuf-unwind.h (_jmpbuf_sp): New function. (_JMPBUF_UNWINDS_ADJ): Call _jmpbuf_sp. * sysdeps/arm/setjmp.S (__sigsetjmp): Mangle fp, sp and lr before storing register values. * sysdeps/arm/sysdep.h (LDST_GLOBAL): New macro. * sysdeps/unix/sysv/linux/arm/sysdep.h (PTR_MANGLE): New macro. (PTR_DEMANGLE): Likewise. (PTR_MANGLE2): Likewise. (PTR_DEMANGLE2): Likewise.
* maint: correct changelogEric Blake2013-10-021-5/+5
| | | | | | * ChangeLog: List my previous commit in correct location. Signed-off-by: Eric Blake <eblake@redhat.com>
* malloc: Add pvalloc test.Will Newton2013-10-023-1/+98
| | | | | | | | | ChangeLog: 2013-10-02 Will Newton <will.newton@linaro.org> * malloc/Makefile: Add tst-pvalloc. * malloc/tst-pvalloc.c: New file.
* malloc/tst-valloc.c: Improve test coverage and use test-skeleton.c.Will Newton2013-10-022-16/+89
| | | | | | | | | ChangeLog: 2013-10-02 Will Newton <will.newton@linaro.org> * malloc/tst-valloc.c: Rewrite to use test-skeleton.c and improve test coverage.
* malloc: Add posix_memalign test.Will Newton2013-10-023-1/+104
| | | | | | | | | ChangeLog: 2013-10-02 Will Newton <will.newton@linaro.org> * malloc/Makefile: Add tst-posix_memalign. * malloc/tst-posix_memalign.c: New file.
* glob: silence -Wattribute warningsEric Blake2013-10-012-3/+8
| | | | | | | | | | | Colin Watson reported that some versions of gcc warn about attribute leaf used on a static function, since it has no effect on anything but external functions. * posix/glob.c (next_brace_sub, prefix_array, collated_compare): Use __THROWNL rather than __THROW on static functions. Signed-off-by: Eric Blake <eblake@redhat.com>
* Mention bug 15760 in NEWS (duplicate of 15988, just added to NEWS)Chris Metcalf2013-10-011-4/+4
|
* alpha: Improve conditions under which PTR_MANGLE is definedRichard Henderson2013-10-012-31/+26
| | | | | After 0b1f8e35640f5b3f7af11764ade3ff060211c309, we now have a __pointer_chk_guard_local for the static libc.
* Fix PI mutex check in pthread_cond_broadcast and pthread_cond_signalSiddhesh Poyarekar2013-10-014-11/+12
| | | | | | | | Fixes BZ #15988. 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.
* Add AArch64 relocation definitions.Petr Machata2013-09-302-0/+196
|
* [AArch64] Fix BE access to errno.Andrew Pinski2013-09-302-1/+6
|
* Properly cache the result from looking up the nss database configAndreas Schwab2013-09-305-29/+33
|
* tst-fanotify: fix styleMike Frysinger2013-09-282-9/+14
| | | | | Reported-by: Andreas Jaeger <aj@suse.com> Signed-off-by: Mike Frysinger <vapier@gentoo.org>
* don't use Bash-specific ${parameter/pattern/string} expansionPatrick 'P. J.' McDermott2013-09-283-3/+11
| | | | | | | | | | | | | | | | | | | | | | | | sysdeps/unix/make-syscalls.sh and sysdeps/unix/Makefile use GNU Bash's ${parameter/pattern/string} parameter expansion. Non-Bash shells (e.g. dash or BusyBox ash when built with CONFIG_ASH_BASH_COMPAT disabled) don't support this expansion syntax. So glibc will fail to build when $(SHELL) expands to a path that isn't provided by Bash. An example build failure: for dir in [...]; do \ test -f $dir/syscalls.list && \ { sysdirs='[...]' \ asm_CPP='gcc -c -I[...] -D_LIBC_REENTRANT -include include/libc-symbols.h -DASSEMBLER -g -Wa,--noexecstack -E -x assembler-with-cpp' \ /bin/sh sysdeps/unix/make-syscalls.sh $dir || exit 1; }; \ test $dir = sysdeps/unix && break; \ done > [build-dir]/sysd-syscallsT sysdeps/unix/make-syscalls.sh: line 273: syntax error: bad substitution This patch simply replaces the three instances of the Bash-only syntax in these files with an echo and sed command substitution. Signed-off-by: Mike Frysinger <vapier@gentoo.org>
* Fix ayc_PE.UTF-8 and lzh_TW.UTF-8 build issuesChris Leonard2013-09-282-0/+2
|
* Revert "Remove references to non-existent content items in install.texi"Allan McRae2013-09-283-8/+3
| | | | | | | | This reverts commit 583c76a7ce305d24e0625a22caed317b3e001d91 which breaks building info pages during "make install". Conflicts: ChangeLog
* Move ChangeLog entrySiddhesh Poyarekar2013-09-272-9/+8
|
* Remove references to non-existent content items in install.texiAllan McRae2013-09-273-3/+8
| | | | | These were left in when the installation section was split out into its own file.
* Use the mutex member of the argumen in __libc_lock_*_recursiveSiddhesh Poyarekar2013-09-272-3/+12
|
* Add ChangeLog entry for new sysdeps/sh/stackguard-macros.h.Kaz Kojima2013-09-271-0/+4
|
* Add SH implementation of stackguard-macros.h.Kaz Kojima2013-09-271-0/+6
|
* Faster strrchr.Ondřej Bílka2013-09-267-943/+208
|
* PowerPC: Fix POINTER_CHK_GUARD thread register for PPC64Adhemerval Zanella2013-09-252-1/+6
|
* Version 1.2 of gd_GB localeMichael Bauer2013-09-253-116/+147
|
* conformtest: Clean up expectations for POSIX for sched.h.Joseph Myers2013-09-252-3/+24
|
* Fix tst-long-dbl-fphex swprintf length calculation.Olivier Langlois2013-09-242-2/+7
|
* conformtest: Clean up expectations for POSIX for pthread.h.Joseph Myers2013-09-242-7/+22
|
* Add localedef --big-endian and --little-endian options.Joseph Myers2013-09-247-190/+335
|
* Update to canonical freemanuals.texi file.Roland McGrath2013-09-243-1/+11
|
* [AArch64] Support __mcount profiling.Marcus Shawcroft2013-09-242-8/+12
|
* [AArch64] Adding sigcontextinfo.hMarcus Shawcroft2013-09-242-0/+39
|
* ports/sysdeps/arm/nptl/tls.h: Remove TLS_INIT_TP_EXPENSIVE.Will Newton2013-09-242-4/+5
| | | | | | | | | | | This define was removed from the rest of the tree eight years ago. ports/ChangeLog.arm: 2013-09-24 Will Newton <will.newton@linaro.org> * ports/sysdeps/arm/nptl/tls.h (TLS_INIT_TP_EXPENSIVE): Remove macro.
* sysdeps/mach/hurd/i386/tls.h: Remove TLS_INIT_TP_EXPENSIVE.Will Newton2013-09-242-1/+5
| | | | | | | | | | | This define was removed from the rest of the tree eight years ago. ChangeLog: 2013-09-24 Will Newton <will.newton@linaro.org> * sysdeps/mach/hurd/i386/tls.h (TLS_INIT_TP_EXPENSIVE): Remove macro.
* New locale for cmn_TWWei-Lun Chao2013-09-234-8/+235
|
* New locale for hak_TWWei-Lun Chao2013-09-234-6/+232
|
* Make locale archive hash function architecture-independent.Joseph Myers2013-09-232-1/+6
|
* New locale for lzh_TWWei-Lun Chao2013-09-234-4/+264
|
* New locale for nan_TWWei-Lun Chao2013-09-234-5/+232
|
* manual: Fix a typo in `POSIX Threads' sectionMaciej W. Rozycki2013-09-232-1/+5
|
* 2013-09-23 Steve Ellcey <sellcey@mips.com>Steve Ellcey2013-09-232-0/+131
| | | | | | | | | | | | | | | | | | | | | | | * sysdeps/mips/math_private.h (libc_feholdexcept_mips): New function. (libc_feholdexcept): New macro. (libc_feholdexceptf): New macro. (libc_feholdexceptl): New macro. (libc_fesetround_mips): New function. (libc_fesetround): New macro. (libc_fesetroundf): New macro. (libc_fesetroundl): New macro. (libc_feholdexcept_setround_mips): New function. (libc_feholdexcept_setround): New macro. (libc_feholdexcept_setroundf): New macro. (libc_feholdexcept_setroundl): New macro. (libc_fesetenv_mips): New function. (libc_fesetenv): New macro. (libc_fesetenvf): New macro. (libc_fesetenvl): New macro. (libc_feupdateenv_mips): New function. (libc_feupdateenv): New macro. (libc_feupdateenvf): New macro. (libc_feupdateenvl): New macro.
* MIPS: bits/atomic.h: Fix comment typoMaciej W. Rozycki2013-09-232-1/+5
|
* 2013-09-23 Steve Ellcey <sellcey@mips.com>Steve Ellcey2013-09-233-3/+8
| | | | | * sysdeps/mips/fpu/fegetround.c (fegetround): Use _FPU_RC_MASK. * sysdeps/mips/fpu/fesetround.c (fesetround): Use _FPU_RC_MASK.
* 2013-09-19 Steve Ellcey <sellcey@mips.com>Steve Ellcey2013-09-232-0/+6
| | | | * sysdeps/mips/fpu_control.h (_FPU_RC_MASK): New.
* 2013-09-23 Steve Ellcey <sellcey@mips.com>Steve Ellcey2013-09-232-3/+8
| | | | | * sysdeps/mips/fpu_control.h (comments): Add capitalization and periods to match GNU standard.
* Check for integer overflow in cache size computation in strcollSiddhesh Poyarekar2013-09-235-1/+84
| | | | | | | | | | | strcoll is implemented using a cache for indices and weights of collation sequences in the strings so that subsequent passes do not have to search through collation data again. For very large string inputs, the cache size computation could overflow. In such a case, use the fallback function that does not cache indices and weights of collation sequences. Fixes CVE-2012-4412.
* Fall back to non-cached sequence traversal and comparison on malloc failSiddhesh Poyarekar2013-09-233-35/+254
| | | | | | | | strcoll currently falls back to alloca if malloc fails, resulting in a possible stack overflow. This patch implements sequence traversal and comparison without caching indices and rules. Fixes CVE-2012-4424.
* BZ #15754: Fix test case for ARM.Carlos O'Donell2013-09-233-1/+14
| | | | | | | Statically built binaries use __pointer_chk_guard_local, while dynamically built binaries use __pointer_chk_guard. Provide the right definition depending on the test case we are building.
* BZ #15754: CVE-2013-4788Carlos O'Donell2013-09-2319-5/+351
| | | | | | | | | | | | 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.