]> Cypherpunks repositories - gostls13.git/commit
runtime/cgo: when using msan explicitly unpoison cgoCallers
authorIan Lance Taylor <iant@golang.org>
Thu, 5 Aug 2021 03:55:28 +0000 (20:55 -0700)
committerIan Lance Taylor <iant@golang.org>
Mon, 9 Aug 2021 14:48:39 +0000 (14:48 +0000)
commit7aeaad5c86174f61b084d72d89fb02d7fc64391c
tree862487ba7d1fbf274b7a30b539e66922d2d2630c
parent507cc341ec2cb96b0199800245f222146f799266
runtime/cgo: when using msan explicitly unpoison cgoCallers

This avoids an incorrect msan uninitialized memory report when using
runtime.SetCgoTraceback when a signal occurs while the fifth argument
register is undefined. See the issue for more details.

Fixes #47543

Change-Id: I3d1b673e2c93471ccdae0171a99b88b5a6062840
Reviewed-on: https://go-review.googlesource.com/c/go/+/339902
Trust: Ian Lance Taylor <iant@golang.org>
Run-TryBot: Ian Lance Taylor <iant@golang.org>
TryBot-Result: Go Bot <gobot@golang.org>
Reviewed-by: Austin Clements <austin@google.com>
misc/cgo/testsanitizers/msan_test.go
misc/cgo/testsanitizers/testdata/msan8.go [new file with mode: 0644]
src/runtime/cgo/gcc_traceback.c