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.9000-999-gc85c564


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  c85c564d1442f0bc09a6c80fca025f004e12d044 (commit)
      from  368b6c8da9f8ae453f5d70f8a62dbf3f1b6d5995 (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=c85c564d1442f0bc09a6c80fca025f004e12d044

commit c85c564d1442f0bc09a6c80fca025f004e12d044
Author: Sergei Trofimovich <slyfox@gentoo.org>
Date:   Mon Dec 18 18:26:49 2017 +0000

    mips32: fix clobbering s0 in setjmp() [BZ #22624]
    
    Similar to commit 1ab47db00dfbc0128119e3503d3ed640ffc4830b
    ("mips64: fix clobbering s0 in setjmp() [BZ #22624]")
    as sysdeps/mips/setjmp_aux.c is almost an identical copy
    of sysdeps/mips/mips64/setjmp_aux.c.
    
    	[BZ #22624]
    	* sysdeps/mips/setjmp_aux.c (__sigsetjmp_aux): Use
    	inhibit_stack_protector.

diff --git a/ChangeLog b/ChangeLog
index 4a71643..31b25ab 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,6 +1,10 @@
 2017-12-18  Sergei Trofimovich  <slyfox@gentoo.org>
 
 	[BZ #22624]
+	* sysdeps/mips/setjmp_aux.c (__sigsetjmp_aux): Use
+	inhibit_stack_protector.
+
+	[BZ #22624]
 	* sysdeps/mips/mips64/setjmp_aux.c (__sigsetjmp_aux): Use
 	inhibit_stack_protector.
 
diff --git a/sysdeps/mips/setjmp_aux.c b/sysdeps/mips/setjmp_aux.c
index 0052e0c..176243b 100644
--- a/sysdeps/mips/setjmp_aux.c
+++ b/sysdeps/mips/setjmp_aux.c
@@ -23,7 +23,12 @@
    pointer.  We do things this way because it's difficult to reliably
    access them in C.  */
 
+/* Stack protection is disabled to avoid changing s0 (or any other
+   caller-save register) before storing it to environment.
+   See BZ #22624.  */
+
 int __attribute__ ((nomips16))
+inhibit_stack_protector
 __sigsetjmp_aux (jmp_buf env, int savemask, int sp, int fp)
 {
 #ifdef __mips_hard_float

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

Summary of changes:
 ChangeLog                 |    4 ++++
 sysdeps/mips/setjmp_aux.c |    5 +++++
 2 files changed, 9 insertions(+), 0 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]