[glibc] 01/01: Update from upstream stable branch:

2017-02-20 Thread Aurelien Jarno
This is an automated email from the git hooks/post-receive script.

aurel32 pushed a commit to branch jessie
in repository glibc.

commit b26c084f6eba0057b1cd93e0caf424a1d06bd97e
Author: Aurelien Jarno 
Date:   Mon Feb 20 23:32:25 2017 +0100

Update from upstream stable branch:

* Update from upstream stable branch:
  - Fix PowerPC sqrt inaccuracy.  Closes: #855606.
---
 debian/changelog|  8 +
 debian/patches/git-updates.diff | 79 -
 2 files changed, 79 insertions(+), 8 deletions(-)

diff --git a/debian/changelog b/debian/changelog
index fdbdcc3..ffbd139 100644
--- a/debian/changelog
+++ b/debian/changelog
@@ -1,3 +1,11 @@
+glibc (2.19-18+deb8u8) UNRELEASED; urgency=medium
+
+  [ Aurelien Jarno ]
+  * Update from upstream stable branch:
+- Fix PowerPC sqrt inaccuracy.  Closes: #855606.
+
+ -- Aurelien Jarno   Mon, 20 Feb 2017 23:30:47 +0100
+
 glibc (2.19-18+deb8u7) stable; urgency=medium
 
   [ Aurelien Jarno ]
diff --git a/debian/patches/git-updates.diff b/debian/patches/git-updates.diff
index 5e3d836..c39df17 100644
--- a/debian/patches/git-updates.diff
+++ b/debian/patches/git-updates.diff
@@ -1,10 +1,16 @@
 GIT update of git://sourceware.org/git/glibc.git/release/2.19/master from 
glibc-2.19
 
 diff --git a/ChangeLog b/ChangeLog
-index 81c393a..92b8a2e 100644
+index 81c393a..a81d623 100644
 --- a/ChangeLog
 +++ b/ChangeLog
-@@ -1,3 +1,639 @@
+@@ -1,3 +1,645 @@
++2015-02-12  Joseph Myers  
++
++  [BZ #17964]
++  * sysdeps/powerpc/fpu/e_sqrt.c (__slow_ieee754_sqrt): Use
++  __builtin_fma instead of relying on contraction of a * b + c.
++
 +2015-01-28  Adhemerval Zanellla  
 +
 +  [BZ #16576]
@@ -645,7 +651,7 @@ index 81c393a..92b8a2e 100644
  
[BZ #16529]
 diff --git a/NEWS b/NEWS
-index 98b479e..f62b876 100644
+index 98b479e..bdbf52b 100644
 --- a/NEWS
 +++ b/NEWS
 @@ -5,6 +5,104 @@ See the end for copying conditions.
@@ -659,8 +665,8 @@ index 98b479e..f62b876 100644
 +  15946, 16009, 16545, 16574, 16576, 16623, 16657, 16695, 16743, 16758,
 +  16759, 16760, 16878, 16882, 16885, 16916, 16932, 16943, 16958, 17048,
 +  17062, 17069, 17079, 17137, 17153, 17213, 17263, 17269, 17325, 17523,
-+  17555, 17905, 18007, 18032, 18080, 18240, 18287, 18508, 18665, 18905,
-+  18928, 19018, 19779, 19791, 19879, 20010, 20112.
++  17555, 17905, 17964, 18007, 18032, 18080, 18240, 18287, 18508, 18665,
++  18905, 18928, 19018, 19779, 19791, 19879, 20010, 20112.
 +
 +* A buffer overflow in gethostbyname_r and related functions performing DNS
 +  requests has been fixed.  If the NSS functions were called with a
@@ -6539,7 +6545,7 @@ index 64d192a..4b7ec36 100644
va_list arg;
va_start (arg, oflag);
 diff --git a/sysdeps/powerpc/fpu/e_sqrt.c b/sysdeps/powerpc/fpu/e_sqrt.c
-index 0368e57..24dfe68 100644
+index 0368e57..022d71b 100644
 --- a/sysdeps/powerpc/fpu/e_sqrt.c
 +++ b/sysdeps/powerpc/fpu/e_sqrt.c
 @@ -24,6 +24,7 @@
@@ -6550,7 +6556,64 @@ index 0368e57..24dfe68 100644
  static const double almost_half = 0.5001; /* 0.5 + 2^-53 */
  static const ieee_float_shape_type a_nan = {.word = 0x7fc0 };
  static const ieee_float_shape_type a_inf = {.word = 0x7f80 };
-@@ -152,6 +153,7 @@ __slow_ieee754_sqrt (double x)
+@@ -98,38 +99,41 @@ __slow_ieee754_sqrt (double x)
+ /* Here we have three Newton-Raphson iterations each of a
+division and a square root and the remainder of the
+argument reduction, all interleaved.   */
+-sd = -(sg * sg - sx);
++sd = -__builtin_fma (sg, sg, -sx);
+ fsgi = (xi0 + 0x4000) >> 1 & 0x7ff0;
+ sy2 = sy + sy;
+-sg = sy * sd + sg;/* 16-bit approximation to sqrt(sx). */
++sg = __builtin_fma (sy, sd, sg);  /* 16-bit approximation to
++ sqrt(sx). */
+ 
+ /* schedule the INSERT_WORDS (fsg, fsgi, 0) to get separation
+between the store and the load.  */
+ INSERT_WORDS (fsg, fsgi, 0);
+ iw_u.parts.msw = fsgi;
+ iw_u.parts.lsw = (0);
+-e = -(sy * sg - almost_half);
+-sd = -(sg * sg - sx);
++e = -__builtin_fma (sy, sg, -almost_half);
++sd = -__builtin_fma (sg, sg, -sx);
+ if ((xi0 & 0x7ff0) == 0)
+   goto denorm;
+-sy = sy + e * sy2;
+-sg = sg + sy * sd;/* 32-bit approximation to sqrt(sx).  */
++sy = __builtin_fma (e, sy2, sy);
++sg = __builtin_fma (sy, sd, sg);  /* 32-bit approximation to
++ sqrt(sx).  */
+ sy2 = sy + sy;
+ /* complete the INSERT_WORDS (fsg, fsgi, 0) operation.  */
+ fsg = iw_u.value;
+-e = -(sy * sg - almost_half);
+-sd = -(sg * sg - sx);
+-sy = sy + e * sy2;
++e = -__builtin_fma (sy, 

[glibc] 01/01: Update from upstream stable branch:

2016-11-22 Thread Aurelien Jarno
This is an automated email from the git hooks/post-receive script.

aurel32 pushed a commit to branch jessie
in repository glibc.

commit 994d358576afb6e4ee7902da23851752791b6a51
Author: Aurelien Jarno 
Date:   Tue Nov 22 23:27:27 2016 +0100

Update from upstream stable branch:

* Update from upstream stable branch:
  - Do not unconditionally use the fqsrt instruction on 64-bit PowerPC
CPUs.  Closes: #843904.
---
 debian/changelog|   3 +
 debian/patches/git-updates.diff | 245 ++--
 2 files changed, 240 insertions(+), 8 deletions(-)

diff --git a/debian/changelog b/debian/changelog
index d4ac3a4..f4f41c2 100644
--- a/debian/changelog
+++ b/debian/changelog
@@ -1,6 +1,9 @@
 glibc (2.19-18+deb8u7) UNRELEASED; urgency=medium
 
   [ Aurelien Jarno ]
+  * Update from upstream stable branch:
+- Do not unconditionally use the fqsrt instruction on 64-bit PowerPC
+  CPUs.  Closes: #843904.
   * debian/patches/any/cvs-hesiod-resolver.diff: patch from upstream to
 fix a regression introduced by cvs-resolv-ipv6-nameservers.diff in
 hesiod.  Closes: #821358.
diff --git a/debian/patches/git-updates.diff b/debian/patches/git-updates.diff
index d2d83f7..5e3d836 100644
--- a/debian/patches/git-updates.diff
+++ b/debian/patches/git-updates.diff
@@ -1,10 +1,27 @@
 GIT update of git://sourceware.org/git/glibc.git/release/2.19/master from 
glibc-2.19
 
 diff --git a/ChangeLog b/ChangeLog
-index 81c393a..30da116 100644
+index 81c393a..92b8a2e 100644
 --- a/ChangeLog
 +++ b/ChangeLog
-@@ -1,3 +1,622 @@
+@@ -1,3 +1,639 @@
++2015-01-28  Adhemerval Zanellla  
++
++  [BZ #16576]
++  * sysdeps/powerpc/fpu/math_private.h [__CPU_HAS_FSQRT]: Remove define
++  and use _ARCH_PPCSQ instead.
++  (__ieee754_sqrt): Likewise.
++  (__ieee754_sqrtf): Likewise.
++  * sysdeps/powerpc/fpu/e_sqrt.c (__slow_ieee754_sqrt): Build only if
++  _ARCH_PPCSQ is defined.
++  (__ieee754_sqrt): Use _ARCH_PPCSQ to select wheter to use hardware
++  fsqrt instruction.
++  * sysdeps/powerpc/fpu/e_sqrtf.c (__ieee754_sqrtf): Build only if
++  _ARCH_PPCSQ is defined.
++  (__ieee754_sqrtf): Use _ARCH_PPCSQ to select wheter to use hardware
++  fsqrts instruction.
++  * sysdeps/powerpc/powerpc64/fpu/e_sqrt.c: Remove file.
++
 +2016-08-15  Andreas Schwab  
 +
 +  [BZ #20435]
@@ -628,7 +645,7 @@ index 81c393a..30da116 100644
  
[BZ #16529]
 diff --git a/NEWS b/NEWS
-index 98b479e..a1bb834 100644
+index 98b479e..f62b876 100644
 --- a/NEWS
 +++ b/NEWS
 @@ -5,6 +5,104 @@ See the end for copying conditions.
@@ -639,11 +656,11 @@ index 98b479e..a1bb834 100644
 +
 +* The following bugs are resolved with this release:
 +
-+  15946, 16009, 16545, 16574, 16623, 16657, 16695, 16743, 16758, 16759,
-+  16760, 16878, 16882, 16885, 16916, 16932, 16943, 16958, 17048, 17062,
-+  17069, 17079, 17137, 17153, 17213, 17263, 17269, 17325, 17523, 17555,
-+  17905, 18007, 18032, 18080, 18240, 18287, 18508, 18665, 18905, 18928,
-+  19018, 19779, 19791, 19879, 20010, 20112.
++  15946, 16009, 16545, 16574, 16576, 16623, 16657, 16695, 16743, 16758,
++  16759, 16760, 16878, 16882, 16885, 16916, 16932, 16943, 16958, 17048,
++  17062, 17069, 17079, 17137, 17153, 17213, 17263, 17269, 17325, 17523,
++  17555, 17905, 18007, 18032, 18080, 18240, 18287, 18508, 18665, 18905,
++  18928, 19018, 19779, 19791, 19879, 20010, 20112.
 +
 +* A buffer overflow in gethostbyname_r and related functions performing DNS
 +  requests has been fixed.  If the NSS functions were called with a
@@ -6521,6 +6538,146 @@ index 64d192a..4b7ec36 100644
  {
va_list arg;
va_start (arg, oflag);
+diff --git a/sysdeps/powerpc/fpu/e_sqrt.c b/sysdeps/powerpc/fpu/e_sqrt.c
+index 0368e57..24dfe68 100644
+--- a/sysdeps/powerpc/fpu/e_sqrt.c
 b/sysdeps/powerpc/fpu/e_sqrt.c
+@@ -24,6 +24,7 @@
+ #include 
+ #include 
+ 
++#ifndef _ARCH_PPCSQ
+ static const double almost_half = 0.5001; /* 0.5 + 2^-53 */
+ static const ieee_float_shape_type a_nan = {.word = 0x7fc0 };
+ static const ieee_float_shape_type a_inf = {.word = 0x7f80 };
+@@ -152,6 +153,7 @@ __slow_ieee754_sqrt (double x)
+ }
+   return f_wash (x);
+ }
++#endif /* _ARCH_PPCSQ  */
+ 
+ #undef __ieee754_sqrt
+ double
+@@ -159,16 +161,11 @@ __ieee754_sqrt (double x)
+ {
+   double z;
+ 
+-  /* If the CPU is 64-bit we can use the optional FP instructions.  */
+-  if (__CPU_HAS_FSQRT)
+-{
+-  /* Volatile is required to prevent the compiler from moving the
+-   fsqrt instruction above the branch.  */
+-  __asm __volatile (" fsqrt   %0,%1\n"
+-  :"=f" (z):"f" (x));
+-}
+-  else
+-z = __slow_ieee754_sqrt (x);
++#ifdef _ARCH_PPCSQ
++  asm ("fsqrt %0,%1\n" :"=f" (z):"f" (x));
++#else
++  z = __slow_ieee754_sqrt (x);
++#endif
+ 
+   return z;
+ }
+diff --git 

[glibc] 01/01: Update from upstream stable branch:

2016-06-19 Thread Aurelien Jarno
This is an automated email from the git hooks/post-receive script.

aurel32 pushed a commit to branch sid
in repository glibc.

commit a09b70aefd4d52fb68df069c1fd5ef5af7fcdd92
Author: Aurelien Jarno 
Date:   Sun Jun 19 22:27:24 2016 +0200

Update from upstream stable branch:

* Update from upstream stable branch:
  - fix FTBFS with recent binutils versions on mips* and sparc*.  Closes:
#827477.
---
 debian/changelog|  3 +++
 debian/patches/git-updates.diff | 50 +++--
 2 files changed, 51 insertions(+), 2 deletions(-)

diff --git a/debian/changelog b/debian/changelog
index 0c2511e..a3d24bb 100644
--- a/debian/changelog
+++ b/debian/changelog
@@ -1,6 +1,9 @@
 glibc (2.22-12) UNRELEASED; urgency=medium
 
   [ Aurelien Jarno ]
+  * Update from upstream stable branch:
+- fix FTBFS with recent binutils versions on mips* and sparc*.  Closes:
+  #827477.
   * debian/sysdeps/kfreebsd-i386.mk: fix libc0.1-i686 package name.
   * debian/rules.d/build.mk: in case of build failure due testsuite
 issues, display again the failed tests so that they appear at the end of
diff --git a/debian/patches/git-updates.diff b/debian/patches/git-updates.diff
index 09d0e2b..58bb38c 100644
--- a/debian/patches/git-updates.diff
+++ b/debian/patches/git-updates.diff
@@ -1,10 +1,17 @@
 GIT update of git://sourceware.org/git/glibc.git/release/2.22/master from 
glibc-2.22
 
 diff --git a/ChangeLog b/ChangeLog
-index cb9124e..2d55a22 100644
+index cb9124e..0d3a802 100644
 --- a/ChangeLog
 +++ b/ChangeLog
-@@ -1,3 +1,678 @@
+@@ -1,3 +1,685 @@
++2016-06-18  Aurelien Jarno  
++
++  * sysdeps/unix/sysv/linux/mips/vfork.S (__vfork): Conditionalize
++  hidden_def, weak_alias and strong_alias on [IS_IN (libc)].
++  * sysdeps/unix/sysv/linux/sparc/sparc32/vfork.S: Likewise.
++  * sysdeps/unix/sysv/linux/sparc/sparc64/vfork.S: Likewise.
++
 +2016-01-22  Stefan Liebler  
 +
 +  * string/tst-endian.c: Include .
@@ -7149,6 +7156,19 @@ index 83c0340..9d5c542 100644
  #endif /* not __ASSEMBLER__ */
 +
 +#endif /* _LINUX_MICROBLAZE_SYSDEP_H */
+diff --git a/sysdeps/unix/sysv/linux/mips/vfork.S 
b/sysdeps/unix/sysv/linux/mips/vfork.S
+index 8915bea..60a9131 100644
+--- a/sysdeps/unix/sysv/linux/mips/vfork.S
 b/sysdeps/unix/sysv/linux/mips/vfork.S
+@@ -106,6 +106,8 @@ L(error):
+ #endif
+   END(__vfork)
+ 
++#if IS_IN (libc)
+ libc_hidden_def(__vfork)
+ weak_alias (__vfork, vfork)
+ strong_alias (__vfork, __libc_vfork)
++#endif
 diff --git a/sysdeps/unix/sysv/linux/openat.c 
b/sysdeps/unix/sysv/linux/openat.c
 index 6777123..ad8e31d 100644
 --- a/sysdeps/unix/sysv/linux/openat.c
@@ -7357,6 +7377,32 @@ index 5b8c102..9f03d26 100644
 -shutdown  -   shutdowni:ii__shutdown  shutdown
 -socket-   socket  i:iii   __socketsocket
 -socketpair-   socketpair  i:iiif  __socketpairsocketpair
+diff --git a/sysdeps/unix/sysv/linux/sparc/sparc32/vfork.S 
b/sysdeps/unix/sysv/linux/sparc/sparc32/vfork.S
+index e71ecbc..3727877 100644
+--- a/sysdeps/unix/sysv/linux/sparc/sparc32/vfork.S
 b/sysdeps/unix/sysv/linux/sparc/sparc32/vfork.S
+@@ -44,6 +44,8 @@ ENTRY(__vfork)
+nop
+ END(__vfork)
+ 
++#if IS_IN (libc)
+ libc_hidden_def (__vfork)
+ weak_alias (__vfork, vfork)
+ strong_alias (__vfork, __libc_vfork)
++#endif
+diff --git a/sysdeps/unix/sysv/linux/sparc/sparc64/vfork.S 
b/sysdeps/unix/sysv/linux/sparc/sparc64/vfork.S
+index 6939ba3..7bf5165 100644
+--- a/sysdeps/unix/sysv/linux/sparc/sparc64/vfork.S
 b/sysdeps/unix/sysv/linux/sparc/sparc64/vfork.S
+@@ -44,6 +44,8 @@ ENTRY(__vfork)
+nop
+ END(__vfork)
+ 
++#if IS_IN (libc)
+ libc_hidden_def (__vfork)
+ weak_alias (__vfork, vfork)
+ strong_alias (__vfork, __libc_vfork)
++#endif
 diff --git a/sysdeps/x86/fpu/bits/math-vector.h 
b/sysdeps/x86/fpu/bits/math-vector.h
 index f9e798b..f3bfb86 100644
 --- a/sysdeps/x86/fpu/bits/math-vector.h

-- 
Alioth's /usr/local/bin/git-commit-notice on 
/srv/git.debian.org/git/pkg-glibc/glibc.git



[glibc] 01/01: Update from upstream stable branch.

2016-06-04 Thread Aurelien Jarno
This is an automated email from the git hooks/post-receive script.

aurel32 pushed a commit to branch sid
in repository glibc.

commit 9859178ce07b89dd15691c6d96462ac7b4792ff2
Author: Aurelien Jarno 
Date:   Sat Jun 4 20:40:35 2016 +0200

Update from upstream stable branch.
---
 debian/changelog|   1 +
 debian/patches/git-updates.diff | 466 +++-
 2 files changed, 465 insertions(+), 2 deletions(-)

diff --git a/debian/changelog b/debian/changelog
index 4a00ea9..fa7eaf0 100644
--- a/debian/changelog
+++ b/debian/changelog
@@ -5,6 +5,7 @@ glibc (2.22-11) UNRELEASED; urgency=medium
 on a fd which had never been allocated.  Closes: #826175.
 
   [ Aurelien Jarno ]
+  * Update from upstream stable branch.
   * debian/control: re-add libc0.1-i686, libc0.3-i686, libc6-i686 as a
 dummy package to ease the upgrades.  Closes: #825421, #826290.
   * debian/sysdeps/i386.mk: add libc6-i686 dummy package.
diff --git a/debian/patches/git-updates.diff b/debian/patches/git-updates.diff
index 850361a..09d0e2b 100644
--- a/debian/patches/git-updates.diff
+++ b/debian/patches/git-updates.diff
@@ -1,10 +1,60 @@
 GIT update of git://sourceware.org/git/glibc.git/release/2.22/master from 
glibc-2.22
 
 diff --git a/ChangeLog b/ChangeLog
-index cb9124e..123274c 100644
+index cb9124e..2d55a22 100644
 --- a/ChangeLog
 +++ b/ChangeLog
-@@ -1,3 +1,628 @@
+@@ -1,3 +1,678 @@
++2016-01-22  Stefan Liebler  
++
++  * string/tst-endian.c: Include .
++  (do_test): Ignore tautological-compare warnings around
++  "htobeXX (beXXtoh (i)) != i" and
++  "htoleXX (leXXtoh (i)) != i" if-statements.
++
++2015-12-18  Torvald Riegel  
++
++  * math/atest-exp2.c (mp_exp_m1): Remove.
++
++2016-06-02  Florian Weimer  
++
++  * sysdeps/unix/sysv/linux/dl-openat64.c (openat64): Convert to
++  ISO-style variadic function definition.
++
++2015-12-11  Steve Ellcey  
++
++  * sysdeps/ieee754/flt-32/k_rem_pio2f.c (__kernel_rem_pio2f):
++  Fix indentation.
++
++2015-09-18  Wilco Dijkstra  
++
++  * resolv/base64.c (rcsid): Remove unused static.
++  * sysdeps/ieee754/dbl-64/atnat2.h (qpi1): Remove unused
++  static.  (tqpi1): Likewise.
++  * sysdeps/ieee754/dbl-64/uexp.h (one): Likewise.
++  * sysdeps/ieee754/dbl-64/upow.h (sqrt_2): Likewise.
++  * sysdeps/ieee754/flt-32/e_log10f.c (one): Likewise.
++  * sysdeps/ieee754/flt-32/s_cosf.c (one): Likewise.
++  * sysdeps/ieee754/ldbl-128/e_lgammal_r.c (zero): Likewise.
++  * sysdeps/ieee754/ldbl-128/s_erfl.c (half): Likewise.
++  * sysdeps/ieee754/ldbl-128/s_log1pl.c (maxlog): Likewise.
++  * timezone/private.h (time_t_min): Likewise.  (time_t_max):
++  Likewise.
++
++2016-04-15  Yvan Roux  
++
++  * stdlib/setenv.c (unsetenv): Fix ambiguous 'else'.
++  * nis/nis_call.c (nis_server_cache_add): Likewise.
++
++2016-06-01  Florian Weimer  
++
++  [BZ #19861]
++  Do not use IFUNC resolver with potentially unrelocated symbol.
++  * nptl/pt-fork.c [HAVE_IFUNC]: Remove.
++  (DEFINE_FORK): Remove macro and inline definition.
++  (fork_alias): Renamed from fork_ifunc.
++  (__fork_alias): Renamed from __fork_ifunc.
++
 +2016-05-23  Florian Weimer  
 +
 +  CVE-2016-4429
@@ -2647,6 +2697,22 @@ index 6388bae..84b4ded 100644
  endif
  
  # Rules for the test suite.
+diff --git a/math/atest-exp2.c b/math/atest-exp2.c
+index 307c741..ffa73b1 100644
+--- a/math/atest-exp2.c
 b/math/atest-exp2.c
+@@ -53,11 +53,6 @@ static const mp1 mp_exp1 = {
+a784d904, 5190cfef, 324e7738, 926cfbe5, f4bf8d8d, 8c31d763)
+ };
+ 
+-static const mp1 mp_exp_m1 = {
+-  CONSTSZ (0, 5e2d58d8, b3bcdf1a, badec782, 9054f90d, da9805aa, b56c7733,
+-   3024b9d0, a507daed, b16400bf, 472b4215, b8245b66, 9d90d27a)
+-};
+-
+ static const mp1 mp_log2 = {
+   CONSTSZ (0, b17217f7, d1cf79ab, c9e3b398, 03f2f6af, 40f34326, 7298b62d,
+8a0d175b, 8baafa2b, e7b87620, 6debac98, 559552fb, 4afa1b10)
 diff --git a/misc/Makefile b/misc/Makefile
 index aecb0da..12055ce 100644
 --- a/misc/Makefile
@@ -3011,6 +3077,101 @@ index 876c89f..820b354 100644
 }
  
return result;
+diff --git a/nis/nis_call.c b/nis/nis_call.c
+index 970415b..d98c385 100644
+--- a/nis/nis_call.c
 b/nis/nis_call.c
+@@ -680,16 +680,18 @@ nis_server_cache_add (const_nis_name name, int 
search_parent,
+   /* Choose which entry should be evicted from the cache.  */
+   loc = _server_cache[0];
+   if (*loc != NULL)
+-for (i = 1; i < 16; ++i)
+-  if (nis_server_cache[i] == NULL)
+-  {
++{
++  for (i = 1; i < 16; ++i)
++  if (nis_server_cache[i] == NULL)
++{
++  loc = _server_cache[i];
++  break;
++}
++  else if ((*loc)->uses > 

[glibc] 01/01: Update from upstream stable branch.

2016-04-27 Thread Aurelien Jarno
This is an automated email from the git hooks/post-receive script.

aurel32 pushed a commit to branch sid
in repository glibc.

commit ff725566a7b2ce23d6970c83d7fc682544733e0b
Author: Aurelien Jarno 
Date:   Wed Apr 27 13:09:25 2016 +0200

Update from upstream stable branch.
---
 debian/changelog|   1 +
 debian/patches/git-updates.diff | 823 +++-
 2 files changed, 817 insertions(+), 7 deletions(-)

diff --git a/debian/changelog b/debian/changelog
index 9b88a99..4bfc299 100644
--- a/debian/changelog
+++ b/debian/changelog
@@ -7,6 +7,7 @@ glibc (2.22-8) UNRELEASED; urgency=medium
 IPV6_*PKT* macros.
 
   [ Aurelien Jarno ]
+  * Update from upstream stable branch.
   * patches/kfreebsd/local-sysdeps.diff: update to revision 6032 (from
 glibc-bsd) to fix FTBFS. Closes: #822143.
   * patches/arm/unsubmitted-ldconfig-cache-abi.diff: apply fix from Steve
diff --git a/debian/patches/git-updates.diff b/debian/patches/git-updates.diff
index 05aeab9..0cbfcbc 100644
--- a/debian/patches/git-updates.diff
+++ b/debian/patches/git-updates.diff
@@ -1,10 +1,89 @@
 GIT update of git://sourceware.org/git/glibc.git/release/2.22/master from 
glibc-2.22
 
 diff --git a/ChangeLog b/ChangeLog
-index cb9124e..0b6deab 100644
+index cb9124e..fa02ac9 100644
 --- a/ChangeLog
 +++ b/ChangeLog
-@@ -1,3 +1,465 @@
+@@ -1,3 +1,544 @@
++2016-04-13  Florian Weimer  
++
++  * malloc/arena.c (list_lock): Update comment.
++
++2016-04-13  Florian Weimer  
++
++  * malloc/tst-malloc-thread-exit.c: Include test-skeleton.c early.
++  (do_test): Limit the number of arenas, so that we can use fewer
++  outer threads.  Limit timeout to 3 seconds, in preparation for a
++  larger TIMEOUT value.
++
++2016-04-13  Florian Weimer  
++
++  [BZ #19182]
++  * malloc/arena.c (list_lock): Document lock ordering requirements.
++  (free_list_lock): New lock.
++  (ptmalloc_lock_all): Comment on free_list_lock.
++  (ptmalloc_unlock_all2): Reinitialize free_list_lock.
++  (detach_arena): Update comment.  free_list_lock is now needed.
++  (_int_new_arena): Use free_list_lock around detach_arena call.
++  Acquire arena lock after list_lock.  Add comment, including FIXME
++  about incorrect synchronization.
++  (get_free_list): Switch to free_list_lock.
++  (reused_arena): Acquire free_list_lock around detach_arena call
++  and attached threads counter update.  Add two FIXMEs about
++  incorrect synchronization.
++  (arena_thread_freeres): Switch to free_list_lock.
++  * malloc/malloc.c (struct malloc_state): Update comments to
++  mention free_list_lock.
++
++2016-04-13  Florian Weimer  
++
++  [BZ #19243]
++  * malloc/arena.c (get_free_list): Remove assert and adjust
++  reference count handling.  Add comment about reused_arena
++  interaction.
++  (reused_arena): Add comments abount get_free_list interaction.
++  * malloc/tst-malloc-thread-exit.c: New file.
++  * malloc/Makefile (tests): Add tst-malloc-thread-exit.
++  (tst-malloc-thread-exit): Link against libpthread.
++
++2016-04-13  Florian Weimer  
++
++  [BZ# 19048]
++  * malloc/malloc.c (struct malloc_state): Update comment.  Add
++  attached_threads member.
++  (main_arena): Initialize attached_threads.
++  * malloc/arena.c (list_lock): Update comment.
++  (ptmalloc_lock_all, ptmalloc_unlock_all): Likewise.
++  (ptmalloc_unlock_all2): Reinitialize arena reference counts.
++  (deattach_arena): New function.
++  (_int_new_arena): Initialize arena reference count and deattach
++  replaced arena.
++  (get_free_list, reused_arena): Update reference count and deattach
++  replaced arena.
++  (arena_thread_freeres): Update arena reference count and only put
++  unreferenced arenas on the free list.
++
++2016-04-12  Paul E. Murphy  
++
++  [BZ #19853]
++  * stdio-common/tst-sprintf3.c [TEST_N]: Refactor
++  TEST to take significant digits as second parameter.
++  [TEST]: Redefine in terms of TEST_N taking 30
++  significant digits.
++  (do_test): Add test case to demonstrate precision
++  failure in the ldbl-128ibm printf.
++  * sysdeps/ieee754/ldbl-128ibm/ldbl2pm.c:
++  (__mpn_extract_long_double): Carry 7 extra intermediate
++  bits of precision to aide computing difference when
++  signs differ.
++
++2016-04-09  Mike Frysinger  
++
++  * sysdeps/i386/configure.ac: Change == to = when calling test.
++  * sysdeps/x86_64/configure.ac: Likewise.
++  * sysdeps/i386/configure: Regenerated.
++  * sysdeps/x86_64/configure: Likewise.
++
 +2015-08-25  Paul E. Murphy  
 +
 +  * sysdeps/powerpc/powerpc32/sysdep.h (ABORT_TRANSACTION): Use

[glibc] 01/01: Update from upstream stable branch:

2016-03-28 Thread Aurelien Jarno
This is an automated email from the git hooks/post-receive script.

aurel32 pushed a commit to branch sid
in repository glibc.

commit 7234ed60f8ecb6aa922699e69aabbc3817652553
Author: Aurelien Jarno 
Date:   Mon Mar 28 22:50:19 2016 +0200

Update from upstream stable branch:

* Update from upstream stable branch:
  - Fix assertion failure with unconnectable name server addresses.  Closes:
#816669.
---
 debian/changelog|   3 +
 debian/patches/git-updates.diff | 205 
 2 files changed, 190 insertions(+), 18 deletions(-)

diff --git a/debian/changelog b/debian/changelog
index 5300c36..c51d480 100644
--- a/debian/changelog
+++ b/debian/changelog
@@ -4,6 +4,9 @@ glibc (2.22-5) UNRELEASED; urgency=medium
   * testsuite-xfail-debian.mk: Disable the problematic test-lfs test on hurd.
 
   [ Aurelien Jarno ]
+  * Update from upstream stable branch:
+- Fix assertion failure with unconnectable name server addresses.  Closes:
+  #816669.
   * Drop libnss-dns-udeb and libnss-files-udeb and merge the files they
 include in libc6-udeb.
 
diff --git a/debian/patches/git-updates.diff b/debian/patches/git-updates.diff
index 6882c1c..abb6fd9 100644
--- a/debian/patches/git-updates.diff
+++ b/debian/patches/git-updates.diff
@@ -1,10 +1,25 @@
 GIT update of git://sourceware.org/git/glibc.git/release/2.22/master from 
glibc-2.22
 
 diff --git a/ChangeLog b/ChangeLog
-index cb9124e..ba4a3f2 100644
+index cb9124e..3e0d69b 100644
 --- a/ChangeLog
 +++ b/ChangeLog
-@@ -1,3 +1,385 @@
+@@ -1,3 +1,400 @@
++2016-03-25  Florian Weimer  
++
++  [BZ #19791]
++  * resolv/res_send.c (close_and_return_error): New function.
++  (send_dg): Initialize *resplen2 after reopen failure.  Call
++  close_and_return_error for error returns.  On error paths without
++  __res_iclose, initialze *resplen2 explicitly.  Update comment for
++  successful return.
++
++2016-03-21  Dylan Alex Simon  
++
++  [BZ #19822]
++  * math/Makefile ($(inst_libdir)/libm.so): Write output to $@.tmp and
++  move it to the final $@ location.
++
 +2016-03-15  Andreas Schwab  
 +
 +  [BZ #19257]
@@ -391,7 +406,7 @@ index cb9124e..ba4a3f2 100644
  
* version.h (RELEASE): Set to "stable".
 diff --git a/NEWS b/NEWS
-index 4c31de7..93c46af 100644
+index 4c31de7..a3dd3c7 100644
 --- a/NEWS
 +++ b/NEWS
 @@ -5,6 +5,31 @@ See the end for copying conditions.
@@ -418,7 +433,7 @@ index 4c31de7..93c46af 100644
 +
 +  17905, 18420, 18421, 18480, 18589, 18743, 18778, 18781, 18787, 18796,
 +  18870, 18887, 18921, 18928, 18969, 18985, 19003, 19018, 19058, 19174,
-+  19178, 19590, 19682.
++  19178, 19590, 19682, 19791, 19822.
 +
 +* The LD_POINTER_GUARD environment variable can no longer be used to
 +  disable the pointer guard feature.  It is always enabled.
@@ -1370,18 +1385,21 @@ index a39a94f..dc0fe30 100644
  
obstack_free (, NULL);
 diff --git a/math/Makefile b/math/Makefile
-index 6388bae..2c9d72d 100644
+index 6388bae..84b4ded 100644
 --- a/math/Makefile
 +++ b/math/Makefile
-@@ -98,7 +98,7 @@ $(inst_libdir)/libm.so: $(common-objpfx)format.lds \
+@@ -98,8 +98,9 @@ $(inst_libdir)/libm.so: $(common-objpfx)format.lds \
(echo '/* GNU ld script'; echo '*/';\
 cat $<; \
 echo 'GROUP ( $(slibdir)/libm.so$(libm.so-version) ' \
 -'AS_NEEDED ( $(slibdir)/libmvec.so$(libmvec.so-version) ) )' \
+-  ) > $@
 +'AS_NEEDED ( $(libdir)/libmvec_nonshared.a 
$(slibdir)/libmvec.so$(libmvec.so-version) ) )' \
-   ) > $@
++  ) > $@.new
++  mv -f $@.new $@
  endif
  
+ # Rules for the test suite.
 diff --git a/misc/Makefile b/misc/Makefile
 index aecb0da..12055ce 100644
 --- a/misc/Makefile
@@ -1938,7 +1956,7 @@ index 4a9b3b3..95470a9 100644
  }
if (saved_herrno != -1)
 diff --git a/resolv/res_send.c b/resolv/res_send.c
-index 5e53cc2..6511bb1 100644
+index 5e53cc2..0add3d2 100644
 --- a/resolv/res_send.c
 +++ b/resolv/res_send.c
 @@ -1,3 +1,20 @@
@@ -1971,10 +1989,22 @@ index 5e53cc2..6511bb1 100644
u_char *buf = malloc (MAXPACKET);
if (buf == NULL)
return (-1);
-@@ -638,6 +657,77 @@ get_nsaddr (res_state statp, int n)
+@@ -638,6 +657,89 @@ get_nsaddr (res_state statp, int n)
  return (struct sockaddr *) (void *) >nsaddr_list[n];
  }
  
++/* Close the resolver structure, assign zero to *RESPLEN2 if RESPLEN2
++   is not NULL, and return zero.  */
++static int
++__attribute__ ((warn_unused_result))
++close_and_return_error (res_state statp, int *resplen2)
++{
++  __res_iclose(statp, false);
++  if (resplen2 != NULL)
++*resplen2 = 0;
++  return 0;
++}
++
 +/* The send_vc function is responsible for sending a DNS query over TCP
 +   to the nameserver numbered NS from the res_state STATP i.e.
 +   EXT(statp).nssocks[ns].  

[glibc] 01/01: Update from upstream stable branch.

2016-03-20 Thread Aurelien Jarno
This is an automated email from the git hooks/post-receive script.

aurel32 pushed a commit to branch sid
in repository glibc.

commit c03d43db048d6ac343bde8df7c8223572e2d52d8
Author: Aurelien Jarno 
Date:   Sun Mar 20 12:52:26 2016 +0100

Update from upstream stable branch.
---
 debian/changelog|  4 ++--
 debian/patches/git-updates.diff | 23 +--
 debian/patches/series   |  1 -
 3 files changed, 23 insertions(+), 5 deletions(-)

diff --git a/debian/changelog b/debian/changelog
index 8a7a5da..e1cec93 100644
--- a/debian/changelog
+++ b/debian/changelog
@@ -1,10 +1,10 @@
 glibc (2.22-4) UNRELEASED; urgency=medium
 
   [ Aurelien Jarno ]
+  * Update from upstream stable branch:
+- Fix a memory leak in the resolver.  Closes: #818178.
   * debian/patches/localedata/fr_CA-first_weekday.diff: drop.  Closes:
 #769051.
-  * debian/patches/any/submitted-resolver-leak.diff: new patch to fix a
-memory leak in the resolver.  Closes: #818178.
 
   [ Samuel Thibault ]
   * patches/hurd-i386/tg-sendmsg-SCM_RIGHTS.diff,tg-sendmsg-SCM_CREDS.diff:
diff --git a/debian/patches/git-updates.diff b/debian/patches/git-updates.diff
index bcc4831..6882c1c 100644
--- a/debian/patches/git-updates.diff
+++ b/debian/patches/git-updates.diff
@@ -1,10 +1,16 @@
 GIT update of git://sourceware.org/git/glibc.git/release/2.22/master from 
glibc-2.22
 
 diff --git a/ChangeLog b/ChangeLog
-index cb9124e..b224f46 100644
+index cb9124e..ba4a3f2 100644
 --- a/ChangeLog
 +++ b/ChangeLog
-@@ -1,3 +1,379 @@
+@@ -1,3 +1,385 @@
++2016-03-15  Andreas Schwab  
++
++  [BZ #19257]
++  * resolv/res_init.c (__res_iclose): Use statp->nscount instead of
++  statp->_u._ext.nscount as loop count.
++
 +2016-02-17  Andrew Senkevich  
 +  H.J. Lu  
 +
@@ -1890,6 +1896,19 @@ index 357ac04..a0fe9a8 100644
  }
  
return status;
+diff --git a/resolv/res_init.c b/resolv/res_init.c
+index 66561ff..77873c1 100644
+--- a/resolv/res_init.c
 b/resolv/res_init.c
+@@ -593,7 +593,7 @@ __res_iclose(res_state statp, bool free_addr) {
+   statp->_vcsock = -1;
+   statp->_flags &= ~(RES_F_VC | RES_F_CONN);
+   }
+-  for (ns = 0; ns < statp->_u._ext.nscount; ns++)
++  for (ns = 0; ns < statp->nscount; ns++)
+   if (statp->_u._ext.nsaddrs[ns]) {
+   if (statp->_u._ext.nssocks[ns] != -1) {
+   
close_not_cancel_no_status(statp->_u._ext.nssocks[ns]);
 diff --git a/resolv/res_query.c b/resolv/res_query.c
 index 4a9b3b3..95470a9 100644
 --- a/resolv/res_query.c
diff --git a/debian/patches/series b/debian/patches/series
index 731879d..c069d96 100644
--- a/debian/patches/series
+++ b/debian/patches/series
@@ -241,4 +241,3 @@ any/cvs-grantpt-pty-owner.diff
 any/cvs-bits-libc-stdio-lock.diff
 any/submitted-hle-checking-mutex.diff
 any/submitted-dlopen-noload.diff
-any/submitted-resolver-leak.diff

-- 
Alioth's /usr/local/bin/git-commit-notice on 
/srv/git.debian.org/git/pkg-glibc/glibc.git



[glibc] 01/01: Update from upstream stable branch:

2016-03-08 Thread Aurelien Jarno
This is an automated email from the git hooks/post-receive script.

aurel32 pushed a commit to branch sid
in repository glibc.

commit 1d8a05c20ddc0fa019eefca431bda47ba0f0b949
Author: Aurelien Jarno 
Date:   Tue Mar 8 17:59:37 2016 +0100

Update from upstream stable branch:

* Update from upstream stable branch:
  - Fix pow() precision on CPUs with fma4, and the corresponding testsuite
failures.
  - debian/patches/s390/submitted-socketcall.diff: drop, merged upstream.
---
 debian/changelog  |  4 ++
 debian/patches/git-updates.diff   | 88 +--
 debian/patches/s390/submitted-socketcall.diff | 31 --
 debian/patches/series |  2 -
 4 files changed, 86 insertions(+), 39 deletions(-)

diff --git a/debian/changelog b/debian/changelog
index 6f25837..f183c5a 100644
--- a/debian/changelog
+++ b/debian/changelog
@@ -3,6 +3,10 @@ glibc (2.22-2) UNRELEASED; urgency=medium
   [ Aurelien Jarno ]
   * debian/libc6{,-mips32,-mipsn32}.symbols.mips64el: add symbols for files for
 mips64el.
+  * Update from upstream stable branch:
+- Fix pow() precision on CPUs with fma4, and the corresponding testsuite
+  failures.
+- debian/patches/s390/submitted-socketcall.diff: drop, merged upstream.
 
  -- Aurelien Jarno   Mon, 07 Mar 2016 14:33:41 +0100
 
diff --git a/debian/patches/git-updates.diff b/debian/patches/git-updates.diff
index 335c849..c6b108f 100644
--- a/debian/patches/git-updates.diff
+++ b/debian/patches/git-updates.diff
@@ -1,10 +1,27 @@
 GIT update of git://sourceware.org/git/glibc.git/release/2.22/master from 
glibc-2.22
 
 diff --git a/ChangeLog b/ChangeLog
-index cb9124e..2ed60d6 100644
+index cb9124e..6e42a1e 100644
 --- a/ChangeLog
 +++ b/ChangeLog
-@@ -1,3 +1,355 @@
+@@ -1,3 +1,372 @@
++2015-09-24  Joseph Myers  
++
++  [BZ #19003]
++  * sysdeps/x86_64/fpu/multiarch/Makefile (CFLAGS-e_pow-fma4.c): Add
++  $(config-cflags-nofma).
++
++2016-03-07  Hongjiu Zhang  
++
++  * elf/sln.c (makesymlink): Change struct stat to stat64, and lstat
++  to lstat64.
++
++2016-03-02  Stefan Liebler  
++
++  [BZ #19682]
++  * sysdeps/unix/sysv/linux/s390/s390-64/syscalls.list:
++  Remove socketcall syscalls.
++
 +2016-03-01  Aurelien Jarno  
 +
 +  * sysdeps/alpha/fpu/libm-test-ulps: Update ULPs.
@@ -361,10 +378,10 @@ index cb9124e..2ed60d6 100644
  
* version.h (RELEASE): Set to "stable".
 diff --git a/NEWS b/NEWS
-index 4c31de7..81ceeae 100644
+index 4c31de7..4679258 100644
 --- a/NEWS
 +++ b/NEWS
-@@ -5,6 +5,30 @@ See the end for copying conditions.
+@@ -5,6 +5,31 @@ See the end for copying conditions.
  Please send GNU C library bug reports via 
  using `glibc' in the "product" field.
  
@@ -387,7 +404,8 @@ index 4c31de7..81ceeae 100644
 +* The following bugs are resolved with this release:
 +
 +  17905, 18420, 18421, 18480, 18589, 18743, 18778, 18781, 18787, 18796,
-+  18870, 18887, 18921, 18928, 18969, 18985, 19018, 19058, 19174, 19178.
++  18870, 18887, 18921, 18928, 18969, 18985, 19003, 19018, 19058, 19174,
++  19178, 19682.
 +
 +* The LD_POINTER_GUARD environment variable can no longer be used to
 +  disable the pointer guard feature.  It is always enabled.
@@ -395,7 +413,7 @@ index 4c31de7..81ceeae 100644
  Version 2.22
  
  * The following bugs are resolved with this release:
-@@ -84,7 +108,7 @@ Version 2.22
+@@ -84,7 +109,7 @@ Version 2.22
release.  Use of this header will trigger a deprecation warning.
Application developers should update their code to use  instead.
  
@@ -1061,6 +1079,24 @@ index 69873c2..07e741c 100644
  break;
  
case 14:
+diff --git a/elf/sln.c b/elf/sln.c
+index 1a7d24e..c6601fd 100644
+--- a/elf/sln.c
 b/elf/sln.c
+@@ -167,11 +167,11 @@ makesymlink (src, dest)
+  const char *src;
+  const char *dest;
+ {
+-  struct stat stats;
++  struct stat64 stats;
+   const char *error;
+ 
+   /* Destination must not be a directory. */
+-  if (lstat (dest, ) == 0)
++  if (lstat64 (dest, ) == 0)
+ {
+   if (S_ISDIR (stats.st_mode))
+   {
 diff --git a/elf/tst-nodelete2.c b/elf/tst-nodelete2.c
 new file mode 100644
 index 000..388e8af
@@ -3502,6 +3538,33 @@ index 57d5cd6..7b49817 100644
  #endif /* __HTM__  */
  
  #endif /* __ASSEMBLER__ */
+diff --git a/sysdeps/unix/sysv/linux/s390/s390-64/syscalls.list 
b/sysdeps/unix/sysv/linux/s390/s390-64/syscalls.list
+index 5b8c102..9f03d26 100644
+--- a/sysdeps/unix/sysv/linux/s390/s390-64/syscalls.list
 b/sysdeps/unix/sysv/linux/s390/s390-64/syscalls.list
+@@ -12,22 +12,3 @@ shmget  -   shmget  i:iii   
__shmgetshmget
+ semop -   semop   i:ipi   __semop semop
+ semget-   semget  

[glibc] 01/01: Update from upstream stable branch

2016-03-01 Thread Aurelien Jarno
This is an automated email from the git hooks/post-receive script.

aurel32 pushed a commit to branch glibc-2.22
in repository glibc.

commit 502a774d06fc29f3f87ecc54d2c248aee665dbdb
Author: Aurelien Jarno 
Date:   Tue Mar 1 12:45:46 2016 +0100

Update from upstream stable branch
---
 debian/patches/git-updates.diff | 132 +++-
 1 file changed, 130 insertions(+), 2 deletions(-)

diff --git a/debian/patches/git-updates.diff b/debian/patches/git-updates.diff
index 6165b85..335c849 100644
--- a/debian/patches/git-updates.diff
+++ b/debian/patches/git-updates.diff
@@ -1,10 +1,14 @@
 GIT update of git://sourceware.org/git/glibc.git/release/2.22/master from 
glibc-2.22
 
 diff --git a/ChangeLog b/ChangeLog
-index cb9124e..c0f411e 100644
+index cb9124e..2ed60d6 100644
 --- a/ChangeLog
 +++ b/ChangeLog
-@@ -1,3 +1,351 @@
+@@ -1,3 +1,355 @@
++2016-03-01  Aurelien Jarno  
++
++  * sysdeps/alpha/fpu/libm-test-ulps: Update ULPs.
++
 +2016-02-22  Paul E. Murphy  
 +
 +  * sysdeps/unix/sysv/linux/powerpc/htm.h (__libc_tbegin): Remove
@@ -2544,6 +2548,130 @@ index d5a1115..bea5aa2 100644
res = 1;
  }
else
+diff --git a/sysdeps/alpha/fpu/libm-test-ulps 
b/sysdeps/alpha/fpu/libm-test-ulps
+index 9ac946f..ee8e97c 100644
+--- a/sysdeps/alpha/fpu/libm-test-ulps
 b/sysdeps/alpha/fpu/libm-test-ulps
+@@ -817,6 +817,42 @@ ifloat: 2
+ ildouble: 1
+ ldouble: 1
+ 
++Function: Real part of "cexp_downward":
++double: 1
++float: 2
++idouble: 1
++ifloat: 2
++
++Function: Imaginary part of "cexp_downward":
++double: 1
++float: 3
++idouble: 1
++ifloat: 3
++
++Function: Real part of "cexp_towardzero":
++double: 1
++float: 2
++idouble: 1
++ifloat: 2
++
++Function: Imaginary part of "cexp_towardzero":
++double: 1
++float: 3
++idouble: 1
++ifloat: 3
++
++Function: Real part of "cexp_upward":
++double: 1
++float: 2
++idouble: 1
++ifloat: 2
++
++Function: Imaginary part of "cexp_upward":
++double: 1
++float: 2
++idouble: 1
++ifloat: 2
++
+ Function: Real part of "clog":
+ double: 3
+ float: 2
+@@ -1112,9 +1148,9 @@ ildouble: 3
+ ldouble: 3
+ 
+ Function: Real part of "csin_upward":
+-double: 1
++double: 2
+ float: 3
+-idouble: 1
++idouble: 2
+ ifloat: 3
+ ildouble: 2
+ ldouble: 2
+@@ -1142,10 +1178,10 @@ ildouble: 1
+ ldouble: 1
+ 
+ Function: Real part of "csinh_downward":
+-double: 1
+-float: 1
+-idouble: 1
+-ifloat: 1
++double: 2
++float: 2
++idouble: 2
++ifloat: 2
+ ildouble: 3
+ ldouble: 3
+ 
+@@ -1679,6 +1715,24 @@ ifloat: 4
+ ildouble: 7
+ ldouble: 7
+ 
++Function: "jn_downward":
++double: 5
++float: 5
++idouble: 5
++ifloat: 5
++
++Function: "jn_towardzero":
++double: 5
++float: 5
++idouble: 5
++ifloat: 5
++
++Function: "jn_upward":
++double: 5
++float: 5
++idouble: 5
++ifloat: 5
++
+ Function: "lgamma":
+ double: 2
+ float: 2
+@@ -2051,6 +2105,24 @@ ifloat: 5
+ ildouble: 4
+ ldouble: 4
+ 
++Function: "tgamma_downward":
++double: 3
++float: 4
++idouble: 3
++ifloat: 4
++
++Function: "tgamma_towardzero":
++double: 3
++float: 5
++idouble: 3
++ifloat: 5
++
++Function: "tgamma_upward":
++double: 3
++float: 5
++idouble: 3
++ifloat: 5
++
+ Function: "y0":
+ double: 2
+ float: 1
 diff --git a/sysdeps/generic/ldsodefs.h b/sysdeps/generic/ldsodefs.h
 index 7a0fe8d..78e3a97 100644
 --- a/sysdeps/generic/ldsodefs.h

-- 
Alioth's /usr/local/bin/git-commit-notice on 
/srv/git.debian.org/git/pkg-glibc/glibc.git



[glibc] 01/01: Update from upstream stable branch

2016-01-30 Thread Aurelien Jarno
This is an automated email from the git hooks/post-receive script.

aurel32 pushed a commit to branch jessie
in repository glibc.

commit aee812ba99f1f0d49c93e6f4a1b08b0d95147080
Author: Aurelien Jarno 
Date:   Sat Jan 30 12:43:26 2016 +0100

Update from upstream stable branch

- Fix an integer overflow in hcreate() and hcreate_r() (CVE-2015-8778).
  Closes: #812441.
---
 debian/changelog|   2 +
 debian/patches/git-updates.diff | 177 +++-
 2 files changed, 175 insertions(+), 4 deletions(-)

diff --git a/debian/changelog b/debian/changelog
index 0931f1b..07a33a8 100644
--- a/debian/changelog
+++ b/debian/changelog
@@ -4,6 +4,8 @@ glibc (2.19-18+deb8u3) UNRELEASED; urgency=medium
   * Update from upstream stable branch:
 - Fix segmentation fault caused by passing out-of-range data to strftime()
   (CVE-2015-8776).  Closes: #812445.
+- Fix an integer overflow in hcreate() and hcreate_r() (CVE-2015-8778).
+  Closes: #812441.
 - Fix multiple unbounded stack allocations in catopen() (CVE-2015-8779).
   Closes: #812455.
 
diff --git a/debian/patches/git-updates.diff b/debian/patches/git-updates.diff
index ceefe46..ca3bd98 100644
--- a/debian/patches/git-updates.diff
+++ b/debian/patches/git-updates.diff
@@ -1,10 +1,27 @@
 GIT update of git://sourceware.org/git/glibc.git/release/2.19/master from 
glibc-2.19
 
 diff --git a/ChangeLog b/ChangeLog
-index 81c393a..871c722 100644
+index 81c393a..e17bd64 100644
 --- a/ChangeLog
 +++ b/ChangeLog
-@@ -1,3 +1,422 @@
+@@ -1,3 +1,439 @@
++2016-01-27  Paul Eggert  
++
++  [BZ #18240]
++  * misc/hsearch_r.c (isprime, __hcreate_r): Protect against
++  unsigned int wraparound.
++
++2016-01-27  Florian Weimer  
++
++  [BZ #18240]
++  * misc/bug18240.c: New test.
++  * misc/Makefile (tests): Add it.
++
++2015-08-25  Ondřej Bílka  
++
++  [BZ #18240]
++  * misc/hsearch_r.c (__hcreate_r): Handle overflow.
++
 +2015-09-26  Paul Pluzhnikov  
 +
 +  [BZ #18985]
@@ -428,7 +445,7 @@ index 81c393a..871c722 100644
  
[BZ #16529]
 diff --git a/NEWS b/NEWS
-index 98b479e..44fe916 100644
+index 98b479e..0d1952c 100644
 --- a/NEWS
 +++ b/NEWS
 @@ -5,6 +5,65 @@ See the end for copying conditions.
@@ -442,7 +459,7 @@ index 98b479e..44fe916 100644
 +  15946, 16545, 16574, 16623, 16657, 16695, 16743, 16758, 16759, 16760,
 +  16878, 16882, 16885, 16916, 16932, 16943, 16958, 17048, 17062, 17069,
 +  17079, 17137, 17153, 17213, 17263, 17269, 17325, 17555, 17905, 18007,
-+  18032, 18287, 18905.
++  18032, 18240, 18287, 18905.
 +
 +* A buffer overflow in gethostbyname_r and related functions performing DNS
 +  requests has been fixed.  If the NSS functions were called with a
@@ -1618,6 +1635,158 @@ index 000..e3b21a9
 +
 +#define TEST_FUNCTION do_test ()
 +#include "../test-skeleton.c"
+diff --git a/misc/Makefile b/misc/Makefile
+index b039182..ad9e921 100644
+--- a/misc/Makefile
 b/misc/Makefile
+@@ -76,7 +76,8 @@ install-lib := libg.a
+ gpl2lgpl := error.c error.h
+ 
+ tests := tst-dirname tst-tsearch tst-fdset tst-efgcvt tst-mntent tst-hsearch \
+-   tst-error1 tst-pselect tst-insremque tst-mntent2 bug-hsearch1
++   tst-error1 tst-pselect tst-insremque tst-mntent2 bug-hsearch1 \
++   bug18240
+ ifeq ($(run-built-tests),yes)
+ tests: $(objpfx)tst-error1-mem
+ endif
+diff --git a/misc/bug18240.c b/misc/bug18240.c
+new file mode 100644
+index 000..4b26865
+--- /dev/null
 b/misc/bug18240.c
+@@ -0,0 +1,75 @@
++/* Test integer wraparound in hcreate.
++   Copyright (C) 2016 Free Software Foundation, Inc.
++   This file is part of the GNU C Library.
++
++   The GNU C Library is free software; you can redistribute it and/or
++   modify it under the terms of the GNU Lesser General Public
++   License as published by the Free Software Foundation; either
++   version 2.1 of the License, or (at your option) any later version.
++
++   The GNU C Library is distributed in the hope that it will be useful,
++   but WITHOUT ANY WARRANTY; without even the implied warranty of
++   MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
++   Lesser General Public License for more details.
++
++   You should have received a copy of the GNU Lesser General Public
++   License along with the GNU C Library; if not, see
++   .  */
++
++#include 
++#include 
++#include 
++#include 
++#include 
++#include 
++
++static void
++test_size (size_t size)
++{
++  int res = hcreate (size);
++  if (res == 0)
++{
++  if (errno == ENOMEM)
++return;
++  printf ("error: hcreate (%zu): %m\n", size);
++  exit (1);
++}
++  char *keys[100];
++  for (int i = 0; i < 100; ++i)
++{
++  if (asprintf (keys + i, "%d", i) < 0)
++{
++  printf ("error: asprintf: %m\n");
++  exit (1);
++

[glibc] 01/01: Update from upstream stable branch

2016-01-30 Thread Aurelien Jarno
This is an automated email from the git hooks/post-receive script.

aurel32 pushed a commit to branch sid
in repository glibc.

commit 6a0c9c0a8e4c94e7028cf908482e0224664db510
Author: Aurelien Jarno 
Date:   Sat Jan 30 12:32:19 2016 +0100

Update from upstream stable branch

- Fix an integer overflow in hcreate() and hcreate_r() (CVE-2015-8778).
  Closes: #812441.
---
 debian/changelog|   4 +-
 debian/patches/git-updates.diff | 169 ++--
 2 files changed, 165 insertions(+), 8 deletions(-)

diff --git a/debian/changelog b/debian/changelog
index 22de19a..5ca2880 100644
--- a/debian/changelog
+++ b/debian/changelog
@@ -1,6 +1,8 @@
 glibc (2.21-8) UNRELEASED; urgency=medium
 
-  * 
+  * Update from upstream stable branch:
+- Fix an integer overflow in hcreate() and hcreate_r() (CVE-2015-8778).
+  Closes: #812441.
 
  -- Aurelien Jarno   Sun, 24 Jan 2016 00:32:22 +0100
 
diff --git a/debian/patches/git-updates.diff b/debian/patches/git-updates.diff
index f01bba3..72b1427 100644
--- a/debian/patches/git-updates.diff
+++ b/debian/patches/git-updates.diff
@@ -1,10 +1,27 @@
 GIT update of git://sourceware.org/git/glibc.git/release/2.21/master from 
glibc-2.21
 
 diff --git a/ChangeLog b/ChangeLog
-index dc1ed1b..a3182f0 100644
+index dc1ed1b..a38da43 100644
 --- a/ChangeLog
 +++ b/ChangeLog
-@@ -1,3 +1,87 @@
+@@ -1,3 +1,104 @@
++2016-01-27  Paul Eggert  
++
++  [BZ #18240]
++  * misc/hsearch_r.c (isprime, __hcreate_r): Protect against
++  unsigned int wraparound.
++
++2016-01-27  Florian Weimer  
++
++  [BZ #18240]
++  * misc/bug18240.c: New test.
++  * misc/Makefile (tests): Add it.
++
++2015-08-25  Ondřej Bílka  
++
++  [BZ #18240]
++  * misc/hsearch_r.c (__hcreate_r): Handle overflow.
++
 +2015-09-26  Paul Pluzhnikov  
 +
 +  [BZ #18985]
@@ -92,7 +109,7 @@ index dc1ed1b..a3182f0 100644
  2015-02-06  Carlos O'Donell  
  
* version.h (RELEASE): Set to "stable".
-@@ -7,6 +91,7 @@
+@@ -7,6 +108,7 @@
* sysdeps/unix/sysv/linux/hppa/pthread.h: Sync with pthread.h.
  
  2015-02-05  Paul Pluzhnikov  
@@ -101,7 +118,7 @@ index dc1ed1b..a3182f0 100644
[BZ #16618]
* stdio-common/tst-sscanf.c (main): Test for buffer overflow.
 diff --git a/NEWS b/NEWS
-index 617cdbb..e659b75 100644
+index 617cdbb..40f8c90 100644
 --- a/NEWS
 +++ b/NEWS
 @@ -5,6 +5,28 @@ See the end for copying conditions.
@@ -112,7 +129,7 @@ index 617cdbb..e659b75 100644
 +
 +* The following bugs are resolved with this release:
 +
-+  17269, 17905, 17949, 18007, 18032, 18287, 18694, 18887, 18985.
++  17269, 17905, 17949, 18007, 18032, 18240, 18287, 18694, 18887, 18985.
 +
 +* A buffer overflow in gethostbyname_r and related functions performing DNS
 +  requests has been fixed.  If the NSS functions were called with a
@@ -415,7 +432,7 @@ index 43d847d..3993579 100644
wchar_t *newbuf
  = (wchar_t *) (*((_IO_strfile *) fp)->_s._allocate_buffer) (newsize
 diff --git a/misc/Makefile b/misc/Makefile
-index aecb0da..2f5edf6 100644
+index aecb0da..12055ce 100644
 --- a/misc/Makefile
 +++ b/misc/Makefile
 @@ -76,7 +76,8 @@ install-lib := libg.a
@@ -424,10 +441,148 @@ index aecb0da..2f5edf6 100644
  tests := tst-dirname tst-tsearch tst-fdset tst-efgcvt tst-mntent tst-hsearch \
 -   tst-error1 tst-pselect tst-insremque tst-mntent2 bug-hsearch1
 +   tst-error1 tst-pselect tst-insremque tst-mntent2 bug-hsearch1 \
-+   tst-mntent-blank-corrupt tst-mntent-blank-passno
++   tst-mntent-blank-corrupt tst-mntent-blank-passno bug18240
  ifeq ($(run-built-tests),yes)
  tests-special += $(objpfx)tst-error1-mem.out
  endif
+diff --git a/misc/bug18240.c b/misc/bug18240.c
+new file mode 100644
+index 000..4b26865
+--- /dev/null
 b/misc/bug18240.c
+@@ -0,0 +1,75 @@
++/* Test integer wraparound in hcreate.
++   Copyright (C) 2016 Free Software Foundation, Inc.
++   This file is part of the GNU C Library.
++
++   The GNU C Library is free software; you can redistribute it and/or
++   modify it under the terms of the GNU Lesser General Public
++   License as published by the Free Software Foundation; either
++   version 2.1 of the License, or (at your option) any later version.
++
++   The GNU C Library is distributed in the hope that it will be useful,
++   but WITHOUT ANY WARRANTY; without even the implied warranty of
++   MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
++   Lesser General Public License for more details.
++
++   You should have received a copy of the GNU Lesser General Public
++   License along with the GNU C Library; if not, see
++   .  */
++
++#include 
++#include 
++#include 
++#include 
++#include 
++#include 
++
++static void
++test_size (size_t size)
++{
++  int res = 

[glibc] 01/01: Update from upstream stable branch

2016-01-27 Thread Aurelien Jarno
This is an automated email from the git hooks/post-receive script.

aurel32 pushed a commit to branch jessie
in repository glibc.

commit 9792f19af42e3760fffc61cd1d8391d259f89214
Author: Aurelien Jarno 
Date:   Wed Jan 27 18:47:18 2016 +0100

Update from upstream stable branch

- Fix segmentation fault caused by passing out-of-range data to strftime()
  (CVE-2015-8776).  Closes: #812445.
- Fix multiple unbounded stack allocations in catopen() (CVE-2015-8779).
  Closes: #812455.
---
 debian/changelog|  11 ++
 debian/patches/git-updates.diff | 352 +++-
 2 files changed, 358 insertions(+), 5 deletions(-)

diff --git a/debian/changelog b/debian/changelog
index 2a1f090..0931f1b 100644
--- a/debian/changelog
+++ b/debian/changelog
@@ -1,3 +1,14 @@
+glibc (2.19-18+deb8u3) UNRELEASED; urgency=medium
+
+  [ Aurelien Jarno ]
+  * Update from upstream stable branch:
+- Fix segmentation fault caused by passing out-of-range data to strftime()
+  (CVE-2015-8776).  Closes: #812445.
+- Fix multiple unbounded stack allocations in catopen() (CVE-2015-8779).
+  Closes: #812455.
+
+ -- Aurelien Jarno   Wed, 27 Jan 2016 18:46:44 +0100
+
 glibc (2.19-18+deb8u2) stable; urgency=medium
 
   [ Aurelien Jarno ]
diff --git a/debian/patches/git-updates.diff b/debian/patches/git-updates.diff
index d994466..ceefe46 100644
--- a/debian/patches/git-updates.diff
+++ b/debian/patches/git-updates.diff
@@ -1,10 +1,26 @@
 GIT update of git://sourceware.org/git/glibc.git/release/2.19/master from 
glibc-2.19
 
 diff --git a/ChangeLog b/ChangeLog
-index 81c393a..e82ba7d 100644
+index 81c393a..871c722 100644
 --- a/ChangeLog
 +++ b/ChangeLog
-@@ -1,3 +1,406 @@
+@@ -1,3 +1,422 @@
++2015-09-26  Paul Pluzhnikov  
++
++  [BZ #18985]
++  * time/strftime_l.c (a_wkday, f_wkday, a_month, f_month): Range check.
++  (__strftime_internal): Likewise.
++  * time/tst-strftime.c (do_bz18985): New test.
++  (do_test): Call it.
++
++2015-08-08  Paul Pluzhnikov  
++
++  [BZ #17905]
++  * catgets/Makefile (tst-catgets-mem): New test.
++  * catgets/catgets.c (catopen): Don't use unbounded alloca.
++  * catgets/open_catalog.c (__open_catalog): Likewise.
++  * catgets/tst-catgets.c (do_bz17905): Test unbounded alloca.
++
 +2015-12-20  Siddhesh Poyarekar  
 +
 +  [BZ #16758]
@@ -412,7 +428,7 @@ index 81c393a..e82ba7d 100644
  
[BZ #16529]
 diff --git a/NEWS b/NEWS
-index 98b479e..2972c4a 100644
+index 98b479e..44fe916 100644
 --- a/NEWS
 +++ b/NEWS
 @@ -5,6 +5,65 @@ See the end for copying conditions.
@@ -425,8 +441,8 @@ index 98b479e..2972c4a 100644
 +
 +  15946, 16545, 16574, 16623, 16657, 16695, 16743, 16758, 16759, 16760,
 +  16878, 16882, 16885, 16916, 16932, 16943, 16958, 17048, 17062, 17069,
-+  17079, 17137, 17153, 17213, 17263, 17269, 17325, 17555, 18007, 18032,
-+  18287.
++  17079, 17137, 17153, 17213, 17263, 17269, 17325, 17555, 17905, 18007,
++  18032, 18287, 18905.
 +
 +* A buffer overflow in gethostbyname_r and related functions performing DNS
 +  requests has been fixed.  If the NSS functions were called with a
@@ -481,6 +497,214 @@ index 98b479e..2972c4a 100644
  Version 2.19
  
  * The following bugs are resolved with this release:
+diff --git a/catgets/Makefile b/catgets/Makefile
+index c95442d..8c39e3d 100644
+--- a/catgets/Makefile
 b/catgets/Makefile
+@@ -45,14 +45,14 @@ catgets-CPPFLAGS := 
-DNLSPATH='"$(msgcatdir)/%L/%N:$(msgcatdir)/%L/LC_MESSAGES/%
+ CPPFLAGS-gencat = -DNOT_IN_libc
+ 
+ generated = de.msg test1.cat test1.h test2.cat test2.h sample.SJIS.cat \
+-  test-gencat.h
++  test-gencat.h tst-catgets.mtrace tst-catgets-mem.out
+ generated-dirs = de
+ 
+-tst-catgets-ENV = NLSPATH="$(objpfx)%l/%N.cat" LANG=de
++tst-catgets-ENV = NLSPATH="$(objpfx)%l/%N.cat" LANG=de 
MALLOC_TRACE=$(objpfx)tst-catgets.mtrace
+ 
+ ifeq ($(run-built-tests),yes)
+ tests: $(objpfx)de/libc.cat $(objpfx)test1.cat $(objpfx)test2.cat \
+-   $(objpfx)test-gencat.out
++   $(objpfx)test-gencat.out $(objpfx)tst-catgets-mem.out
+ # This test just checks whether the program produces any error or not.
+ # The result is not tested.
+ $(objpfx)test1.cat: test1.msg $(objpfx)gencat
+@@ -80,4 +80,9 @@ $(objpfx)test-gencat.out: test-gencat.sh 
$(objpfx)test-gencat \
+ $(objpfx)sample.SJIS.cat: sample.SJIS $(objpfx)gencat
+   GCONV_PATH=$(common-objpfx)iconvdata LC_ALL=C \
+   $(built-program-cmd) -H $(objpfx)test-gencat.h < $(word 1,$^) > $@
++
++$(objpfx)tst-catgets-mem.out: $(objpfx)tst-catgets.out
++  $(common-objpfx)malloc/mtrace $(objpfx)tst-catgets.mtrace > $@; \
++  $(evaluate-test)
++
+ endif
+diff --git a/catgets/catgets.c b/catgets/catgets.c
+index eac2827..820c0f6 100644
+--- a/catgets/catgets.c
 b/catgets/catgets.c
+@@ -16,7 +16,6 @@
+License along with the GNU C