diff options
| author | Austin Clements <austin@google.com> | 2015-08-26 15:06:43 -0400 |
|---|---|---|
| committer | Austin Clements <austin@google.com> | 2015-08-30 16:07:02 +0000 |
| commit | 77e528293bbb51a92d16a5e77a8d7920c96764bd (patch) | |
| tree | 8ab0cea7202ec223cc3bddfad34002f674dfd413 /src/syscall/exec_linux_test.go | |
| parent | 3bfc9df21aefe486de2c8a620a36fac178650a8c (diff) | |
| download | go-77e528293bbb51a92d16a5e77a8d7920c96764bd.tar.xz | |
runtime: check that stack barrier unwind is in sync
Currently the stack barrier stub blindly unwinds the next stack
barrier from the G's stack barrier array without checking that it's
the right stack barrier. If through some bug the stack barrier array
position gets out of sync with where we actually are on the stack,
this could return to the wrong PC, which would lead to difficult to
debug crashes. To address this, this commit adds a check to the amd64
stack barrier stub that it's unwinding the correct stack barrier.
Updates #12238.
Change-Id: If824d95191d07e2512dc5dba0d9978cfd9f54e02
Reviewed-on: https://go-review.googlesource.com/13948
Reviewed-by: Russ Cox <rsc@golang.org>
Diffstat (limited to 'src/syscall/exec_linux_test.go')
0 files changed, 0 insertions, 0 deletions
