diff options
author | Christopher Faylor <me@cgf.cx> | 2007-08-09 21:20:09 +0400 |
---|---|---|
committer | Christopher Faylor <me@cgf.cx> | 2007-08-09 21:20:09 +0400 |
commit | a680a5325833f7ac5c4ee2b272a6f529192ead54 (patch) | |
tree | 228194ff6a802d63f7662c4e4d703f1f18928eb9 /winsup/cygwin/gendef | |
parent | 7d5f6c188746c6682389cf8a7830d63fb3c9743b (diff) |
* gendef (sigbe): Reset "incyg" while the stack lock is active to avoid a
potential race.
Diffstat (limited to 'winsup/cygwin/gendef')
-rwxr-xr-x | winsup/cygwin/gendef | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/winsup/cygwin/gendef b/winsup/cygwin/gendef index 4f60ea686..0d7df4b09 100755 --- a/winsup/cygwin/gendef +++ b/winsup/cygwin/gendef @@ -158,9 +158,9 @@ __sigbe: # return here after cygwin syscall xorl %edx,%edx xchgl %edx,-4(%eax) # get return address from signal stack xchgl %edx,8(%esp) # restore edx/real return address + decl $tls::incyg(%ebx) decl $tls::stacklock(%ebx) # release lock popl %eax - decl $tls::incyg(%ebx) popl %ebx ret |