This is the mail archive of the glibc-cvs@sourceware.org mailing list for the glibc project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

GNU C Library master sources branch master updated. glibc-2.26-567-ge4f530d


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, master has been updated
       via  e4f530da0db59ff51549c11ed6ef799b4ade1c87 (commit)
      from  8644588807215ab09716ac04a150f91ac83acffd (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=e4f530da0db59ff51549c11ed6ef799b4ade1c87

commit e4f530da0db59ff51549c11ed6ef799b4ade1c87
Author: Peter Zelezny <peter.zelezny@dektech.com.au>
Date:   Fri Oct 13 22:49:49 2017 +0200

    nptl: Preserve error in setxid thread broadcast in coredumps [BZ #22153]

diff --git a/ChangeLog b/ChangeLog
index 5effbd7..9121cf6 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,9 @@
+2017-10-13  Peter Zelezny  <peter.zelezny@dektech.com.au>
+
+	[BZ #22153]
+	* nptl/allocatestack.c (__nptl_setxid_error): Preserve error code
+	in coredumps.
+
 2017-10-13  James Clarke  <jrtc27@jrtc27.com>
 
 	* sysdeps/powerpc/powerpc32/dl-machine.h (elf_machine_rela):
diff --git a/nptl/allocatestack.c b/nptl/allocatestack.c
index 196371a..ad9add8 100644
--- a/nptl/allocatestack.c
+++ b/nptl/allocatestack.c
@@ -1105,8 +1105,13 @@ __nptl_setxid_error (struct xid_command *cmdp, int error)
       if (olderror == error)
 	break;
       if (olderror != -1)
-	/* Mismatch between current and previous results.  */
-	abort ();
+	{
+	  /* Mismatch between current and previous results.  Save the
+	     error value to memory so that is not clobbered by the
+	     abort function and preserved in coredumps.  */
+	  volatile int xid_err __attribute__((unused)) = error;
+	  abort ();
+	}
     }
   while (atomic_compare_and_exchange_bool_acq (&cmdp->error, error, -1));
 }

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

Summary of changes:
 ChangeLog            |    6 ++++++
 nptl/allocatestack.c |    9 +++++++--
 2 files changed, 13 insertions(+), 2 deletions(-)


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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]