about summary refs log tree commit diff
Commit message (Collapse)AuthorAgeFilesLines
* Fix invalid memory access when parsing netgroup files with blank lines (BZ ↵Siddhesh Poyarekar2014-01-272-1/+6
| | | | | | | | | | | | | | | | | | | | | | #16506) The netgroups file parsing code tries to access the character before the newline in parsed lines to see if it is a backslash (\). This results in an access before the block allocated for the line if the line is blank, i.e. does not have anything other than the newline character. This doesn't seem like it will cause any crashes because the byte belongs to the malloc metadata block and hence access to it will always succeed. There could be an invalid alteration in code flow where a blank line is seen as a continuation due to the preceding byte *happening* to be '\\'. This could be done by interposing malloc, but that's not really a security problem since one could interpose getnetgrent_r itself and achieve a similar 'exploit'. The possibility of actually exploiting this is remote to impossible since it also requires the previous line to end with a '\\', which would happen only on invalid configurations.
* Avoid undefined behaviour in netgroupcacheSiddhesh Poyarekar2014-01-272-5/+16
| | | | | | Using a buffer after it has been reallocated is undefined behaviour, so get offsets of the triplets in the old buffer before reallocating it.
* Update French translationsAllan McRae2014-01-272-468/+524
|
* Regenerate SH libm-test-ulps with proper compiler options.Kaz Kojima2014-01-272-9/+720
|
* Rebuild sparc ULPs.David S. Miller2014-01-242-1203/+9821
| | | | * sysdeps/sparc/fpu/libm-test-ulps: Regenerate.
* Move SH libm-test-ulps to sysdeps/sh and regenerate it.Kaz Kojima2014-01-253-1094/+5491
|
* tile: Regenerate libm-test-ulpsChris Metcalf2014-01-242-496/+1522
|
* alpha: Update libm-test-ulpsRichard Henderson2014-01-242-1142/+9873
|
* alpha: Fix tls-macros.hRichard Henderson2014-01-242-11/+16
| | | | | | 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.
* ARM: Fix clone build for ARMv4Will Newton2014-01-242-7/+7
| | | | | | | | | | | | | | | 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.
* Adjust pointers to triplets in netgroup query data (BZ #16474)Siddhesh Poyarekar2014-01-243-2/+18
| | | | | | | | | The _nss_*_getnetgrent_r query populates the netgroup results in the allocated buffer and then sets the result triplet to point to strings in the buffer. This is a problem when the buffer is reallocated since the pointers to the triplet strings are no longer valid. The pointers need to be adjusted so that they now point to strings in the reallocated buffer.
* Restore ucontext ABI for soft-float sh4.Kaz Kojima2014-01-243-99/+6
|
* S/390: Increase tst-tls7 test case timeoutStefan Liebler2014-01-232-1/+5
| | | | | | | | TLS in a dlopened object works fine when accessed from a signal handler. The default kernel scheduling parameters prevents the testcase to finish within the 4 seconds. Tested the bigger timeout on s390 and s390x.
* Adjust SH specific fpu_control.h and ucontext.h files.Kaz Kojima2014-01-234-103/+43
|
* S/390: Merge 32 and 64 bit ucontext.h.Andreas Krebbel2014-01-223-98/+13
|
* Include generic symbol-hacks.h for x32H.J. Lu2014-01-202-1/+6
| | | | | | In BZ #15605 fix with addding memset/memmove alias in symbol-hacks.h, x32 symbol-hacks.h change was missing. Fixed by including <sysdeps/generic/symbol-hacks.h> in x32 symbol-hacks.h.
* PowerPC: Fix gettimeofday ifunc selectionAdhemerval Zanella2014-01-204-5/+18
| | | | | | | | | | | | The IFUNC selector for gettimeofday runs before _libc_vdso_platform_setup where __vdso_gettimeofday is set. The selector then sets __gettimeofday (the internal version used within GLIBC) to use the system call version instead of the vDSO one. This patch changes the check if vDSO is available to get its value directly instead of rely on __vdso_gettimeofday. This patch changes it by getting the vDSO value directly. It fixes BZ#16431.
* [AArch64] Fix type in abi-lp64_be-options.Marcus Shawcroft2014-01-202-1/+6
|
* [AArch64] BZ #16169 Add CFI directives to clone.STom Tromey2014-01-203-5/+16
| | | | | | [BZ #16169] Add CFI directives to the AArch64 clone.S implementation and ensure that the FP in the child is zero'd in order to comply with AAPCS.
* [AArch64] Define BE loader name.Marcus Shawcroft2014-01-206-0/+229
|
* Update Catalan translationsAllan McRae2014-01-202-527/+573
|
* Don't check asynchronous cancellation on systemH.J. Lu2014-01-182-1/+5
| | | | | | | | | | | | | | | | | | | | Since asynchronous cancellation was removed from system by commit c4dd57c300aa05ab2f957d571c321237a58d0368 Author: Ondřej Bílka <neleai@seznam.cz> Date: Tue Jan 14 16:07:50 2014 +0100 Do not enable asynchronous cancellation in system. Fixes bug 14782. We needlessly enabled thread cancellation before it was necessary. As only call that needs to be guarded is waitpid which is cancellation point we could remove cancellation altogether. we shouldn't check asynchronous cancellation on system. [BZ #14782] * tst-cancel-wrappers.sh: Remove system.
* Fix incorrect ChangeLog formattingAdam Conrad2014-01-171-1/+1
|
* s390: implement sotruss supportMike Frysinger2014-01-162-0/+66
| | | | | | | | | | | | | See commit 41b1792698a335d3a85381921a84a16e9635f36a for testcase. Note: while this works on s390x, the s390 code hangs when using -e. But it hangs regardless of this code (the hang seems to occur before the exit func is even called). I didn't look too closely at it as it seems to be an issue external to this file, so this code shouldn't make the situation any worse. Reviewed-by: Carlos O'Donell <carlos@redhat.com> Signed-off-by: Mike Frysinger <vapier@gentoo.org>
* Add BZ#16430 to NEWS.Adhemerval Zanella2014-01-161-1/+1
|
* PowerPC: Fix ftime gettimeofday internal call returning bogus dataAdhemerval Zanella2014-01-163-4/+44
| | | | | | | | | | | | This patches fixes BZ#16430 by setting a different symbol for internal GLIBC calls that points to ifunc resolvers. For PPC32, if the symbol is defined as hidden (which is the case for gettimeofday and time) the compiler will create local branches (symbol@local) and linker will not create PLT calls (required for IFUNC). This will leads to internal symbol calling the IFUNC resolver instead of the resolved symbol. For PPC64 this behavior does not occur because a call to a function in another translation unit might use a different toc pointer thus requiring a PLT call.
* Fix math/test-fpucw-*.c for sysdeps test-fpucw.c overrides.Joseph Myers2014-01-163-2/+7
| | | | | | | | | | | | | | | | | | | | | | | ARM has an override of the test math/test-fpucw.c, to disable (for soft-float testing) definitions of hard-float macros in fpu_control.h that the header normally defines not only when building for hard-float, but also when building for soft-float with _LIBC defined so that libc code can dynamically test whether VFP hardware is present. (_LIBC is defined when building tests, although ideally it wouldn't be.) The override doesn't work for the derived tests test-fpucw-*.c because they use #include "" instead of <> to include test-fpucw.c, so always get the math/ version instead of the ARM sysdeps override. This patch changes them to use <> so the sysdeps override is effective. (test-fpucw-ieee-static.c doesn't need a change because it includes test-fpucw-ieee.c, which isn't itself being overridden, which in turn includes test-fpucw.c with a #include changed by this patch.) Tested for ARM (big-endian soft-float, non-VFP hardware). * math/test-fpucw-ieee.c: Use <> in #include of test-fpucw.c. * math/test-fpucw-static.c: Likewise.
* Mention addition of multiple precision fallback libm probes in NEWSSiddhesh Poyarekar2014-01-161-0/+3
|
* Don't use alloca in addgetnetgrentX (BZ #16453)Siddhesh Poyarekar2014-01-163-32/+12
| | | | | | | | | | | | | | | | | | | | | | | | | | | addgetnetgrentX has a buffer which is grown as per the needs of the requested size either by using alloca or by falling back to malloc if the size is larger than 1K. There are two problems with the alloca bits: firstly, it doesn't really extend the buffer since it does not use the return value of the extend_alloca macro, which is the location of the reallocated buffer. Due to this the buffer does not actually extend itself and hence a subsequent write may overwrite stuff on the stack. The second problem is more subtle - the buffer growth on the stack is discontinuous due to block scope local variables. Combine that with the fact that unlike realloc, extend_alloca does not copy over old content and you have a situation where the buffer just has garbage in the space where it should have had data. This could have been fixed by adding code to copy over old data whenever we call extend_alloca, but it seems unnecessarily complicated. This code is not exactly a performance hotspot (it's called when there is a cache miss, so factors like network lookup or file reads will dominate over memory allocation/reallocation), so this premature optimization is unnecessary. Thanks Brad Hubbard <bhubbard@redhat.com> for his help with debugging the problem.
* PowerPC: sotruss-lib implementationAdhemerval Zanella2014-01-152-0/+74
| | | | This patch add the missing sotruss-lib interfaces for PowerPC.
* Add ChangeLog entryOndřej Bílka2014-01-151-0/+6
|
* Do not enable asynchronous cancellation in system. Fixes bug 14782.Ondřej Bílka2014-01-152-24/+15
| | | | | | We needlessly enabled thread cancellation before it was necessary. As only call that needs to be guarded is waitpid which is cancellation point we could remove cancellation altogether.
* [BZ #16427] Fix ldbl-128 exp overflows.Andreas Krebbel2014-01-152-13/+11
| | | | | Invoke the non-IEEE handling only for numbers special also in the IEEE case. This aligns the exp handling with the other ldbl variants.
* S/390: Regenerate ULPs.Andreas Krebbel2014-01-152-1139/+9964
|
* ARM: Don't apply pointer encryption to the frame pointerWill Newton2014-01-145-11/+20
| | | | | | | | | | | | | | | | | | | | | The frame pointer register is rarely used for that purpose on ARM and applications that look at the contents of the jmp_buf may be relying on reading an unencrypted value. For example, Ruby uses the contents of jmp_buf to find the root set for garbage collection so relies on this pointer value being unencrypted. Without this patch the Ruby testsuite fails with a segmentation fault. ports/ChangeLog.arm: 2013-01-14 Will Newton <will.newton@linaro.org> * sysdeps/arm/__longjmp.S: Don't apply pointer encryption to fp register. * sysdeps/arm/setjmp.S: Likewise. * sysdeps/arm/include/bits/setjmp.h (JMP_BUF_REGLIST): Add fp to register list, remove a4. * sysdeps/unix/sysv/linux/arm/sysdep.h (PTR_MANGLE_LOAD): New macro.
* Mention BZ 9721Paul Pluzhnikov2014-01-121-16/+16
|
* Add BZ #15850 to ChangeLog.Carlos O'Donell2014-01-121-0/+1
|
* BZ 16133 has been fixed (async signal safe TLS).Paul Pluzhnikov2014-01-111-5/+5
|
* Fix a race in tst-tls7, which caused crashes on ppc32.Paul Pluzhnikov2014-01-113-5/+31
|
* Add 15850 to NEWS.Ondřej Bílka2014-01-111-8/+9
|
* Update Bulgarian translationsAllan McRae2014-01-112-464/+518
|
* Update German translationsAllan McRae2014-01-112-467/+513
|
* ARM: Disable compat mcount code when unneeded.Roland McGrath2014-01-105-6/+125
|
* Correct inputs for sin and cosSiddhesh Poyarekar2014-01-103-29/+11
| | | | | The inputs for the slowest path in asin and acos were incorrect and had some fast path inputs there too.
* Update Swedish translationsAllan McRae2014-01-102-466/+511
|
* Update Vietnamese translationsAllan McRae2014-01-102-580/+636
|
* Update Esperanto translationsAllan McRae2014-01-102-515/+570
|
* Update Czech translationsAllan McRae2014-01-102-464/+519
|
* Update Dutch translationsAllan McRae2014-01-102-474/+527
|
* Update Polish translationsAllan McRae2014-01-102-467/+512
|