mirror of
https://github.com/golang/go.git
synced 2025-12-08 06:10:04 +00:00
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>
This commit is contained in:
parent
daaab44f31
commit
1c8d1f45ba
4 changed files with 33 additions and 7 deletions
|
|
@ -227,3 +227,14 @@ type sockaddr_un struct {
|
|||
family uint16
|
||||
path [108]byte
|
||||
}
|
||||
|
||||
const __NEW_UTS_LEN = 64
|
||||
|
||||
type new_utsname struct {
|
||||
sysname [__NEW_UTS_LEN + 1]byte
|
||||
nodename [__NEW_UTS_LEN + 1]byte
|
||||
release [__NEW_UTS_LEN + 1]byte
|
||||
version [__NEW_UTS_LEN + 1]byte
|
||||
machine [__NEW_UTS_LEN + 1]byte
|
||||
domainname [__NEW_UTS_LEN + 1]byte
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue