aboutsummaryrefslogtreecommitdiff
AgeCommit message (Collapse)AuthorFilesLines
2014-11-11[AArch64] End frame record chain correctly.Renlin Li3-2/+7
2014-09-05CVE-2014-6040: Crashes on invalid input in IBM gconv modules [BZ #17325]Florian Weimer11-10/+54
These changes are based on the fix for BZ #14134 in commit 6e230d11837f3ae7b375ea69d7905f0d18eb79e5. (cherry picked from commit 41488498b6d9440ee66ab033808cce8323bba7ac) Conflicts: NEWS iconvdata/Makefile
2014-09-05__gconv_translit_find: Disable function [BZ #17187]Florian Weimer3-174/+19
This functionality has never worked correctly, and the implementation contained a security vulnerability (CVE-2014-5119). (cherry picked from commit a1a6a401ab0a3c9f15fb7eaebbdcee24192254e8) (cherry picked from commit f9df71e895d3552d557e783fdb9d133328195645) Conflicts: NEWS
2014-09-05NEWS: Explain the s390 jmp_buf / ucontext_t ABI change reversal.Stefan Liebler2-0/+16
(cherry picked from commit 95ee7fb13ba99ba265b49531c57e1cb8db629bc6) Typo fix as in commit 45ef66289acbab17278a73512f9b2a9d8a7ca79d and NEW enty adjusted to reflect revert occuring in 2.19.1 and 2.20. Conflicts: NEWS
2014-09-05S/390: Revert the jmp_buf/ucontext_t ABI changeStefan Liebler36-795/+260
Backport of commit 2f438e20ab591641760e97458d5d1569942eced5
2014-09-05manual: Update the locale documentationFlorian Weimer2-32/+127
(cherry picked from commit 585367266923156ac6fb789939a923641ba5aaf4) Conflicts: manual/locale.texi
2014-09-05_nl_find_locale: Improve handling of crafted locale names [BZ #17137]Florian Weimer6-16/+292
Prevent directory traversal in locale-related environment variables (CVE-2014-0475). (cherry picked from commit 4e8f95a0df7c2300b830ec12c0ae1e161bc8a8a3) Addiational backporting fixes: Added tst-setlocale3-ENV to localedata/Makefile Conflicts: NEWS localedata/Makefile
2014-09-05setlocale: Use the heap for the copy of the locale argumentFlorian Weimer2-2/+17
This avoids alloca calls with potentially large arguments. (cherry picked from commit d183645616b0533b3acee28f1a95570bffbdf50f)
2014-09-05Use NSS_STATUS_TRYAGAIN to indicate insufficient buffer (BZ #16878)Siddhesh Poyarekar4-9/+19
The netgroups nss modules in the glibc tree use NSS_STATUS_UNAVAIL (with errno as ERANGE) when the supplied buffer does not have sufficient space for the result. This is wrong, because the canonical way to indicate insufficient buffer is to set the errno to ERANGE and the status to NSS_STATUS_TRYAGAIN, as is used by all other modules. This fixes nscd behaviour when the nss_ldap module returns NSS_STATUS_TRYAGAIN to indicate that a netgroup entry is too long to fit into the supplied buffer. (cherry picked from commit c3ec475c5dd16499aa040908e11d382c3ded9692) Conflicts: NEWS
2014-09-05Provide correct buffer length to netgroup queries in nscd (BZ #16695)Siddhesh Poyarekar3-3/+9
The buffer to query netgroup entries is allocated sufficient space for the netgroup entries and the key to be appended at the end, but it sends in an incorrect available length to the NSS netgroup query functions, resulting in overflow of the buffer in some special cases. The fix here is to factor in the key length when sending the available buffer and buffer length to the query functions. (cherry picked from commit c44496df2f090a56d3bf75df930592dac6bba46f) Conflicts: NEWS
2014-09-05[BZ #16046] dl_iterate_phdr static executable testMaciej W. Rozycki3-1/+54
(cherry picked from commit 257ce7127e2f64a6a959b146786cd43de0e42b5f)
2014-09-05Fix another memory leak in regexp compiler (BZ #17069)Andreas Schwab4-4/+15
(cherry picked from commit aa6ec754f3b4b1df81d186480c534b6486a1e6ee) Conflicts: NEWS
2014-09-05Fix memory leak in regexp compiler (BZ #17069)Andreas Schwab4-5/+59
(cherry picked from commit 4d43ef1e7434d7d419afbcd754931cb0c794763c) Conflicts: posix/Makefile
2014-09-05Fix invalid file descriptor reuse while sending DNS query (BZ #15946)Andreas Schwab3-1/+9
(cherry picked from commit f9d2d03254a58d92635a311a42253eeed5a40a47) Conflicts: NEWS
2014-09-05Properly fix memory leak in _nss_dns_gethostbyname4_r with big DNS answerAndreas Schwab8-49/+95
Instead of trying to guess whether the second buffer needs to be freed set a flag at the place it is allocated (cherry picked from commit ab09bf616ad527b249aca5f2a4956fd526f0712f)
2014-09-05Deduplicate resolv/nss_dns/dns-host.cOndřej Bílka1-10/+7
In resolv/nss_dns/dns-host.c one of code path duplicated code after that. We merge these paths. (cherry picked from commit ab7ac0f2cf8731fe4c3f3aea6088a7c0127b5725)
2014-09-05Fix memory leak in _nss_dns_gethostbyname4_r with big DNS answerAndreas Schwab3-3/+17
(cherry picked from commit d668061994a7486a3ba9c7d5e7882d85a2883707) Conflicts: NEWS
2014-09-05Fix unbound stack use in NIS NSS moduleAndreas Schwab6-1/+54
(cherry picked from commit 315eb1d86aea489cd6325fd1c2521dcfb4fc0e1c) Conflicts: NEWS
2014-09-05Mention CVE-2014-4043 in NEWSAllan McRae2-0/+10
(cherry picked from commit d03efb2f979defd473955a455d66b949961d26b2) Conflicts: NEWS
2014-09-05posix_spawn_faction_addopen: Add missing string.h include directiveStefan Liebler2-0/+5
This is needed to avoid a PLT call on s390. (cherry picked from commit 35a5e3e338ae17f3d42c60a708763c5d498fb840)
2014-08-28PowerPC: Fix gprof entry point for LEAdhemerval Zanella3-1/+9
This patch fixes the ELFv2 gprof entry point since the ABI does not define function descriptors. It fixes BZ#17213. This is a backport of a53fbd8e6cd2f69bdfa3431d616a5f332aea6664.
2014-08-28Correct DT_PPC64_NUMAlan Modra3-2/+8
[BZ #17153] * elf/elf.h (DT_PPC64_NUM): Correct value. * NEWS: Add to fixed bug list. This is a backport of f6c44d475104e931bab2b4ffa499961088de673c.
2014-08-28PowerPC: Cleanup powerpc memmoveAdhemerval Zanella6-25/+15
Now that MEMCPY_OK_FOR_FWD_MEMMOVE should be define on memcopy.h there is no need to specialized powerpc memmove implementation. This patch moves the define set to powerpc memcopy and cleanup its definition on powerpc code.
2014-08-28PowerPC: Fix compiler warningsAdhemerval Zanella4-3/+12
This patch fixes some compiler due trailing data in #undef directives and due missing prototypes.
2014-08-28PowerPC: Add ifunc tests for memmoveAdhemerval Zanella2-0/+11
This patch add the missing ifunc tests definition for memmove ppc32 optimization patch (commit 07aedd7). This is a backport of 91f4b564bd7bedcd93e7047cad570ce292d6330b.
2014-08-28PowerPC: Align power7 memcpy using VSX to quadwordAdhemerval Zanella3-20/+10
This patch changes power7 memcpy to use VSX instructions only when memory is aligned to quardword. It is to avoid unaligned kernel traps on non-cacheable memory (for instance, memory-mapped I/O).
2014-08-28PowerPC: optimized memmove for POWER7/PPC32Adhemerval Zanella5-1/+109
This patch adds a optimized memmove for power7 by using the optimized power7 memcpy for forward copying.
2014-08-28PowerPC: optimized memmove for POWER7/PPC64Adhemerval Zanella11-2/+1037
This patch adds an optimized memmove optimization for POWER7/powerpc64. Basically the idea is to use the memcpy for POWER7 on non-overlapped memory regions and a optimized backward memcpy for memory regions that overlap (similar to the idea of string/memmove.c). The backward memcpy algorithm used is similar the one use for memcpy for POWER7, with adjustments done for alignment. The difference is memory is always aligned to 16 bytes before using VSX/altivec instructions.
2014-08-28PowerPC: memmove default implementation cleanupAdhemerval Zanella2-98/+7
This patch removes the powerpc specific logic in memmove and instead include default implementation with MEMCPY_OK_FOR_FWD_MEMMOVE defined. This lead in a increase performance, since the constraints to use memcpy in powerpc code are too restrictive and memcpy can be used for any forward memmove. This is a backport of d6f68bbef4427850c2901728a1d13efc0e687297.
2014-08-28PowerPC: strcat optimization for PPC64/POWER7Vidya Ranganathan7-4/+118
This patch adds an ifunc power7 strcat symbol that uses the logic on sysdeps/powerpc/strcat.c but call power7 strlen/strcpy symbols instead of default ones. This is a backport of bc8ea38590070604006399e42469087e943fc8ec.
2014-08-28PowerPC: sync hwcap.h capabilitiesAdhemerval Zanella2-0/+7
Linux commit dd58a092c4202f2bd490adab7285b3ff77f8e467 added the PPC_FEATURE2_VEC_CRYPTO auvx capability to indicate whether to hardware supports vector crypto hardware instructions. This patch adds its definition to powerpc hwcap bits. This is a backport of db22400947e1c82153e5270d23fed53fc1e3a659.
2014-08-28PowerPC: Fix nearbyintl failure for few inputsRajalakshmi Srinivasaraghavan4-1/+23
This patch fixes few failures in nearbyintl() where the fraction part is close to 0.5.i The new tests added report few extra failures in nearbyint_downward and nearbyint_towardzero which is a known issue. Fixes #17031. This is a backport of 754c5a08aacb44895d1ab97c553ce424eb43f761.
2014-06-22posix_spawn_file_actions_addopen needs to copy the path argument (BZ 17048)Florian Weimer6-9/+54
POSIX requires that we make a copy, so we allocate a new string and free it in posix_spawn_file_actions_destroy. Reported by David Reid, Alex Gaynor, and Glyph Lefkowitz. This bug may have security implications. (cherry picked from commit 89e435f3559c53084498e9baad22172b64429362) Conflicts: NEWS
2014-06-11PowerPC: Optimized strcmp for PPC64/POWER7Vidya Ranganathan7-1/+329
Optimization is achieved on 8 byte aligned strings with double word comparison using cmpb instruction. On unaligned strings loop unrolling is applied for Power7 gain. It is a backport of e23d3d2690bf63207b1a47e83a94693daebbbfe5.
2014-06-06PowerPC: Fix optimized strncat strlen callAdhemerval Zanella2-1/+8
This patch fixes the optimized ppc64/power7 strncat strlen call for static build without ifunc enabled. The strlen symbol to call in such situation is just strlen, instead of __GI_strlen (since the __GI_ alias is just created for shared objects). It is a backport of ed36bfa18faf9be457575568e64b8409e46caa22.
2014-06-06PowerPC: Fix --disable-multi-arch buildsAdhemerval Zanella11-6/+31
This patch fixes some powerpc32 and powerpc64 builds with --disable-multi-arch option along with different --with-cpu=powerN. It cleanups the Implies directories by removing the multiarch folder for non multiarch config and also fixing two assembly implementations: powerpc64/power7/strncat.S that is calling the wrong strlen; and power8/fpu/s_isnan.S that misses the hidden_def and weak_alias directives. It is a backport of de21c33c068c8e39afb5711613a7c083c11ce6a1.
2014-06-03Fixed pthread_spin_lock on sparc32/64 (bug 16882)Guo Yixuan6-6/+126
[BZ #16882] * nptl/sysdeps/sparc/sparc32/pthread_spin_lock.S (pthread_spin_lock): Branch out of spin loop to proper location. * nptl/sysdeps/sparc/sparc64/pthread_spin_lock.S (pthread_spin_lock): Likewise. * nptl/tst-spin4.c: New test. * nptl/Makefile (tests): Add tst-spin4.
2014-05-26PowerPC: Remove 64 bits instructions in PPC32 codeAdhemerval Zanella9-16/+28
This patch replaces the insrdi by insrwi in powerpc32 assembly. It is a backport of d298c41635ce7f2dc7c3eccc842fe3aa754c0c8e.
2014-05-22PowerPC: Fix memchr ifunc hidden symbol for PPC32Adhemerval Zanella3-10/+21
This patch fixes a similar issue to 736c304a1ab4cee36a2f3343f1698bc0abae4608, where for PPC32 if the symbol is defined as hidden (memchr) then compiler will create a local branc (symbol@local) and the linker will not create a required PLT call to make the ifunc work. It changes the default hidden symbol (__GI_memchr) to default memchr symbol for powerpc32 (__memchr_ppc32). Backport of 3d2badacf185fac740a2992240a817fb2ca325af.
2014-05-21aarch64: Merge __local_multiple_threads offset with memory referenceRichard Henderson2-5/+10
This also highlights that we'd been loading 64-bits instead of the proper 32-bits. Caught by the linker as a relocation error, since the variable happened to be unaligned for 64-bits. Cherry-pick of a6b3657be6bc5067aeec98d990f60765361c6557.
2014-05-19PowerPC: Fix multiarch hypotf PPC64 pathAdhemerval Zanella2-0/+5
This patch moves the hypotf multiarch implementation to correct path.
2014-05-17Fix sparc memcpy data corruption when using niagara2 optimized routines.Jose E. Marchesi3-1/+8
* sysdeps/sparc/sparc64/multiarch/memcpy-niagara2.S: Add missing membar to avoid block loads/stores to overlap previous stores.
2014-05-16tzselect: use zonedir instead of current working directorySami Kerola2-1/+6
(cherry picked from commit 893b4f375668c025cbd6828f82a8844edda276d1) (cherry picked from commit c72399fbc5228580a560d8fe319ff98150928b05) Conflicts: timezone/Makefile
2014-05-16Update Swedish translationsAllan McRae2-6/+10
(cherry picked from commit d51d659d114e2edb0037b2af45d6ee36458e48d1)
2014-05-16SPARC: add prlimit and prlimit64 in <bits/resource.h> (BZ #16943)Aurelien Jarno3-1/+35
prlimit and prlimit64 have been added in the main <bits/resource.h>, but not in the SPARC specific version. Fix that. Note: this is Debian bug#703559, reported by Emilio Pozuelo Monfort <pochu@debian.org> (cherry picked from commit d16e6ec7ca2c861ba681e3a2fbd431725774292e)
2014-05-07SPARC: add EFD_SEMAPHORE in <bits/eventfd.h> (BZ #16916)Aurelien Jarno3-1/+9
EFD_SEMAPHORE has been added in the main <bits/eventfd.h>, but not in the SPARC specific version. Fix that. (cherry picked from commit 83df9ad0cc861ef24f08a88c5a4c055e2516d33c)
2014-05-06PowerPC: strncpy/stpncpy optimization for PPC64/POWER7Vidya Ranganathan11-1/+610
The optimization is achieved by following techniques: > data alignment [gain from aligned memory access on read/write] > POWER7 gains performance with loop unrolling/unwinding [gain by reduction of branch penalty]. > zero padding done by calling optimized memset
2014-05-05PowerPC: ifunc improvement for internal callsAdhemerval Zanella8-26/+64
This patch changes de default symbol redirection for internal call of memcpy, memset, memchr, and strlen to the IFUNC resolved ones. The performance improvement is noticeable in algorithms that uses these symbols extensible, like the regex functions. This is a backport of 19c4bec0f43599eecc2f32de96ae179cd7d64053.
2014-05-04misc/sys/xattr.h: guard against linux uapi header inclusionSerge Hallyn1-0/+2
If the glibc xattr.h header is included after the uapi header, compilation fails due to an enum re-using a #define from the uapi header. Protect against this by guarding the define and enum inclusions against each other. (A corresponding kernel patch has been sent here: http://lkml.org/lkml/2014/3/7/331 ) (See https://lists.debian.org/debian-glibc/2014/03/msg00029.html and https://sourceware.org/glibc/wiki/Synchronizing_Headers for more information.) Signed-off-by: Serge Hallyn <serge.hallyn@ubuntu.com> (cherry picked from commit fdbe8eae2b9aed74dabba1b0a189c5d7d61bf032)
2014-05-04Update Esperanto translationsAllan McRae2-11/+15
(cherry picked from commit d69aeb123961252ddd2a23acc7dc9ce0ae2cfa5f)