]> Cypherpunks repositories - gostls13.git/commit
[release-branch.go1.3] runtime: keep g->syscallsp consistent after cgo->Go callbacks
authorRuss Cox <rsc@golang.org>
Thu, 25 Sep 2014 22:06:45 +0000 (08:06 +1000)
committerAndrew Gerrand <adg@golang.org>
Thu, 25 Sep 2014 22:06:45 +0000 (08:06 +1000)
commit7935b51b8b5cbc07f572a28dc2f82e03e5fcb449
tree278f2d9fbe3245110bc8f2d04186531b9e74624c
parenta3bfff1fbd67a91c1397abf5ec0332ac636c5360
[release-branch.go1.3] runtime: keep g->syscallsp consistent after cgo->Go callbacks

This is a manual backport of CL 131910043
to the Go 1.3 release branch.

We believe this CL can cause arbitrary corruption
in programs that call into C from Go and then
call back into Go from C.

This change will be released in Go 1.3.2.

LGTM=iant
R=iant, hector
CC=adg, dvyukov, golang-codereviews, r
https://golang.org/cl/142690043
misc/cgo/test/cgo_test.go
misc/cgo/test/issue7978.go [new file with mode: 0644]
src/pkg/runtime/cgocall.c
src/pkg/runtime/proc.c
src/pkg/runtime/runtime.h
src/run.bash
src/run.bat