This is the mail archive of the
glibc-cvs@sourceware.org
mailing list for the glibc project.
GNU C Library master sources branch master updated. glibc-2.24-179-g444eacb
- From: sthibaul at sourceware dot org
- To: glibc-cvs at sourceware dot org
- Date: 22 Sep 2016 00:44:48 -0000
- Subject: GNU C Library master sources branch master updated. glibc-2.24-179-g444eacb
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 444eacba82f675d4657ad55da67b355536be90ab (commit)
from e67f54ab1a6253dd69cb2c770d785c7eb6d2172c (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=444eacba82f675d4657ad55da67b355536be90ab
commit 444eacba82f675d4657ad55da67b355536be90ab
Author: Samuel Thibault <samuel.thibault@ens-lyon.org>
Date: Thu Sep 22 02:43:39 2016 +0200
hurd: Fix stack pointer corruption in syscall
Thanks Justus Winter for the report.
* sysdeps/mach/i386/syscall.S (syscall): Push back syscall number.
diff --git a/ChangeLog b/ChangeLog
index b2add6a..abd6995 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -14,6 +14,7 @@
_hurd_malloc_fork_prepare after that. Call _hurd_malloc_fork_parent
before __malloc_fork_unlock_parent and _hurd_malloc_fork_child before
__malloc_fork_unlock_child.
+ * sysdeps/mach/i386/syscall.S (syscall): Push back syscall number.
2016-09-21 James Greenhalgh <james.greenhalgh@arm.com>
diff --git a/sysdeps/mach/i386/syscall.S b/sysdeps/mach/i386/syscall.S
index adb7716..643cddc 100644
--- a/sysdeps/mach/i386/syscall.S
+++ b/sysdeps/mach/i386/syscall.S
@@ -22,5 +22,8 @@ ENTRY (syscall)
popl %eax /* Pop syscall number into %eax. */
pushl %ecx /* Push back return address. */
.byte 0x9a, 0, 0, 0, 0, 7, 0 /* lcall $7, $0 -- gas bug */
+ popl %ecx /* Pop return address into %ecx. */
+ pushl $0 /* Push back dumb syscall number. */
+ pushl %ecx /* Push back return address. */
ret
END (syscall)
-----------------------------------------------------------------------
Summary of changes:
ChangeLog | 1 +
sysdeps/mach/i386/syscall.S | 3 +++
2 files changed, 4 insertions(+), 0 deletions(-)
hooks/post-receive
--
GNU C Library master sources