]> Cypherpunks repositories - gostls13.git/commit
runtime: mlock top of signal stack on both amd64 and 386
authorAustin Clements <austin@google.com>
Mon, 9 Dec 2019 03:24:10 +0000 (22:24 -0500)
committerAustin Clements <austin@google.com>
Mon, 9 Dec 2019 14:41:00 +0000 (14:41 +0000)
commit1c8d1f45ba7b72836dfe93fc680dfb27ef174965
treee556890fc4cd91c57f71b74c567730e164c91d75
parentdaaab44f3124aff61937fa7e118f02d4ff82166c
runtime: mlock top of signal stack on both amd64 and 386

CL 209899 worked around an issue that corrupts vector registers in
recent versions of the Linux kernel by mlocking the top page of every
signal stack on amd64. However, the underlying issue also affects the
XMM registers on 386. This CL applies the mlock fix to both amd64 and
386.

Fixes #35777 (again).

Change-Id: I9886f2dc4c23625421296bd5518d5fd3288bfe48
Reviewed-on: https://go-review.googlesource.com/c/go/+/210345
Run-TryBot: Austin Clements <austin@google.com>
Reviewed-by: Brad Fitzpatrick <bradfitz@golang.org>
Reviewed-by: Ian Lance Taylor <iant@golang.org>
Reviewed-by: David Chase <drchase@google.com>
TryBot-Result: Gobot Gobot <gobot@golang.org>
src/runtime/defs_linux_386.go
src/runtime/os_linux_386.go [deleted file]
src/runtime/os_linux_x86.go [moved from src/runtime/os_linux_amd64.go with 98% similarity]
src/runtime/sys_linux_386.s