]> Cypherpunks repositories - gostls13.git/commit
runtime: fix asan wrapper for riscv64
authorKeith Randall <khr@golang.org>
Sat, 19 Jul 2025 16:34:04 +0000 (09:34 -0700)
committerGopher Robot <gobot@golang.org>
Mon, 21 Jul 2025 17:01:15 +0000 (10:01 -0700)
commit5dac42363ba8281a3f4f08e03af2292b763adc38
tree59263a812ed9a397e0db9d8c37f99c003b043449
parente5502e0959bb54ec70ca500e8d2b6f5ac5efbc53
runtime: fix asan wrapper for riscv64

Make sure we keep the M in X21. The instruction at line 87
needs to be loading from the M, not from the gsignal.

Fixes #73979, maybe?

Change-Id: I3aba1c35454636138b305bca26e20dbc8e6b1d6e
Reviewed-on: https://go-review.googlesource.com/c/go/+/688975
Reviewed-by: Joel Sing <joel@sing.id.au>
Reviewed-by: Michael Pratt <mpratt@google.com>
Reviewed-by: Keith Randall <khr@google.com>
Reviewed-by: Meng Zhuo <mengzhuo1203@gmail.com>
Reviewed-by: Mark Ryan <markdryan@rivosinc.com>
Auto-Submit: Keith Randall <khr@golang.org>
LUCI-TryBot-Result: Go LUCI <golang-scoped@luci-project-accounts.iam.gserviceaccount.com>
src/runtime/asan_riscv64.s