GNU C Library master sources branch gentoo/2.22 updated. glibc-2.22-26-gbf6a73f

vapier@sourceware.org vapier@sourceware.org
Sat Oct 17 04:54:00 GMT 2015


This is an automated email from the git hooks/post-receive script. It was
generated because a ref change was pushed to the repository containing
the project "GNU C Library master sources".

The branch, gentoo/2.22 has been updated
       via  bf6a73fb389728f297d942f403bfeac150249a66 (commit)
       via  5c4ac5014823e2bc93f74d4a8ac5502f01a9753f (commit)
       via  cdb1aad567b85b880a1325eb88555b8c8da9159b (commit)
       via  6ff3aac23c2caa5c669e74da5f6c5a7264f51e39 (commit)
      from  adf228f91c11a1bcdf7563d104a2a370d054e482 (commit)

Those revisions listed above that are new to this repository have
not appeared on any other notification email; so we list those
revisions in full, below.

- Log -----------------------------------------------------------------
http://sourceware.org/git/gitweb.cgi?p=glibc.git;a=commitdiff;h=bf6a73fb389728f297d942f403bfeac150249a66

commit bf6a73fb389728f297d942f403bfeac150249a66
Author: Florian Weimer <fweimer@redhat.com>
Date:   Thu Oct 15 09:23:07 2015 +0200

    Always enable pointer guard [BZ #18928]
    
    Honoring the LD_POINTER_GUARD environment variable in AT_SECURE mode
    has security implications.  This commit enables pointer guard
    unconditionally, and the environment variable is now ignored.
    
            [BZ #18928]
            * sysdeps/generic/ldsodefs.h (struct rtld_global_ro): Remove
            _dl_pointer_guard member.
            * elf/rtld.c (_rtld_global_ro): Remove _dl_pointer_guard
            initializer.
            (security_init): Always set up pointer guard.
            (process_envvars): Do not process LD_POINTER_GUARD.
    
    (cherry picked from commit a014cecd82b71b70a6a843e250e06b541ad524f7)
    (cherry picked from commit dc22a1ec157d02529a0b17986679d3f1c122985e)

diff --git a/elf/rtld.c b/elf/rtld.c
index 69873c2..07e741c 100644
--- a/elf/rtld.c
+++ b/elf/rtld.c
@@ -162,7 +162,6 @@ struct rtld_global_ro _rtld_global_ro attribute_relro =
     ._dl_hwcap_mask = HWCAP_IMPORTANT,
     ._dl_lazy = 1,
     ._dl_fpu_control = _FPU_DEFAULT,
-    ._dl_pointer_guard = 1,
     ._dl_pagesize = EXEC_PAGESIZE,
     ._dl_inhibit_cache = 0,
 
@@ -709,15 +708,12 @@ security_init (void)
 #endif
 
   /* Set up the pointer guard as well, if necessary.  */
-  if (GLRO(dl_pointer_guard))
-    {
-      uintptr_t pointer_chk_guard = _dl_setup_pointer_guard (_dl_random,
-							     stack_chk_guard);
+  uintptr_t pointer_chk_guard
+    = _dl_setup_pointer_guard (_dl_random, stack_chk_guard);
 #ifdef THREAD_SET_POINTER_GUARD
-      THREAD_SET_POINTER_GUARD (pointer_chk_guard);
+  THREAD_SET_POINTER_GUARD (pointer_chk_guard);
 #endif
-      __pointer_chk_guard_local = pointer_chk_guard;
-    }
+  __pointer_chk_guard_local = pointer_chk_guard;
 
   /* We do not need the _dl_random value anymore.  The less
      information we leave behind, the better, so clear the
@@ -2471,9 +2467,6 @@ process_envvars (enum mode *modep)
 	      GLRO(dl_use_load_bias) = envline[14] == '1' ? -1 : 0;
 	      break;
 	    }
-
-	  if (memcmp (envline, "POINTER_GUARD", 13) == 0)
-	    GLRO(dl_pointer_guard) = envline[14] != '0';
 	  break;
 
 	case 14:
diff --git a/sysdeps/generic/ldsodefs.h b/sysdeps/generic/ldsodefs.h
index 7a0fe8d..78e3a97 100644
--- a/sysdeps/generic/ldsodefs.h
+++ b/sysdeps/generic/ldsodefs.h
@@ -592,9 +592,6 @@ struct rtld_global_ro
   /* List of auditing interfaces.  */
   struct audit_ifaces *_dl_audit;
   unsigned int _dl_naudit;
-
-  /* 0 if internal pointer values should not be guarded, 1 if they should.  */
-  EXTERN int _dl_pointer_guard;
 };
 # define __rtld_global_attribute__
 # if IS_IN (rtld)

http://sourceware.org/git/gitweb.cgi?p=glibc.git;a=commitdiff;h=5c4ac5014823e2bc93f74d4a8ac5502f01a9753f

commit 5c4ac5014823e2bc93f74d4a8ac5502f01a9753f
Author: Roland McGrath <roland@hack.frob.com>
Date:   Tue Sep 15 15:27:58 2015 -0700

    Use HOST_NAME_MAX for MAXHOSTNAMELEN in <sys/param.h>.
    
    (cherry picked from commit 51f24be7ba5d15313ae94f8fb4500ce07cb98c84)
    (cherry picked from commit 666bb4dc55f5a93538d020024c34abad641f50ae)

diff --git a/misc/sys/param.h b/misc/sys/param.h
index 62b7ed2..1908b93 100644
--- a/misc/sys/param.h
+++ b/misc/sys/param.h
@@ -50,6 +50,9 @@
 #if !defined NOFILE && defined OPEN_MAX
 # define NOFILE		OPEN_MAX
 #endif
+#if !defined MAXHOSTNAMELEN && defined HOST_NAME_MAX
+# define MAXHOSTNAMELEN	HOST_NAME_MAX
+#endif
 #ifndef NCARGS
 # ifdef ARG_MAX
 #  define NCARGS	ARG_MAX

http://sourceware.org/git/gitweb.cgi?p=glibc.git;a=commitdiff;h=cdb1aad567b85b880a1325eb88555b8c8da9159b

commit cdb1aad567b85b880a1325eb88555b8c8da9159b
Author: Roland McGrath <roland@hack.frob.com>
Date:   Fri Sep 4 14:37:56 2015 -0700

    BZ#18921: Fix opendir inverted o_directory_works test.
    
    (cherry picked from commit bd9e69abb887d78d0d6708fc089cc9f3eabf106d)
    (cherry picked from commit 5c8c3123652045191474a4ca85fbb6e8d9e7d2bc)

diff --git a/sysdeps/posix/opendir.c b/sysdeps/posix/opendir.c
index 6509f5c..9edf056 100644
--- a/sysdeps/posix/opendir.c
+++ b/sysdeps/posix/opendir.c
@@ -105,7 +105,7 @@ need_isdir_precheck (void)
     tryopen_o_directory ();
 
   /* We can skip the expensive `stat' call if O_DIRECTORY works.  */
-  return o_directory_works > 0;
+  return o_directory_works < 0;
 #endif
   return true;
 }

http://sourceware.org/git/gitweb.cgi?p=glibc.git;a=commitdiff;h=6ff3aac23c2caa5c669e74da5f6c5a7264f51e39

commit 6ff3aac23c2caa5c669e74da5f6c5a7264f51e39
Author: Brett Neumeier <brett@neumeier.us>
Date:   Mon Aug 31 15:27:21 2015 -0700

    Fix non-v9 32-bit sparc build.
    
    	[BZ #18870]
    	* sysdeps/sparc/sparc32/sem_open.c: Add missing #include
    
    (cherry picked from commit 36c6e27a26b0afe0187f8790990cf880abdbf244)

diff --git a/sysdeps/sparc/sparc32/sem_open.c b/sysdeps/sparc/sparc32/sem_open.c
index 16cb9ad..59df2d7 100644
--- a/sysdeps/sparc/sparc32/sem_open.c
+++ b/sysdeps/sparc/sparc32/sem_open.c
@@ -29,6 +29,7 @@
 #include <sys/mman.h>
 #include <sys/stat.h>
 #include "semaphoreP.h"
+#include <futex-internal.h>
 #include <shm-directory.h>
 
 

-----------------------------------------------------------------------

Summary of changes:
 elf/rtld.c                       |   15 ++++-----------
 misc/sys/param.h                 |    3 +++
 sysdeps/generic/ldsodefs.h       |    3 ---
 sysdeps/posix/opendir.c          |    2 +-
 sysdeps/sparc/sparc32/sem_open.c |    1 +
 5 files changed, 9 insertions(+), 15 deletions(-)


hooks/post-receive
-- 
GNU C Library master sources



More information about the Glibc-cvs mailing list