]> Cypherpunks repositories - gostls13.git/commit
runtime: correct new thread stack for openbsd MAP_STACK
authorJoel Sing <joel@sing.id.au>
Mon, 9 Jul 2018 18:54:37 +0000 (04:54 +1000)
committerBrad Fitzpatrick <bradfitz@golang.org>
Wed, 11 Jul 2018 17:58:23 +0000 (17:58 +0000)
commit8ec35ab66ae4abdb98b3b0d7c3ca4522601c7168
tree6c7b8fef317631417ad80f8bc7c166a5ea5c0bee
parent6fe7b434160c84cbac1157073a795ac6e9f30479
runtime: correct new thread stack for openbsd MAP_STACK

OpenBSD 6.4 will require the stack pointer to be pointing at an area that is
marked as MAP_STACK when entering and exiting syscalls. Adjust the stack pointer
used for a new thread such that it points within the stack, not at the top of
it (i.e. outside).

Fixes #26142

Change-Id: I905bd8e5be3dfc325392e7ac490fb56a7c71b3aa
Reviewed-on: https://go-review.googlesource.com/122735
Reviewed-by: Austin Clements <austin@google.com>
Run-TryBot: Austin Clements <austin@google.com>
TryBot-Result: Gobot Gobot <gobot@golang.org>
src/runtime/os_openbsd.go