diff options
author | Austin Clements <austin@google.com> | 2019-12-02 17:36:25 -0500 |
---|---|---|
committer | Austin Clements <austin@google.com> | 2019-12-05 01:48:14 +0000 |
commit | 8174f7fb2b64c221f7f80c9f7fd4d7eb317ac8bb (patch) | |
tree | 14e617cf022bfc197221468d24c1a66bed6c193c /src/runtime/os_linux_ppc64x.go | |
parent | fa3a121a79f85a4c957f29372b5ebfde7211a980 (diff) | |
download | go-git-8174f7fb2b64c221f7f80c9f7fd4d7eb317ac8bb.tar.gz |
runtime: mlock top of signal stack on Linux 5.2–5.4.1
Linux 5.2 introduced a bug that can corrupt vector registers on return
from a signal if the signal stack isn't faulted in:
https://bugzilla.kernel.org/show_bug.cgi?id=205663
This CL works around this by mlocking the top page of all Go signal
stacks on the affected kernels.
Fixes #35326, #35777
Change-Id: I77c80a2baa4780827633f92f464486caa222295d
Reviewed-on: https://go-review.googlesource.com/c/go/+/209899
Run-TryBot: Austin Clements <austin@google.com>
TryBot-Result: Gobot Gobot <gobot@golang.org>
Reviewed-by: Cherry Zhang <cherryyz@google.com>
Reviewed-by: Ian Lance Taylor <iant@golang.org>
Reviewed-by: David Chase <drchase@google.com>
Diffstat (limited to 'src/runtime/os_linux_ppc64x.go')
-rw-r--r-- | src/runtime/os_linux_ppc64x.go | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/runtime/os_linux_ppc64x.go b/src/runtime/os_linux_ppc64x.go index cc79cc4a66..3aedc23ef9 100644 --- a/src/runtime/os_linux_ppc64x.go +++ b/src/runtime/os_linux_ppc64x.go @@ -20,3 +20,5 @@ func archauxv(tag, val uintptr) { cpu.HWCap2 = uint(val) } } + +func osArchInit() {} |