[go/release-branch.go1.25] [release-branch.go1.25] runtime/race: set missing argument frame for ppc64x atomic And/Or wrappers

5 views
Skip to first unread message

Jayanth Krishnamurthy (Gerrit)

unread,
Dec 10, 2025, 2:42:26 AM (6 days ago) Dec 10
to goph...@pubsubhelper.golang.org, golang-co...@googlegroups.com

Jayanth Krishnamurthy has uploaded the change for review

Commit message

[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
Cq-Include-Trybots: luci.golang.try:gotip-linux-ppc64_power10,gotip-linux-ppc64_power8,gotip-linux-ppc64le_power8,gotip-linux-ppc64le_power9,gotip-linux-ppc64le_power10
Reviewed-on: https://go-review.googlesource.com/c/go/+/718560
Reviewed-by: Mark Freeman <markf...@google.com>
LUCI-TryBot-Result: Go LUCI <golang...@luci-project-accounts.iam.gserviceaccount.com>
Reviewed-by: Cherry Mui <cher...@google.com>
Reviewed-by: Paul Murphy <paum...@redhat.com>
(cherry picked from commit 44cb82449e7f24530fe0fe0bf8261ba9e0e4e7d8)

Change diff

diff --git a/src/runtime/race_ppc64le.s b/src/runtime/race_ppc64le.s
index b327e49..41cd232 100644
--- a/src/runtime/race_ppc64le.s
+++ b/src/runtime/race_ppc64le.s
@@ -329,11 +329,13 @@
TEXT sync∕atomic·AndInt32(SB), NOSPLIT, $0-20
GO_ARGS
MOVD $__tsan_go_atomic32_fetch_and(SB), R8
+ ADD $32, R1, R6
BR racecallatomic<>(SB)

TEXT sync∕atomic·AndInt64(SB), NOSPLIT, $0-24
GO_ARGS
MOVD $__tsan_go_atomic64_fetch_and(SB), R8
+ ADD $32, R1, R6
BR racecallatomic<>(SB)

TEXT sync∕atomic·AndUint32(SB), NOSPLIT, $0-20
@@ -352,11 +354,13 @@
TEXT sync∕atomic·OrInt32(SB), NOSPLIT, $0-20
GO_ARGS
MOVD $__tsan_go_atomic32_fetch_or(SB), R8
+ ADD $32, R1, R6
BR racecallatomic<>(SB)

TEXT sync∕atomic·OrInt64(SB), NOSPLIT, $0-24
GO_ARGS
MOVD $__tsan_go_atomic64_fetch_or(SB), R8
+ ADD $32, R1, R6
BR racecallatomic<>(SB)

TEXT sync∕atomic·OrUint32(SB), NOSPLIT, $0-20

Change information

Files:
  • M src/runtime/race_ppc64le.s
Change size: XS
Delta: 1 file changed, 4 insertions(+), 0 deletions(-)
Open in Gerrit

Related details

Attention set is empty
Submit Requirements:
  • requirement is not satisfiedCode-Review
  • requirement satisfiedNo-Unresolved-Comments
  • requirement is not satisfiedReview-Enforcement
  • requirement is not satisfiedTryBots-Pass
Inspect html for hidden footers to help with email filtering. To unsubscribe visit settings. DiffyGerrit
Gerrit-MessageType: newchange
Gerrit-Project: go
Gerrit-Branch: release-branch.go1.25
Gerrit-Change-Id: Iaf578449a6171a0c6f7c33ec6f64c1251297ae6d
Gerrit-Change-Number: 728900
Gerrit-PatchSet: 1
Gerrit-Owner: Jayanth Krishnamurthy <jayanth.kr...@ibm.com>
unsatisfied_requirement
satisfied_requirement
open
diffy

Jayanth Krishnamurthy (Gerrit)

unread,
Dec 10, 2025, 3:49:42 AM (6 days ago) Dec 10
to goph...@pubsubhelper.golang.org, Carlos Amedee, Dmitry Vyukov, Ian Lance Taylor, Gopher Robot, golang-co...@googlegroups.com
Attention needed from Carlos Amedee, Dmitry Vyukov and Ian Lance Taylor

Jayanth Krishnamurthy voted Commit-Queue+1

Commit-Queue+1
Open in Gerrit

Related details

Attention is currently required from:
  • Carlos Amedee
  • Dmitry Vyukov
  • Ian Lance Taylor
Submit Requirements:
  • requirement is not satisfiedCode-Review
  • requirement satisfiedNo-Unresolved-Comments
  • requirement is not satisfiedReview-Enforcement
  • requirement is not satisfiedTryBots-Pass
Inspect html for hidden footers to help with email filtering. To unsubscribe visit settings. DiffyGerrit
Gerrit-MessageType: comment
Gerrit-Project: go
Gerrit-Branch: release-branch.go1.25
Gerrit-Change-Id: Iaf578449a6171a0c6f7c33ec6f64c1251297ae6d
Gerrit-Change-Number: 728900
Gerrit-PatchSet: 1
Gerrit-Owner: Jayanth Krishnamurthy <jayanth.kr...@ibm.com>
Gerrit-Reviewer: Carlos Amedee <car...@golang.org>
Gerrit-Reviewer: Dmitry Vyukov <dvy...@google.com>
Gerrit-Reviewer: Ian Lance Taylor <ia...@golang.org>
Gerrit-Reviewer: Jayanth Krishnamurthy <jayanth.kr...@ibm.com>
Gerrit-CC: Gopher Robot <go...@golang.org>
Gerrit-Attention: Ian Lance Taylor <ia...@golang.org>
Gerrit-Attention: Dmitry Vyukov <dvy...@google.com>
Gerrit-Attention: Carlos Amedee <car...@golang.org>
Gerrit-Comment-Date: Wed, 10 Dec 2025 08:49:34 +0000
Gerrit-HasComments: No
Gerrit-Has-Labels: Yes
unsatisfied_requirement
satisfied_requirement
open
diffy

Jayanth Krishnamurthy (Gerrit)

unread,
Dec 10, 2025, 3:16:02 PM (6 days ago) Dec 10
to goph...@pubsubhelper.golang.org, Go LUCI, Carlos Amedee, Dmitry Vyukov, Ian Lance Taylor, Gopher Robot, golang-co...@googlegroups.com
Attention needed from Carlos Amedee, Dmitry Vyukov, Ian Lance Taylor and Jayanth Krishnamurthy

Jayanth Krishnamurthy removed a vote from this change

Removed LUCI-TryBot-Result-1 by Go LUCI <golang...@luci-project-accounts.iam.gserviceaccount.com>
Open in Gerrit

Related details

Attention is currently required from:
  • Carlos Amedee
  • Dmitry Vyukov
  • Ian Lance Taylor
  • Jayanth Krishnamurthy
Submit Requirements:
  • requirement is not satisfiedCode-Review
  • requirement satisfiedNo-Unresolved-Comments
  • requirement is not satisfiedReview-Enforcement
  • requirement is not satisfiedTryBots-Pass
Inspect html for hidden footers to help with email filtering. To unsubscribe visit settings. DiffyGerrit
Gerrit-MessageType: deleteVote
Gerrit-Project: go
Gerrit-Branch: release-branch.go1.25
Gerrit-Change-Id: Iaf578449a6171a0c6f7c33ec6f64c1251297ae6d
Gerrit-Change-Number: 728900
Gerrit-PatchSet: 1
Gerrit-Owner: Jayanth Krishnamurthy <jayanth.kr...@ibm.com>
Gerrit-Reviewer: Carlos Amedee <car...@golang.org>
Gerrit-Reviewer: Dmitry Vyukov <dvy...@google.com>
Gerrit-Reviewer: Ian Lance Taylor <ia...@golang.org>
Gerrit-Reviewer: Jayanth Krishnamurthy <jayanth.kr...@ibm.com>
Gerrit-CC: Gopher Robot <go...@golang.org>
Gerrit-Attention: Ian Lance Taylor <ia...@golang.org>
Gerrit-Attention: Dmitry Vyukov <dvy...@google.com>
Gerrit-Attention: Carlos Amedee <car...@golang.org>
Gerrit-Attention: Jayanth Krishnamurthy <jayanth.kr...@ibm.com>
unsatisfied_requirement
satisfied_requirement
open
diffy

Jayanth Krishnamurthy (Gerrit)

unread,
Dec 11, 2025, 2:39:21 PM (5 days ago) Dec 11
to goph...@pubsubhelper.golang.org, golang-co...@googlegroups.com

Jayanth Krishnamurthy has uploaded the change for review

Commit message

[release-branch.go1.24] 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.

Fixes #76796.

Change-Id: Iaf578449a6171a0c6f7c33ec6f64c1251297ae6d
Cq-Include-Trybots: luci.golang.try:gotip-linux-ppc64_power10,gotip-linux-ppc64_power8,gotip-linux-ppc64le_power8,gotip-linux-ppc64le_power9,gotip-linux-ppc64le_power10
Reviewed-on: https://go-review.googlesource.com/c/go/+/718560
Reviewed-by: Mark Freeman <markf...@google.com>
LUCI-TryBot-Result: Go LUCI <golang...@luci-project-accounts.iam.gserviceaccount.com>
Reviewed-by: Cherry Mui <cher...@google.com>
Reviewed-by: Paul Murphy <paum...@redhat.com>
(cherry picked from commit 44cb82449e7f24530fe0fe0bf8261ba9e0e4e7d8)

Change diff

diff --git a/src/runtime/race_ppc64le.s b/src/runtime/race_ppc64le.s
index 4382947..bd168a3 100644
Open in Gerrit

Related details

Attention set is empty
Submit Requirements:
  • requirement is not satisfiedCode-Review
  • requirement satisfiedNo-Unresolved-Comments
  • requirement is not satisfiedReview-Enforcement
  • requirement is not satisfiedTryBots-Pass
Inspect html for hidden footers to help with email filtering. To unsubscribe visit settings. DiffyGerrit
Gerrit-MessageType: newchange
Gerrit-Project: go
Gerrit-Branch: release-branch.go1.24
Gerrit-Change-Id: Iaf578449a6171a0c6f7c33ec6f64c1251297ae6d
Gerrit-Change-Number: 729420
unsatisfied_requirement
satisfied_requirement
open
diffy

David Chase (Gerrit)

unread,
Dec 12, 2025, 5:22:11 PM (4 days ago) Dec 12
to Jayanth Krishnamurthy, goph...@pubsubhelper.golang.org, Go LUCI, Carlos Amedee, Dmitry Vyukov, Ian Lance Taylor, Gopher Robot, golang-co...@googlegroups.com
Attention needed from Carlos Amedee, Dmitry Vyukov, Ian Lance Taylor and Jayanth Krishnamurthy

David Chase voted Commit-Queue+1

Commit-Queue+1
Open in Gerrit

Related details

Attention is currently required from:
  • Carlos Amedee
  • Dmitry Vyukov
  • Ian Lance Taylor
  • Jayanth Krishnamurthy
Submit Requirements:
  • requirement is not satisfiedCode-Review
  • requirement satisfiedNo-Unresolved-Comments
  • requirement is not satisfiedReview-Enforcement
  • requirement is not satisfiedTryBots-Pass
Inspect html for hidden footers to help with email filtering. To unsubscribe visit settings. DiffyGerrit
Gerrit-MessageType: comment
Gerrit-Project: go
Gerrit-Branch: release-branch.go1.25
Gerrit-Change-Id: Iaf578449a6171a0c6f7c33ec6f64c1251297ae6d
Gerrit-Change-Number: 728900
Gerrit-PatchSet: 1
Gerrit-Owner: Jayanth Krishnamurthy <jayanth.kr...@ibm.com>
Gerrit-Reviewer: Carlos Amedee <car...@golang.org>
Gerrit-Reviewer: David Chase <drc...@google.com>
Gerrit-Reviewer: Dmitry Vyukov <dvy...@google.com>
Gerrit-Reviewer: Ian Lance Taylor <ia...@golang.org>
Gerrit-Reviewer: Jayanth Krishnamurthy <jayanth.kr...@ibm.com>
Gerrit-CC: Gopher Robot <go...@golang.org>
Gerrit-Attention: Ian Lance Taylor <ia...@golang.org>
Gerrit-Attention: Dmitry Vyukov <dvy...@google.com>
Gerrit-Attention: Carlos Amedee <car...@golang.org>
Gerrit-Attention: Jayanth Krishnamurthy <jayanth.kr...@ibm.com>
Gerrit-Comment-Date: Fri, 12 Dec 2025 22:22:07 +0000
Gerrit-HasComments: No
Gerrit-Has-Labels: Yes
unsatisfied_requirement
satisfied_requirement
open
diffy

David Chase (Gerrit)

unread,
Dec 12, 2025, 5:22:25 PM (4 days ago) Dec 12
to Jayanth Krishnamurthy, goph...@pubsubhelper.golang.org, Austin Clements, Dmitry Vyukov, Martin Möhrmann, Gopher Robot, golang-co...@googlegroups.com
Attention needed from Austin Clements, Dmitry Vyukov, Jayanth Krishnamurthy and Martin Möhrmann

David Chase voted Commit-Queue+1

Commit-Queue+1
Open in Gerrit

Related details

Attention is currently required from:
  • Austin Clements
  • Dmitry Vyukov
  • Jayanth Krishnamurthy
  • Martin Möhrmann
Submit Requirements:
  • requirement is not satisfiedCode-Review
  • requirement satisfiedNo-Unresolved-Comments
  • requirement is not satisfiedReview-Enforcement
  • requirement is not satisfiedTryBots-Pass
Inspect html for hidden footers to help with email filtering. To unsubscribe visit settings. DiffyGerrit
Gerrit-MessageType: comment
Gerrit-Project: go
Gerrit-Branch: release-branch.go1.24
Gerrit-Change-Id: Iaf578449a6171a0c6f7c33ec6f64c1251297ae6d
Gerrit-Change-Number: 729420
Gerrit-PatchSet: 1
Gerrit-Owner: Jayanth Krishnamurthy <jayanth.kr...@ibm.com>
Gerrit-Reviewer: Austin Clements <aus...@google.com>
Gerrit-Reviewer: David Chase <drc...@google.com>
Gerrit-Reviewer: Dmitry Vyukov <dvy...@google.com>
Gerrit-Reviewer: Martin Möhrmann <moeh...@google.com>
Gerrit-CC: Gopher Robot <go...@golang.org>
Gerrit-Attention: Martin Möhrmann <moeh...@google.com>
Gerrit-Attention: Dmitry Vyukov <dvy...@google.com>
Gerrit-Attention: Jayanth Krishnamurthy <jayanth.kr...@ibm.com>
Gerrit-Attention: Austin Clements <aus...@google.com>
Gerrit-Comment-Date: Fri, 12 Dec 2025 22:22:22 +0000
Gerrit-HasComments: No
Gerrit-Has-Labels: Yes
unsatisfied_requirement
satisfied_requirement
open
diffy

Jayanth Krishnamurthy (Gerrit)

unread,
Dec 12, 2025, 7:31:02 PM (4 days ago) Dec 12
to goph...@pubsubhelper.golang.org, golang-co...@googlegroups.com
Attention needed from Carlos Amedee, David Chase, Dmitry Vyukov, Ian Lance Taylor and Jayanth Krishnamurthy

Jayanth Krishnamurthy uploaded new patchset

Jayanth Krishnamurthy uploaded patch set #2 to this change.
Open in Gerrit

Related details

Attention is currently required from:
  • Carlos Amedee
  • David Chase
  • Dmitry Vyukov
  • Ian Lance Taylor
  • Jayanth Krishnamurthy
Submit Requirements:
  • requirement is not satisfiedCode-Review
  • requirement satisfiedNo-Unresolved-Comments
  • requirement is not satisfiedReview-Enforcement
  • requirement is not satisfiedTryBots-Pass
Inspect html for hidden footers to help with email filtering. To unsubscribe visit settings. DiffyGerrit
Gerrit-MessageType: newpatchset
Gerrit-Project: go
Gerrit-Branch: release-branch.go1.25
Gerrit-Change-Id: Iaf578449a6171a0c6f7c33ec6f64c1251297ae6d
Gerrit-Change-Number: 728900
Gerrit-PatchSet: 2
Gerrit-Owner: Jayanth Krishnamurthy <jayanth.kr...@ibm.com>
Gerrit-Reviewer: Carlos Amedee <car...@golang.org>
Gerrit-Reviewer: David Chase <drc...@google.com>
Gerrit-Reviewer: Dmitry Vyukov <dvy...@google.com>
Gerrit-Reviewer: Ian Lance Taylor <ia...@golang.org>
Gerrit-Reviewer: Jayanth Krishnamurthy <jayanth.kr...@ibm.com>
Gerrit-CC: Gopher Robot <go...@golang.org>
Gerrit-Attention: David Chase <drc...@google.com>
Gerrit-Attention: Ian Lance Taylor <ia...@golang.org>
Gerrit-Attention: Dmitry Vyukov <dvy...@google.com>
unsatisfied_requirement
satisfied_requirement
open
diffy

Jayanth Krishnamurthy (Gerrit)

unread,
Dec 12, 2025, 7:32:11 PM (4 days ago) Dec 12
to goph...@pubsubhelper.golang.org, golang-co...@googlegroups.com
Attention needed from Austin Clements, David Chase, Dmitry Vyukov, Jayanth Krishnamurthy and Martin Möhrmann

Jayanth Krishnamurthy uploaded new patchset

Jayanth Krishnamurthy uploaded patch set #2 to this change.
Open in Gerrit

Related details

Attention is currently required from:
  • Austin Clements
  • David Chase
  • Dmitry Vyukov
  • Jayanth Krishnamurthy
  • Martin Möhrmann
Submit Requirements:
  • requirement is not satisfiedCode-Review
  • requirement satisfiedNo-Unresolved-Comments
  • requirement is not satisfiedReview-Enforcement
  • requirement is not satisfiedTryBots-Pass
Inspect html for hidden footers to help with email filtering. To unsubscribe visit settings. DiffyGerrit
Gerrit-MessageType: newpatchset
Gerrit-Project: go
Gerrit-Branch: release-branch.go1.24
Gerrit-Change-Id: Iaf578449a6171a0c6f7c33ec6f64c1251297ae6d
Gerrit-Change-Number: 729420
Gerrit-PatchSet: 2
Gerrit-Owner: Jayanth Krishnamurthy <jayanth.kr...@ibm.com>
Gerrit-Reviewer: Austin Clements <aus...@google.com>
Gerrit-Reviewer: David Chase <drc...@google.com>
Gerrit-Reviewer: Dmitry Vyukov <dvy...@google.com>
Gerrit-Reviewer: Martin Möhrmann <moeh...@google.com>
Gerrit-CC: Gopher Robot <go...@golang.org>
Gerrit-Attention: David Chase <drc...@google.com>
Gerrit-Attention: Martin Möhrmann <moeh...@google.com>
Gerrit-Attention: Dmitry Vyukov <dvy...@google.com>
unsatisfied_requirement
satisfied_requirement
open
diffy

Jayanth Krishnamurthy (Gerrit)

unread,
Dec 15, 2025, 9:49:38 PM (17 hours ago) Dec 15
to goph...@pubsubhelper.golang.org, Go LUCI, David Chase, Austin Clements, Dmitry Vyukov, Martin Möhrmann, Gopher Robot, golang-co...@googlegroups.com
Attention needed from Austin Clements, David Chase, Dmitry Vyukov, Jayanth Krishnamurthy and Martin Möhrmann

Jayanth Krishnamurthy removed a vote from this change

Removed LUCI-TryBot-Result-1 by Go LUCI <golang...@luci-project-accounts.iam.gserviceaccount.com>

Related details

Attention is currently required from:
  • Austin Clements
  • David Chase
  • Dmitry Vyukov
  • Jayanth Krishnamurthy
  • Martin Möhrmann
Submit Requirements:
  • requirement is not satisfiedCode-Review
  • requirement satisfiedNo-Unresolved-Comments
  • requirement is not satisfiedReview-Enforcement
  • requirement is not satisfiedTryBots-Pass
Inspect html for hidden footers to help with email filtering. To unsubscribe visit settings. DiffyGerrit
Gerrit-MessageType: deleteVote
unsatisfied_requirement
satisfied_requirement
open
diffy

Jayanth Krishnamurthy (Gerrit)

unread,
Dec 15, 2025, 9:49:55 PM (17 hours ago) Dec 15
to goph...@pubsubhelper.golang.org, David Chase, Go LUCI, Carlos Amedee, Dmitry Vyukov, Ian Lance Taylor, Gopher Robot, golang-co...@googlegroups.com
Attention needed from Carlos Amedee, David Chase, Dmitry Vyukov, Ian Lance Taylor and Jayanth Krishnamurthy

Jayanth Krishnamurthy removed a vote from this change

Related details

Attention is currently required from:
  • Carlos Amedee
  • David Chase
  • Dmitry Vyukov
  • Ian Lance Taylor
  • Jayanth Krishnamurthy
Submit Requirements:
  • requirement is not satisfiedCode-Review
  • requirement satisfiedNo-Unresolved-Comments
  • requirement is not satisfiedReview-Enforcement
  • requirement is not satisfiedTryBots-Pass
Inspect html for hidden footers to help with email filtering. To unsubscribe visit settings. DiffyGerrit
Gerrit-MessageType: deleteVote
Gerrit-Project: go
Gerrit-Branch: release-branch.go1.25
Gerrit-Change-Id: Iaf578449a6171a0c6f7c33ec6f64c1251297ae6d
Gerrit-Change-Number: 728900
Gerrit-PatchSet: 2
Gerrit-Owner: Jayanth Krishnamurthy <jayanth.kr...@ibm.com>
Gerrit-Reviewer: Carlos Amedee <car...@golang.org>
Gerrit-Reviewer: David Chase <drc...@google.com>
Gerrit-Reviewer: Dmitry Vyukov <dvy...@google.com>
Gerrit-Reviewer: Ian Lance Taylor <ia...@golang.org>
Gerrit-Reviewer: Jayanth Krishnamurthy <jayanth.kr...@ibm.com>
Gerrit-CC: Gopher Robot <go...@golang.org>
Gerrit-Attention: David Chase <drc...@google.com>
Gerrit-Attention: Ian Lance Taylor <ia...@golang.org>
Gerrit-Attention: Dmitry Vyukov <dvy...@google.com>
unsatisfied_requirement
satisfied_requirement
open
diffy
Reply all
Reply to author
Forward
0 new messages