]> Cypherpunks repositories - gostls13.git/commit
runtime: save/fetch g register during VDSO on linux/loong64
authorGuoqi Chen <chenguoqi@loongson.cn>
Tue, 28 Mar 2023 21:10:45 +0000 (05:10 +0800)
committerGopher Robot <gobot@golang.org>
Thu, 11 May 2023 23:41:03 +0000 (23:41 +0000)
commit42023d6f529239680773eab5343eedf641e78bb3
treeb7da3a15aa5e7f26724ecd99c73c9adb3ba1e13f
parent1b630b5b0086d3d272eb1d613d7b817a85fbd7f9
runtime: save/fetch g register during VDSO on linux/loong64

Like arm64, ppc64 and risv64, on loong64, the G register may be temporarily
broken during a VDSO call. If a signal is received during a VDSO call, an
invalid G may be obtained.

See #34391.

Change-Id: Iaffa8cce4f0ef8ef74225c355ec3c20ed238025f
Reviewed-on: https://go-review.googlesource.com/c/go/+/426355
Reviewed-by: WANG Xuerui <git@xen0n.name>
TryBot-Result: Gopher Robot <gobot@golang.org>
Reviewed-by: Ian Lance Taylor <iant@google.com>
Run-TryBot: Ian Lance Taylor <iant@google.com>
Run-TryBot: WANG Xuerui <git@xen0n.name>
Auto-Submit: Ian Lance Taylor <iant@google.com>
Reviewed-by: Cherry Mui <cherryyz@google.com>
src/runtime/signal_unix.go
src/runtime/sys_linux_loong64.s