]> Cypherpunks repositories - gostls13.git/commit
runtime: don't call msanread when running on the system stack
authorIan Lance Taylor <iant@golang.org>
Wed, 4 Nov 2015 20:30:30 +0000 (12:30 -0800)
committerIan Lance Taylor <iant@golang.org>
Wed, 11 Nov 2015 06:04:04 +0000 (06:04 +0000)
commit880a689124161f9dc342255ba8fe326719eb8de1
treecd4c5e8302d3502273c38a195738b74e6dad9912
parent8f3f2ccac077c73249349e9cf975dcca7e803f6a
runtime: don't call msanread when running on the system stack

The runtime is not instrumented, but the calls to msanread in the
runtime can sometimes refer to the system stack.  An example is the call
to copy in stkbucket in mprof.go.  Depending on what C code has done,
the system stack may appear uninitialized to msan.

Change-Id: Ic21705b9ac504ae5cf7601a59189302f072e7db1
Reviewed-on: https://go-review.googlesource.com/16660
Reviewed-by: David Crawshaw <crawshaw@golang.org>
misc/cgo/testsanitizers/msan.go
misc/cgo/testsanitizers/msan2.go
misc/cgo/testsanitizers/msan4.go [new file with mode: 0644]
misc/cgo/testsanitizers/msan_fail.go
misc/cgo/testsanitizers/test.bash
src/runtime/msan.go
src/runtime/msan_amd64.s