]> Cypherpunks repositories - gostls13.git/commit
runtime: support control flow guard on windows/amd64
authorqmuntal <quimmuntal@gmail.com>
Sun, 2 Oct 2022 11:24:34 +0000 (13:24 +0200)
committerMichael Pratt <mpratt@google.com>
Thu, 3 Nov 2022 17:41:30 +0000 (17:41 +0000)
commit5c0d314adcc605e0198b2bb45a34db701c9e072c
tree195ffa013d5a0e9b4aa4a1b2ab86b1bb891b5137
parent7abc8a2e3370bd013d9aa12b5d443e21537dfb26
runtime: support control flow guard on windows/amd64

The stack pointer must lie within system stack limits
when Control Flow Guard (CFG) is enabled on Windows.

This CL updates runtime.sigtramp to honor this restriction by
porting some code from the windows/arm64 version, which
already supports CFG.

Fixes #53560

Change-Id: I7f88f9ae788b2bac38aac898b2567f1bea62f8f3
Reviewed-on: https://go-review.googlesource.com/c/go/+/437559
Reviewed-by: Matthew Dempsky <mdempsky@google.com>
TryBot-Result: Gopher Robot <gobot@golang.org>
Reviewed-by: Michael Pratt <mpratt@google.com>
Run-TryBot: Michael Pratt <mpratt@google.com>
src/runtime/sys_windows_amd64.s