AgeCommit message (Collapse)Author
2013-11-27MIPS: Fix RLIM64_INFINITY constant for O32 and N32 ABIsmips-prlimit64Aurelien Jarno
Fix the RLIM64_INFINITY constant for O32 and N32 ABIs to match the kernel one. Change the getrlimit64/setrlimit64 into old compat symbols, and provide the Linux generic getrlimit64/setrlimit64 functions as GLIBC_2_19 version.
2013-11-27MIPS: Add wrappers to get/setrlimit64 to fix RLIM64_INFINITY constantAurelien Jarno
RLIM64_INFINITY was supposed to be a glibc convention rather than anything seen by the kernel, but it ended being passed to the kernel through the prlimit64 syscall. On O32 and N32 ABIs, we therefore end-up with different values on the userland and kernel side: * On the kernel side, the value is defined for all architectures as include/uapi/linux/resource.h: #define RLIM64_INFINITY (~0ULL) * On the GNU libc side, the value is defined in ports/sysdeps/unix/sysv/linux/mips/bits/resource.h: For the O32 and N32 ABI: # define RLIM64_INFINITY 0x7fffffffffffffffULL and for the N64 ABI: # define RLIM64_INFINITY 0xffffffffffffffffUL This was not a problem until the prlimit64 syscall was wired in the 2.6.36 kernel. Given the GLIBC uses the prlimit64 syscall to implement getrlimit64 and setrlimit64, pam_limits.so is setting the limits to a very big value instead of infinity. As a normal user process can later only decrease the value and not increase it, it will later get and EPERM error when trying to set the value to infinity with setrlimit. The GLIBC has this constant for more than 7 years, and as it is defined in a header file, it means a lot of binaries are in the wild. This patch fixes that by adding a wrapper to fix the value passed to or received from the kernel, before or after calling the prlimit64 syscall.
2013-11-10Fix build on hurdSamuel Thibault
* string/strcoll_l.c: Include <sys/param.h> for MIN/MAX macros.
2013-11-08PowerPC: Fix vDSO missing ODP entriesAdhemerval Zanella
This patch fixes the vDSO symbol used directed in IFUNC resolver where they do not have an associated ODP entry leading to undefined behavior in some cases. It adds an artificial OPD static entry to such cases and set its TOC to non 0 to avoid triggering lazy resolutions.
2013-11-07Make getent services compliant with RFC 6335 section 5.1 Fixes bug 15374Ondřej Bílka
The RFC 6335 allows services that start with digit (like 3com-tsmux). These were parsed as port number which this patch fixes.
2013-11-06Fix build on pre-v9 32-bit Sparc.David S. Miller
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.
2013-11-06manual/memory.texi: Remove register keyword from examples.Will Newton
The register keyword doesn't add any information to the examples and is not useful for modern compilers. ChangeLog: 2013-11-06 Will Newton <will.newton@linaro.org> * manual/memory.texi (Malloc Examples): Remove register keyword from examples.
2013-11-04Restore ChangeLogAndreas Schwab
2013-11-04Adjust language-code fields of LC_ADDRESS.Chris Leonard
2013-11-04Correct Walaita (wal) and add Unami Delaware (unm).Chris Leonard
2013-11-04Define __STDC_IEC_559* based on __GCC_IEC_559*.Joseph Myers
2013-11-03Adjust language-code fields of LC_ADDRESS.Chris Leonard
2013-11-03Adjust language-code fields of LC_ADDRESS.Chris Leonard
2013-11-03Add Quechua, Southern (quz) and Silesian (szl) to iso-639.def.Chris Leonard
2013-11-03Fix changelogOndřej Bílka
2013-11-03Remove unused NONTLS_INIT_TP.Ondřej Bílka
2013-11-03Adjust language-code fields of LC_ADDRESS.Chris Leonard
2013-11-01Fix malloc_info statistic. Fixes bug 16112Ondřej Bílka
2013-11-01Adjust language-code fields of LC_ADDRESS.Chris Leonard
2013-11-01Add Central Nahuatl (nhn).Chris Leonard
2013-11-01Fix description of random according to POSIX. Fixes bug 7003Bruno Haible
2013-10-31Adjust language-code fields of LC_ADDRESS.Chris Leonard
2013-10-31Add Meadow Mari (mhr).Chris Leonard
2013-10-31Restrict shm_open and shm_unlink to SHMDIR. Fixes bugs 14752 and 15763.Ondřej Bílka
2013-10-31Fix BZ referenceAndreas Schwab
2013-10-31Refill NEWSAndreas Schwab
2013-10-31Fix parsing of 0e+0 as floatAndreas Schwab
2013-10-31Accept make versions 4.0 and greaterMarc-Antoine Perennou
2013-10-30malloc: Fix for infinite loop in memalign/posix_memalign.Will Newton
A very large alignment argument passed to mealign/posix_memalign causes _int_memalign to enter an infinite loop. Limit the maximum alignment value to the maximum representable power of two to prevent this from happening. Changelog: 2013-10-30 Will Newton <will.newton@linaro.org> [BZ #16038] * malloc/hooks.c (memalign_check): Limit alignment to the maximum representable power of two. * malloc/malloc.c (__libc_memalign): Likewise. * malloc/tst-memalign.c (do_test): Add test for very large alignment values. * malloc/tst-posix_memalign.c (do_test): Likewise.
2013-10-30Use atomic operations to track memory. Fixes bug 11087Ondřej Bílka
2013-10-30Remove code from div that is by C99 obsolete. Fixes bug 15799Ondřej Bílka
2013-10-30Fix reads for sizes larger than INT_MAX in AF_INET lookupSiddhesh Poyarekar
Currently for AF_INET lookups from the hosts file, buffer sizes larger than INT_MAX silently overflow and may result in access beyond bounds of a buffer. This happens when the number of results in an AF_INET lookup in /etc/hosts are very large. There are two aspects to the problem. One problem is that the size computed from the buffer size is stored into an int, which results in overflow for large sizes. Additionally, even if this size was expanded, the function used to read content into the buffer (fgets) accepts only int sizes. As a result, the fix is to have a function wrap around fgets that calls it multiple times with int sizes if necessary.
2013-10-30Add ChangeLog entry and fix NEWS for #16078Siddhesh Poyarekar
2013-10-30Add missing bug number to NEWSAllan McRae
2013-10-30Fix ChangeLog formatting issueAllan McRae
2013-10-30rename configure.in to configure.acMike Frysinger
Autoconf has been deprecating configure.in for quite a long time. Rename all our configure.in and preconfigure.in files to .ac. Signed-off-by: Mike Frysinger <vapier@gentoo.org>
2013-10-29Let tst-swscanf find its localeAndreas Schwab
2013-10-29New-locale-for-anp_INChris Leonard
2013-10-28Benchmark inputs for powSiddhesh Poyarekar
These inputs cover all normal processing paths for pow including all its slow paths.
2013-10-28New inputs for expSiddhesh Poyarekar
A more comprehensive set of inputs for exp, including all slow paths. The inputs have been shuffled so that they don't give a false-positive due to a hot cache.
2013-10-28Consolidate conditionals in mp sin/cos functionsSiddhesh Poyarekar
Consolidate conditionals in multiple precision sin and cos functions to prepare the code for addition of probe points.
2013-10-28Fix ChangeLog date.Adhemerval Zanella
2013-10-26Add some more NEWS items.Joseph Myers
2013-10-25PowerPC: strcpy/stpcpy optimization for PPC64/POWER7Adhemerval Zanella
This patch intends to unify both strcpy and stpcpy implementationsi for PPC64 and PPC64/POWER7. The idead default powerpc64 implementation is to provide both doubleword and word aligned memory access. For PPC64/POWER7 is also provide doubleword and word memory access, remove the branch hints, use the cmpb instruction for compare doubleword/words, and add an optimization for inputs of same alignment.
2013-10-25Fix gethostbyname_r example. Fixes bug 2801.Ondřej Bílka
2013-10-25Changelog for last commit.Ondřej Bílka
2013-10-25Make strptime %Z consistent between doc and code. Fixes bug 14876Ondřej Bílka
2013-10-25Acknowledge that fnmatch can fail. Fixes bug 14029.Ondřej Bílka
2013-10-25Document that mmap() returns MAP_FAILED on error, as per the POSIX standard.Fabrice Bauzac
2013-10-25Fix stack overflow due to large AF_INET6 requestsSiddhesh Poyarekar
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.