]> git.ipfire.org Git - thirdparty/glibc.git/log
thirdparty/glibc.git
10 years agoFix stack overflow in getaddrinfo with many results ibm/2.16/master
Andreas Schwab [Thu, 21 Mar 2013 14:50:27 +0000 (15:50 +0100)] 
Fix stack overflow in getaddrinfo with many results

Conflicts:
NEWS

10 years agoFix invalid file descriptor reuse while sending DNS query (BZ #15946)
Andreas Schwab [Mon, 26 May 2014 16:01:31 +0000 (18:01 +0200)] 
Fix invalid file descriptor reuse while sending DNS query (BZ #15946)

Conflicts:
NEWS

10 years agoCVE-2015-1472: wscanf allocates too little memory
Paul Pluzhnikov [Fri, 6 Feb 2015 05:30:42 +0000 (00:30 -0500)] 
CVE-2015-1472: wscanf allocates too little memory

BZ #16618

Under certain conditions wscanf can allocate too little memory for the
to-be-scanned arguments and overflow the allocated buffer.  The
implementation now correctly computes the required buffer size when
using malloc.

A regression test was added to tst-sscanf.

Conflicts:
ChangeLog
NEWS
stdio-common/tst-sscanf.c

10 years agoFix parsing of numeric hosts in gethostbyname_r
Andreas Schwab [Mon, 21 Jan 2013 16:41:28 +0000 (17:41 +0100)] 
Fix parsing of numeric hosts in gethostbyname_r

Conflicts:
ChangeLog
NEWS

10 years agoReturn EAI_SYSTEM if we're out of file descriptors
Siddhesh Poyarekar [Mon, 19 Nov 2012 07:31:43 +0000 (13:01 +0530)] 
Return EAI_SYSTEM if we're out of file descriptors

Resolves BZ #14719.

Conflicts:
ChangeLog
NEWS

10 years agoPowerPC: Fix POINTER_CHK_GUARD thread register for PPC64
Adhemerval Zanella [Wed, 25 Sep 2013 18:43:04 +0000 (13:43 -0500)] 
PowerPC: Fix POINTER_CHK_GUARD thread register for PPC64

10 years agoPowerPC: Fix gettimeofday ifunc selection
Adhemerval Zanella [Mon, 20 Jan 2014 18:29:51 +0000 (12:29 -0600)] 
PowerPC: Fix gettimeofday ifunc selection

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.

10 years agoPowerPC: Fix ftime gettimeofday internal call returning bogus data
Adhemerval Zanella [Thu, 16 Jan 2014 12:53:18 +0000 (06:53 -0600)] 
PowerPC: Fix ftime gettimeofday internal call returning bogus data

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.

10 years agoPowerPC: Fix vDSO missing ODP entries
Adhemerval Zanella [Thu, 7 Nov 2013 11:34:22 +0000 (05:34 -0600)] 
PowerPC: Fix vDSO missing ODP entries

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.

10 years agoCVE-2014-7817: wordexp fails to honour WRDE_NOCMD.
Carlos O'Donell [Wed, 19 Nov 2014 16:44:12 +0000 (11:44 -0500)] 
CVE-2014-7817: wordexp fails to honour WRDE_NOCMD.

The function wordexp() fails to properly handle the WRDE_NOCMD
flag when processing arithmetic inputs in the form of "$((... ``))"
where "..." can be anything valid. The backticks in the arithmetic
epxression are evaluated by in a shell even if WRDE_NOCMD forbade
command substitution. This allows an attacker to attempt to pass
dangerous commands via constructs of the above form, and bypass
the WRDE_NOCMD flag. This patch fixes this by checking for WRDE_NOCMD
in exec_comm(), the only place that can execute a shell. All other
checks for WRDE_NOCMD are superfluous and removed.

We expand the testsuite and add 3 new regression tests of roughly
the same form but with a couple of nested levels.

On top of the 3 new tests we add fork validation to the WRDE_NOCMD
testing. If any forks are detected during the execution of a wordexp()
call with WRDE_NOCMD, the test is marked as failed. This is slightly
heuristic since vfork might be used in the future, but it provides a
higher level of assurance that no shells were executed as part of
command substitution with WRDE_NOCMD in effect. In addition it doesn't
require libpthread or libdl, instead we use the public implementation
namespace function __register_atfork (already part of the public ABI
for libpthread).

Tested on x86_64 with no regressions.

10 years agoLabel CVE-2014-9402 in NEWS
Allan McRae [Thu, 18 Dec 2014 01:01:43 +0000 (11:01 +1000)] 
Label CVE-2014-9402 in NEWS

10 years agoAvoid infinite loop in nss_dns getnetbyname [BZ #17630]
Florian Weimer [Mon, 15 Dec 2014 16:41:13 +0000 (17:41 +0100)] 
Avoid infinite loop in nss_dns getnetbyname [BZ #17630]

10 years agoCVE-2012-3406: Stack overflow in vfprintf [BZ #16617]
Jeff Law [Mon, 15 Dec 2014 09:09:32 +0000 (10:09 +0100)] 
CVE-2012-3406: Stack overflow in vfprintf [BZ #16617]

A larger number of format specifiers coudld cause a stack overflow,
potentially allowing to bypass _FORTIFY_SOURCE format string
protection.

10 years agoMention CVE-2014-4043 in NEWS
Allan McRae [Sat, 21 Jun 2014 07:23:55 +0000 (17:23 +1000)] 
Mention CVE-2014-4043 in NEWS

10 years agoposix_spawn_file_actions_addopen needs to copy the path argument (BZ 17048)
Florian Weimer [Thu, 15 Jan 2015 20:16:54 +0000 (15:16 -0500)] 
posix_spawn_file_actions_addopen needs to copy the path argument (BZ 17048)

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.

10 years ago_nl_find_locale: Improve handling of crafted locale names [BZ #17137]
Florian Weimer [Mon, 12 May 2014 13:24:12 +0000 (15:24 +0200)] 
_nl_find_locale: Improve handling of crafted locale names [BZ #17137]

Prevent directory traversal in locale-related environment variables
(CVE-2014-0475).

10 years ago__gconv_translit_find: Disable function [BZ #17187]
Florian Weimer [Tue, 26 Aug 2014 17:38:59 +0000 (19:38 +0200)] 
__gconv_translit_find: Disable function [BZ #17187]

This functionality has never worked correctly, and the implementation
contained a security vulnerability (CVE-2014-5119).

10 years agoCVE-2014-6040: Crashes on invalid input in IBM gconv modules [BZ #17325]
Florian Weimer [Wed, 3 Sep 2014 17:45:43 +0000 (19:45 +0200)] 
CVE-2014-6040: Crashes on invalid input in IBM gconv modules [BZ #17325]

These changes are based on the fix for BZ #14134 in commit
6e230d11837f3ae7b375ea69d7905f0d18eb79e5.

10 years agoAdd CVE-2013-4332 to NEWS.
Will Newton [Fri, 13 Sep 2013 08:26:02 +0000 (09:26 +0100)] 
Add CVE-2013-4332 to NEWS.

10 years agomalloc: Check for integer overflow in memalign.
Will Newton [Fri, 16 Aug 2013 11:54:29 +0000 (12:54 +0100)] 
malloc: Check for integer overflow in memalign.

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.

10 years agomalloc: Check for integer overflow in valloc.
Will Newton [Fri, 16 Aug 2013 10:59:37 +0000 (11:59 +0100)] 
malloc: Check for integer overflow in valloc.

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.

10 years agomalloc: Check for integer overflow in pvalloc.
Will Newton [Mon, 12 Aug 2013 14:08:02 +0000 (15:08 +0100)] 
malloc: Check for integer overflow in pvalloc.

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.

10 years agoCVE-2013-4237, BZ #14699: Buffer overflow in readdir_r
Florian Weimer [Fri, 16 Aug 2013 07:38:52 +0000 (09:38 +0200)] 
CVE-2013-4237, BZ #14699: Buffer overflow in readdir_r

* 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.

10 years agoBZ #15754: CVE-2013-4788
Carlos O'Donell [Mon, 23 Sep 2013 04:52:09 +0000 (00:52 -0400)] 
BZ #15754: CVE-2013-4788

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.

10 years agoCheck for integer overflow in cache size computation in strcoll
Siddhesh Poyarekar [Mon, 23 Sep 2013 05:54:30 +0000 (11:24 +0530)] 
Check for integer overflow in cache size computation in strcoll

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.

10 years agoFall back to non-cached sequence traversal and comparison on malloc fail
Siddhesh Poyarekar [Mon, 23 Sep 2013 05:50:02 +0000 (11:20 +0530)] 
Fall back to non-cached sequence traversal and comparison on malloc fail

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.

10 years agoSimplify strcoll implementation
Siddhesh Poyarekar [Tue, 20 Aug 2013 03:10:05 +0000 (08:40 +0530)] 
Simplify strcoll implementation

Break up strcoll into simpler functions so that the logic is easier to
follow and maintain.

10 years agoFix stack overflow due to large AF_INET6 requests
Siddhesh Poyarekar [Fri, 25 Oct 2013 04:52:12 +0000 (10:22 +0530)] 
Fix stack overflow due to large AF_INET6 requests

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.

10 years agoFix buffer overrun in regexp matcher
Andreas Schwab [Tue, 29 Jan 2013 13:45:15 +0000 (14:45 +0100)] 
Fix buffer overrun in regexp matcher

10 years agoCVE-2013-2207, BZ #15755: Disable pt_chown.
Carlos O'Donell [Fri, 19 Jul 2013 06:42:03 +0000 (02:42 -0400)] 
CVE-2013-2207, BZ #15755: Disable pt_chown.

The helper binary pt_chown tricked into granting access to another
user's pseudo-terminal.

Pre-conditions for the attack:

 * Attacker with local user account
 * Kernel with FUSE support
 * "user_allow_other" in /etc/fuse.conf
 * Victim with allocated slave in /dev/pts

Using the setuid installed pt_chown and a weak check on whether a file
descriptor is a tty, an attacker could fake a pty check using FUSE and
trick pt_chown to grant ownership of a pty descriptor that the current
user does not own.  It cannot access /dev/pts/ptmx however.

In most modern distributions pt_chown is not needed because devpts
is enabled by default. The fix for this CVE is to disable building
and using pt_chown by default. We still provide a configure option
to enable hte use of pt_chown but distributions do so at their own
risk.

Cherry-pick of e4608715e6e1dd2adc91982fd151d5ba4f761d69.

10 years ago [BZ #14889]
Jeff Law [Wed, 28 Nov 2012 21:12:28 +0000 (14:12 -0700)] 
   [BZ #14889]
        * sunrpc/rpc/svc.h (__svc_accept_failed): New prototype.
        * sunrpc/svc.c: Include time.h.
        (__svc_accept_failed): New function.
        * sunrpc/svc_tcp.c (rendezvous_request): If the accept fails for
        any reason other than EINTR, call __svc_accept_failed.
        * sunrpc/svc_udp.c (svcudp_recv): Similarly.
        * sunrpc/svc_unix.c (rendezvous_request): Similarly.

Cherry-pick of 14bc93a967e62abf8cf2704725b6f76619399f83

12 years agoProperly handle indirect functions in ABI check on powerpc64
Andreas Schwab [Wed, 28 Nov 2012 09:24:06 +0000 (10:24 +0100)] 
Properly handle indirect functions in ABI check on powerpc64

12 years agoPowerPC: modf optimization fix
Adhemerval Zanella [Fri, 26 Apr 2013 18:00:56 +0000 (13:00 -0500)] 
PowerPC: modf optimization fix

This patch fix the 3c0265394d9ffedff2b0de508602dc52e077ce5c commits
by correctly setting minimum architecture for modf PPC optimization
to power5+ instead of power5 (since only on power5+ round/ceil will
be inline to inline assembly).

12 years agoPowerPC: modf optimization
Adhemerval Zanella [Mon, 25 Mar 2013 21:10:06 +0000 (16:10 -0500)] 
PowerPC: modf optimization

This patch implements modf/modff optimization for POWER by focus
on FP operations instead of relying in integer ones.

12 years agoPowerPC: Change sched_getcpu to use vDSO getcpu instead of syscall.
Adhemerval Zanella [Wed, 13 Mar 2013 13:46:08 +0000 (10:46 -0300)] 
PowerPC: Change sched_getcpu to use vDSO getcpu instead of syscall.

Backport of d5e0b9bd6e296f3ec5263fa296d39f3fed9b8fa2.

12 years agoPowerPC: gettimeofday optimization by using IFUNC
Adhemerval Zanella [Tue, 5 Mar 2013 01:02:41 +0000 (22:02 -0300)] 
PowerPC: gettimeofday optimization by using IFUNC

12 years agoMerge remote branch 'remotes/origin/release/2.16/master' into local_ibm_2.16
Ryan S. Arnold [Fri, 1 Mar 2013 22:20:18 +0000 (16:20 -0600)] 
Merge remote branch 'remotes/origin/release/2.16/master' into local_ibm_2.16

12 years agobyteswap.h: fix gcc ver test for __builtin_bswap{32,64}
Mike Frysinger [Thu, 29 Nov 2012 04:04:32 +0000 (23:04 -0500)] 
byteswap.h: fix gcc ver test for __builtin_bswap{32,64}

The __builtin_bswap* functions were introduced in gcc-4.3, not gcc-4.2.
Fix the __GNUC_PREREQ tests to reflect this.

Otherwise trying to compile code with gcc-4.2 falls down:
In file included from /usr/include/endian.h:60,
                 from /usr/include/ctype.h:40,
/usr/include/bits/byteswap.h: In function 'unsigned int __bswap_32(unsigned int)':
/usr/include/bits/byteswap.h:46: error: '__builtin_bswap32' was not declared in this scope
/usr/include/bits/byteswap.h: In function 'long long unsigned int __bswap_64(long long unsigned int)':
/usr/include/bits/byteswap.h:110: error: '__builtin_bswap64' was not declared in this scope

Signed-off-by: Mike Frysinger <vapier@gentoo.org>
(cherry picked from commit c9d6789ebe028a260d3e5be0c26b7d02fdfe99fe)

12 years agoFix __bswap_64 return type in generic bits/byteswap.h.
Joseph Myers [Tue, 20 Nov 2012 00:04:45 +0000 (00:04 +0000)] 
Fix __bswap_64 return type in generic bits/byteswap.h.
(cherry picked from commit ecd4caf9783c99fb068a100c35899a0c3a3c6d98)

12 years agoUse __uint64_t in x86 __bswap_64
H.J. Lu [Fri, 12 Oct 2012 16:21:47 +0000 (09:21 -0700)] 
Use __uint64_t in x86 __bswap_64
(cherry picked from commit d394eb742a3565d7fe7a4b02710a60b5f219ee64)

12 years agoRevert "2012-11-07 Andreas Jaeger <aj@suse.de>"
Andreas Schwab [Tue, 27 Nov 2012 15:45:36 +0000 (16:45 +0100)] 
Revert "2012-11-07  Andreas Jaeger  <aj@suse.de>"

This reverts commit 68b6636fdc3d5b940d9be060e1f429b6eaa93709.

The issue has been fixed in the kernel.

12 years agosysdeps/sh/dl-machine.h: Define ELF_MACHINE_RUNTIME_FIXUP_PARAMS.
Thomas Schwinge [Tue, 20 Nov 2012 18:29:23 +0000 (19:29 +0100)] 
sysdeps/sh/dl-machine.h: Define ELF_MACHINE_RUNTIME_FIXUP_PARAMS.

Cherry-pick commit d072f3f7724d85ceaf230806660235f0cf2f9c3b

Conflicts:
ChangeLog

12 years agoSkip audit if l_reloc_result is NULL
H.J. Lu [Wed, 14 Nov 2012 23:44:40 +0000 (15:44 -0800)] 
Skip audit if l_reloc_result is NULL

Cherry-pick commit 2e64d2659d3edaebc792ac596a9863f1626e5c25

Conflicts:
ChangeLog
NEWS

12 years ago2012-11-07 Andreas Jaeger <aj@suse.de>
Jeff Law [Wed, 7 Nov 2012 18:58:37 +0000 (11:58 -0700)] 
2012-11-07  Andreas Jaeger  <aj@suse.de>

        [BZ #14809]
        * sysdeps/unix/sysv/linux/sys/sysctl.h (_UAPI_LINUX_KERNEL_H)
        (_UAPI_LINUX_TYPES_H): Starting with Linux 3.7, the include header
        guards are changed.  Only define if not yet defined, #undef back
        after including linux/sysctl.h if defined here.
(cherry picked from commit 01f34a3bd8c087ca4be0bd24857e454c8d29f20b)

Conflicts:
NEWS

12 years agoFix missing _mcount@GLIBC_2.0 on powerpc32
Andreas Schwab [Tue, 1 May 2012 15:10:10 +0000 (17:10 +0200)] 
Fix missing _mcount@GLIBC_2.0 on powerpc32

(cherry picked from commit 261f485936b283f4327fc1f2fc8fd1705d805c12)

12 years agoDefine HAS_FMA with bit_FMA_Usable
H.J. Lu [Tue, 2 Oct 2012 12:05:17 +0000 (05:05 -0700)] 
Define HAS_FMA with bit_FMA_Usable

cherry-pick 0569936773c861c791f10bba5e2f4cac5fbb4e78

Conflicts:
ChangeLog
NEWS

12 years agoDon't parse %s format argument as multibyte string
Jeff Law [Fri, 28 Sep 2012 18:48:42 +0000 (12:48 -0600)] 
Don't parse %s format argument as multibyte string

(cherry picked from commit 715a900c9085907fa749589bf738b192b1a2bda5)

2012-09-28  Andreas Schwab  <schwab@linux-m68k.org>

[BZ #6530]
* stdio-common/vfprintf.c (process_string_arg): Revert
2000-07-22 change.

2011-09-28  Jonathan Nieder  <jrnieder@gmail.com>

* stdio-common/Makefile (tst-sprintf-ENV): Set environment
for testcase.
* stdio-common/tst-sprintf.c: Include <locale.h>
(main): Test sprintf's handling of incomplete multibyte
characters.

12 years agoUse size_t instead of int for internal variables in glob (bug 14621).
Joseph Myers [Tue, 25 Sep 2012 19:38:15 +0000 (19:38 +0000)] 
Use size_t instead of int for internal variables in glob (bug 14621).
(cherry picked from commit b87c4b24d97321ef2f2da357f8fcf11f1f61e3dc)

Conflicts:

ChangeLog

12 years agoProperly handle fencepost with MALLOC_ALIGN_MASK
H.J. Lu [Mon, 24 Sep 2012 15:58:04 +0000 (08:58 -0700)] 
Properly handle fencepost with MALLOC_ALIGN_MASK

Cherry-pick commit ced6f16ee919d12725840d43d007f1cfd67118df.

Conflicts:
ChangeLog
NEWS

12 years agoUse LD_SO to set $ld_so_name/$ld_so_version
H.J. Lu [Wed, 29 Aug 2012 13:45:37 +0000 (06:45 -0700)] 
Use LD_SO to set $ld_so_name/$ld_so_version

cherry-pick d22e28b070d3d1572d39a463d711c6f223078552

Conflicts:
ChangeLog
NEWS

12 years agoFix strtod integer/buffer overflow (bug 14459).
Joseph Myers [Mon, 27 Aug 2012 15:59:24 +0000 (15:59 +0000)] 
Fix strtod integer/buffer overflow (bug 14459).
(cherry picked from commit d6e70f4368533224e66d10b7f2126b899a3fd5e4)

Conflicts:

ChangeLog
NEWS
stdlib/Makefile

12 years agoFix segmentation fault in strncasecmp for i686
Liubov Dmitrieva [Wed, 15 Aug 2012 19:06:55 +0000 (21:06 +0200)] 
Fix segmentation fault in strncasecmp for i686

2012-08-15  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>

[BZ #14195]
        * sysdeps/i386/i686/multiarch/strcmp-sssse3.S: Fix
        segmentation fault for a case of two empty input strings.
* string/test-strncasecmp.c (check1): Renamed to...
(bz12205): ...this.
(bz14195): Add new testcase for two empty input strings and N > 0.
(test_main): Call new testcase, adapt for renamed function.
(cherry picked from commit b3f479a85a3e191befbe821d787d7f71c0f64e79)

12 years agosunrpc: fix rpc bootstrap builds
Mike Frysinger [Tue, 3 Jul 2012 19:22:05 +0000 (15:22 -0400)] 
sunrpc: fix rpc bootstrap builds

If you build & install glibc w/rpc disabled, you no longer have headers in
/usr/include/rpc/ (this is expected).  But if you try to build glibc w/rpc
enabled, this gets into a bad state due to the new rpc helpers that get
cross-compiled:

$ make
...
x86_64-pc-linux-gnu-gcc -m32   -D_RPC_THREAD_SAFE_ -D_GNU_SOURCE -DIS_IN_build \
-include $objdir/config.h rpc_clntout.c -o $objdir/sunrpc/cross-rpc_clntout.o \
-MMD -MP -MF $objdir/sunrpc/cross-rpc_clntout.o.dt -MT $objdir/sunrpc/cross-rpc_clntout.o -c
rpc_clntout.c:34:23: fatal error: rpc/types.h: No such file or directory
compilation terminated.
make: *** [$objdir/sunrpc/cross-rpc_clntout.o] Error 1

Signed-off-by: Mike Frysinger <vapier@gentoo.org>
(cherry picked from commit fb21f89b75d0152aa42efb6b620843799a4cd76b)

13 years agoFix missing _mcount@GLIBC_2.0 on powerpc32
Andreas Schwab [Tue, 1 May 2012 15:10:10 +0000 (17:10 +0200)] 
Fix missing _mcount@GLIBC_2.0 on powerpc32
(cherry picked from commit 261f485936b283f4327fc1f2fc8fd1705d805c12)

13 years agoUpdate from translation team
Andreas Jaeger [Mon, 16 Jul 2012 07:38:55 +0000 (09:38 +0200)] 
Update from translation team
(cherry picked from commit dd31893430a76e81cbd8b5412c5894f27bab39c7)

13 years agoUpdate from french translation team
Andreas Jaeger [Fri, 13 Jul 2012 15:50:05 +0000 (17:50 +0200)] 
Update from french translation team
(cherry picked from commit b637d46e7a900f516849487a5c4de734d4b3020d)

13 years agoTranslation team update for fr.po/sv.po
Andreas Jaeger [Wed, 11 Jul 2012 18:41:25 +0000 (20:41 +0200)] 
Translation team update for fr.po/sv.po
(cherry picked from commit 71220acad5c72ecae8679e48502ab706bd908cc5)

13 years agoUpdate from translation team: fr.po
Andreas Jaeger [Wed, 11 Jul 2012 14:18:17 +0000 (16:18 +0200)] 
Update from translation team: fr.po
(cherry picked from commit 608404ebf64fa02c8aaf2778b1bf00d5a0292d1a)

13 years agoAdapt tst-catgets to changes in tst-gettext
Andreas Schwab [Wed, 4 Jul 2012 13:57:51 +0000 (15:57 +0200)] 
Adapt tst-catgets to changes in tst-gettext
(cherry picked from commit 704bc4594dc1fad46831823627749fa10924b41d)

13 years agoFix tst-gettext test
Andreas Schwab [Wed, 4 Jul 2012 12:16:05 +0000 (14:16 +0200)] 
Fix tst-gettext test
(cherry picked from commit 70d35b6769c1739719101957de77387e48192f74)

13 years agoAdd AT_PLATFORM env variable to ld.so to override auxv AT_PLATFORM.
Peter Bergner [Fri, 6 Jul 2012 18:24:49 +0000 (13:24 -0500)] 
Add AT_PLATFORM env variable to ld.so to override auxv AT_PLATFORM.

13 years agoRemove assert() if DT_RUNPATH and DT_RPATH flags are found in ld.so.
Ryan S. Arnold [Fri, 6 Jul 2012 18:03:09 +0000 (13:03 -0500)] 
Remove assert() if DT_RUNPATH and DT_RPATH flags are found in ld.so.

13 years agoUpdate from translation teams
Andreas Jaeger [Tue, 3 Jul 2012 19:43:55 +0000 (21:43 +0200)] 
Update from translation teams
(cherry picked from commit 9d63d37d08b9fea0b664c80829bd8f9e3e0edc48)

13 years agoRelease 2.16 glibc-2.16.0
Carlos O'Donell [Sat, 30 Jun 2012 19:12:34 +0000 (12:12 -0700)] 
Release 2.16

Update version.h and include/features.h for 2.16 release.

13 years agoUpdate NEWS and README. glibc-2.16
Carlos O'Donell [Sat, 30 Jun 2012 15:27:06 +0000 (08:27 -0700)] 
Update NEWS and README.

Final update for 2.16 release.

13 years agomanual/contrib.texi (Contributors): Sort alphabetically by last name.
Thomas Schwinge [Thu, 28 Jun 2012 08:50:08 +0000 (10:50 +0200)] 
manual/contrib.texi (Contributors): Sort alphabetically by last name.

13 years agoAdd Samuel Thibault to manual/contrib.texi
Andreas Jaeger [Wed, 27 Jun 2012 17:50:07 +0000 (19:50 +0200)] 
Add Samuel Thibault to manual/contrib.texi

13 years agoUpdate s390 ULPs file
Andreas Jaeger [Mon, 25 Jun 2012 08:28:03 +0000 (10:28 +0200)] 
Update s390 ULPs file

13 years agoSH can do fanotify_mark, too. glibc-2.16-tps
Andreas Schwab [Sat, 9 Jun 2012 17:08:54 +0000 (19:08 +0200)] 
SH can do fanotify_mark, too.

13 years agoSome missing bits from sysdeps/*/elf dismissal.
Thomas Schwinge [Sat, 23 Jun 2012 10:27:58 +0000 (12:27 +0200)] 
Some missing bits from sysdeps/*/elf dismissal.

This fixes up commits 735095ae9566b2b14e8210e5ed44b3d5b51495f1,
09ae94c11b4309b425fbbfaa095e64cac2ae8cb8, and
ff962fb6a10c46052535d482c889b3a9e5236637.

13 years agoSH: __lll_robust_timedlock_wait: Simplify CFI directives.
Thomas Schwinge [Sat, 23 Jun 2012 10:17:44 +0000 (12:17 +0200)] 
SH: __lll_robust_timedlock_wait: Simplify CFI directives.

13 years agoSH: Preserve more registers for frame unwinding purposes, add CFI directives.
Thomas Schwinge [Sat, 23 Jun 2012 10:11:13 +0000 (12:11 +0200)] 
SH: Preserve more registers for frame unwinding purposes, add CFI directives.

13 years agoSH: Optimize assembler code in context of call to __fortify_fail.
Thomas Schwinge [Sat, 23 Jun 2012 10:07:04 +0000 (12:07 +0200)] 
SH: Optimize assembler code in context of call to __fortify_fail.

__fortify_fail has »__attribute__ ((__noreturn__))«.

13 years agoSH: ____longjmp_chk for GNU/Linux with sigaltstack support.
Thomas Schwinge [Sat, 23 Jun 2012 09:56:02 +0000 (11:56 +0200)] 
SH: ____longjmp_chk for GNU/Linux with sigaltstack support.

debug/tst-longjmp_chk2 now passes.

13 years agoSH: ABORT_INSTRUCTION.
Thomas Schwinge [Sat, 23 Jun 2012 09:47:39 +0000 (11:47 +0200)] 
SH: ABORT_INSTRUCTION.

13 years agoSH: makecontext/.Lexitcode: Always initialize the GOT register before use.
Thomas Schwinge [Sat, 23 Jun 2012 09:42:29 +0000 (11:42 +0200)] 
SH: makecontext/.Lexitcode: Always initialize the GOT register before use.

This is only relevant when returning from a context with »uc_link == NULL«,
which is not exercised in the testsuite.

13 years agoSH: makecontext: Fix calculation of ARGC > 4.
Thomas Schwinge [Sat, 23 Jun 2012 09:28:23 +0000 (11:28 +0200)] 
SH: makecontext: Fix calculation of ARGC > 4.

stdlib/tst-setcontext and stdlib/tst-makecontext3 now pass.

13 years agoSH: makecontext: Improve understandability.
Thomas Schwinge [Sat, 23 Jun 2012 09:22:47 +0000 (11:22 +0200)] 
SH: makecontext: Improve understandability.

13 years agoFix gUSA sequence in SH atomic functions in
Kaz Kojima [Fri, 22 Jun 2012 22:29:05 +0000 (07:29 +0900)] 
Fix gUSA sequence in SH atomic functions in
sysdeps/unix/sysv/linux/sh/bits/atomic.h.

13 years agoFix invalid memory access in do_lookup_x.
Andreas Schwab [Fri, 22 Jun 2012 18:10:31 +0000 (11:10 -0700)] 
Fix invalid memory access in do_lookup_x.

[BZ #13579] Do not free l_initfini and allow it to be reused
on subsequent dl_open calls for the same library. This fixes
the invalid memory access in do_lookup_x when the previously
free'd l_initfini was accessed through l_searchlist when a
library had been opened for the second time.

13 years agoUse AC_LANG_SOURCE to fix autoconf warnings.
Carlos O'Donell [Fri, 22 Jun 2012 14:58:19 +0000 (14:58 +0000)] 
Use AC_LANG_SOURCE to fix autoconf warnings.

13 years agoUse tab not spaces.
Carlos O'Donell [Fri, 22 Jun 2012 14:52:50 +0000 (14:52 +0000)] 
Use tab not spaces.

13 years agoRespect --localstatedir for /var/db parent directory.
Roland McGrath [Fri, 22 Jun 2012 17:11:07 +0000 (10:11 -0700)] 
Respect --localstatedir for /var/db parent directory.

13 years agoUpdate copyright years
Jeff Law [Thu, 21 Jun 2012 23:16:15 +0000 (17:16 -0600)] 
Update copyright years

13 years ago [BZ #14277]
Jeff Law [Thu, 21 Jun 2012 23:15:38 +0000 (17:15 -0600)] 
    [BZ #14277]
        * intl/dcigettext.c (_nl_find_msg): Avoid use after potential
        free.  Simplify list management for _LIBC case.

13 years agoFix wordsize-64 cosh regression (bug 14273).
Joseph Myers [Thu, 21 Jun 2012 19:26:09 +0000 (19:26 +0000)] 
Fix wordsize-64 cosh regression (bug 14273).

13 years agoRegenerate sysdeps/mach/configure.
Joseph Myers [Thu, 21 Jun 2012 19:20:33 +0000 (19:20 +0000)] 
Regenerate sysdeps/mach/configure.

13 years agoMention BZ #14278 in NEWS
H.J. Lu [Thu, 21 Jun 2012 17:30:14 +0000 (10:30 -0700)] 
Mention BZ #14278 in NEWS

13 years agoFix a typo in i386 SYSCALL_PIC_SETUP
H.J. Lu [Thu, 21 Jun 2012 17:17:07 +0000 (10:17 -0700)] 
Fix a typo in i386 SYSCALL_PIC_SETUP

13 years ago2012-06-21 Jeff Law <law@redhat.com>
Jeff Law [Thu, 21 Jun 2012 15:26:41 +0000 (09:26 -0600)] 
2012-06-21  Jeff Law  <law@redhat.com>

        [BZ #13882]
        * elf/dl-deps.c (_dl_map_object_deps): Fix cycle detection.  Use
        uint16_t for elements in the "seen" array to avoid char overflows.
        * elf/dl-fini.c (_dl_sort_fini): Likewise.
        * elf/dl-open.c (dl_open_worker): Likewise.

13 years agoAdd ChangeLog ...
Carlos O'Donell [Thu, 21 Jun 2012 15:04:35 +0000 (08:04 -0700)] 
Add ChangeLog ...

... for feca660a796e5782498bd6d6673999d9e26b5f4d.

13 years agoRegenerate libc.pot.
Carlos O'Donell [Thu, 21 Jun 2012 14:58:27 +0000 (07:58 -0700)] 
Regenerate libc.pot.

Enhance scripts/list-sources.sh to search glibc-ports
for translatable strings.

13 years agoFix typo in name
Andreas Jaeger [Thu, 21 Jun 2012 14:45:27 +0000 (16:45 +0200)] 
Fix typo in name

13 years agoAvoid -Wconversion warning for htons
Andreas Jaeger [Thu, 21 Jun 2012 13:49:33 +0000 (15:49 +0200)] 
Avoid -Wconversion warning for htons

13 years agolocales/tr_CY: LC_TIME with copy cannot contain additional data
Petr Baudis [Wed, 20 Jun 2012 15:29:47 +0000 (17:29 +0200)] 
locales/tr_CY: LC_TIME with copy cannot contain additional data

Luckily, tr_TR also sets first_weekday and first_workday to Monday,
so this is just not necessary.

13 years agolocales/mag_IN: Fix syntax error
Petr Baudis [Wed, 20 Jun 2012 15:29:08 +0000 (17:29 +0200)] 
locales/mag_IN: Fix syntax error

13 years agoAccount for the extra stack size when rlimit is small enough
Siddhesh Poyarekar [Wed, 20 Jun 2012 07:33:13 +0000 (13:03 +0530)] 
Account for the extra stack size when rlimit is small enough

When rlimit is small enough to be used as the stacksize to be returned
in pthread_getattr_np, cases where a stack is made executable due to a
DSO load get stack size that is larger than what the kernel
allows. This is because in such a case the stack size does not account
for the pages that have auxv and program arguments.

Additionally, the stacksize for the process derived from this should
be truncated to align to page size to avoid going beyond rlimit.

13 years agoUse x86-64 fpu_control.h for i386 and x86_64
H.J. Lu [Mon, 18 Jun 2012 18:43:51 +0000 (11:43 -0700)] 
Use x86-64 fpu_control.h for i386 and x86_64

13 years agoUse __volatile__ to access fpu control word
H.J. Lu [Mon, 18 Jun 2012 18:09:58 +0000 (11:09 -0700)] 
Use __volatile__ to access fpu control word

13 years agoUpdate news for fixed alpha bz
Richard Henderson [Fri, 15 Jun 2012 21:42:57 +0000 (14:42 -0700)] 
Update news for fixed alpha bz