]> Cypherpunks.ru repositories - gostls13.git/commit
runtime: mlock signal stack on macOS/ARM64
authorCherry Zhang <cherryyz@google.com>
Fri, 27 Nov 2020 05:42:41 +0000 (00:42 -0500)
committerCherry Zhang <cherryyz@google.com>
Mon, 30 Nov 2020 22:14:36 +0000 (22:14 +0000)
commit7f688d18c0ae6df3e895d21799b8ece7d5941293
tree3dc79202b2267040ee7f7d6fea933466ade45986
parentd2b436d95d99cb3ff587bf0d2e893a8d027f8292
runtime: mlock signal stack on macOS/ARM64

Apparently, the macOS ARM64 kernel has a bug where when a signal
arrives and the signal stack is not currently faulted in, it may
kill the program with a SIGILL. Work around it by mlock the
signal stacks.

Fixes #42774.

Change-Id: I99a4b3fdb6d8af1c945725ddc2c25568d81c510a
Reviewed-on: https://go-review.googlesource.com/c/go/+/273686
Trust: Cherry Zhang <cherryyz@google.com>
Reviewed-by: Austin Clements <austin@google.com>
Run-TryBot: Austin Clements <austin@google.com>
TryBot-Result: Go Bot <gobot@golang.org>
src/runtime/os_darwin.go
src/runtime/sys_darwin.go
src/runtime/sys_darwin_amd64.s
src/runtime/sys_darwin_arm64.s