]> Cypherpunks repositories - gostls13.git/commit
runtime: correct vdsoSP on S390X
authorCherry Mui <cherryyz@google.com>
Thu, 3 Jul 2025 03:26:44 +0000 (23:26 -0400)
committerCherry Mui <cherryyz@google.com>
Fri, 4 Jul 2025 01:43:56 +0000 (18:43 -0700)
commit6c3b5a2798c83d583cb37dba9f39c47300d19f1f
treea98b960d15aeda6533ef766cbc12eac2adb9d8b4
parentdd687c386016445b2f4abc2a958963dd2056d95f
runtime: correct vdsoSP on S390X

It should get the caller's SP. The current code gets the address
of the first parameter, which is one word above the caller's SP.
There is a slot for saving the LR at 0(SP) in the caller's frame.

Fixes #62086 (for s390x).

Change-Id: Ie8cbfabc8161b98658c884a32e0af72df189ea56
Reviewed-on: https://go-review.googlesource.com/c/go/+/685715
Reviewed-by: David Chase <drchase@google.com>
LUCI-TryBot-Result: Go LUCI <golang-scoped@luci-project-accounts.iam.gserviceaccount.com>
src/runtime/sys_linux_s390x.s