]> Cypherpunks repositories - gostls13.git/commitdiff
runtime: reset stack poison flag accidentally set
authorDavid Chase <drchase@google.com>
Tue, 23 Feb 2021 19:02:33 +0000 (14:02 -0500)
committerDavid Chase <drchase@google.com>
Tue, 23 Feb 2021 21:49:46 +0000 (21:49 +0000)
See if this clears failure on openbsd-amd64-68 (ahem).

Change-Id: Ifa60ef711a95e5de8ad91433ffa425f75b36c76f
Reviewed-on: https://go-review.googlesource.com/c/go/+/295629
Trust: David Chase <drchase@google.com>
Run-TryBot: David Chase <drchase@google.com>
Reviewed-by: Cherry Zhang <cherryyz@google.com>
src/runtime/stack.go

index c572f7296f9635dd3b9b587e389548d1e7a64862..d971e5e26f8e544259606e8a73522c2bf0e4afa7 100644 (file)
@@ -112,7 +112,7 @@ const (
        stackDebug       = 0
        stackFromSystem  = 0 // allocate stacks from system memory instead of the heap
        stackFaultOnFree = 0 // old stacks are mapped noaccess to detect use after free
-       stackPoisonCopy  = 1 // fill stack that should not be accessed with garbage, to detect bad dereferences during copy
+       stackPoisonCopy  = 0 // fill stack that should not be accessed with garbage, to detect bad dereferences during copy
        stackNoCache     = 0 // disable per-P small stack caches
 
        // check the BP links during traceback.