]> Cypherpunks repositories - gostls13.git/commit
runtime: use saved state in SIGPROF handler for vDSO calls
authorHeschi Kreinick <heschi@google.com>
Wed, 18 Apr 2018 17:03:35 +0000 (13:03 -0400)
committerHeschi Kreinick <heschi@google.com>
Wed, 18 Apr 2018 17:35:42 +0000 (17:35 +0000)
commitacebfba75570d3039720d603774dd72d51275c31
tree5504a1074ca8f47f2c87f7420d1f9bcdc9c10fb6
parent24d5c871aa8c2107965e35e838514af8488e4bad
runtime: use saved state in SIGPROF handler for vDSO calls

VDSO calls do manual stack alignment, which doesn't get tracked in the
pcsp table. Without accurate pcsp information, backtracing them is
dangerous, and causes a crash in the SIGPROF handler. Fortunately,
https://golang.org/cl/97315 saves a clean state in m.vdsoPC/SP. Change
to use those if they're present, without attempting a normal backtrace.

Fixes #24925

Change-Id: I4b8501ae73a9d18209e22f839773c4fe6102a509
Reviewed-on: https://go-review.googlesource.com/107778
Run-TryBot: Heschi Kreinick <heschi@google.com>
Run-TryBot: Ian Lance Taylor <iant@golang.org>
Reviewed-by: Ian Lance Taylor <iant@golang.org>
Reviewed-by: Austin Clements <austin@google.com>
TryBot-Result: Gobot Gobot <gobot@golang.org>
src/runtime/proc.go