]> Cypherpunks repositories - gostls13.git/commit
[release-branch.go1.25] runtime/race: set missing argument frame for ppc64x atomic...
authorJayanth Krishnamurthy jayanth.krishnamurthy@ibm.com <jayanth.krishnamurthy@ibm.com>
Thu, 6 Nov 2025 19:43:45 +0000 (13:43 -0600)
committerCherry Mui <cherryyz@google.com>
Mon, 29 Dec 2025 21:19:43 +0000 (13:19 -0800)
commit6f07a57145a96c8e431721d0b2db4adf412f7c56
tree654121669412030c14266cbf84662900d1b44e80
parentea603eea37f1030cfeecbe03ec7660fbc0da7819
[release-branch.go1.25] runtime/race: set missing argument frame for ppc64x atomic And/Or wrappers

The ppc64x TSAN wrappers for atomic And/Or did not initialize R6 with the Go argument frame before calling racecallatomic. Since racecallatomic expects R6 to point to the argument list and dereferences it unconditionally, this led to a nil-pointer dereference under -race.

Other atomic TSAN wrappers (Load/Store/Add/Swap/CAS) already set up R6 in the expected way. This change aligns the And/Or wrappers with the rest by adding the missing R6 initialisation.

This keeps the behavior consistent across all atomic operations on ppc64x.

Updates #76776.
Change-Id: Iaf578449a6171a0c6f7c33ec6f64c1251297ae6d
Reviewed-on: https://go-review.googlesource.com/c/go/+/718560
Reviewed-by: Mark Freeman <markfreeman@google.com>
LUCI-TryBot-Result: Go LUCI <golang-scoped@luci-project-accounts.iam.gserviceaccount.com>
Reviewed-by: Cherry Mui <cherryyz@google.com>
Reviewed-by: Paul Murphy <paumurph@redhat.com>
(cherry picked from commit 44cb82449e7f24530fe0fe0bf8261ba9e0e4e7d8)
Reviewed-on: https://go-review.googlesource.com/c/go/+/728900
Reviewed-by: David Chase <drchase@google.com>
src/runtime/race_ppc64le.s