From 8174f7fb2b64c221f7f80c9f7fd4d7eb317ac8bb Mon Sep 17 00:00:00 2001 From: Austin Clements Date: Mon, 2 Dec 2019 17:36:25 -0500 Subject: =?UTF-8?q?runtime:=20mlock=20top=20of=20signal=20stack=20on=20Lin?= =?UTF-8?q?ux=205.2=E2=80=935.4.1?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 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 TryBot-Result: Gobot Gobot Reviewed-by: Cherry Zhang Reviewed-by: Ian Lance Taylor Reviewed-by: David Chase --- src/runtime/os_linux_ppc64x.go | 2 ++ 1 file changed, 2 insertions(+) (limited to 'src/runtime/os_linux_ppc64x.go') 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() {} -- cgit v1.2.1