Skip to content

Update atomic.h, 64 bit compare exchange on ARM 32 #1695

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

EyeAndTea
Copy link

Hello everyone.

Forgive me if I am not following the rules. This is a quick fix, and I like to stay private.

Assembly code pertaining to ARM 32bit processors acting on 64bit wide data in what amounts to a compare and exchange operation has an apparent bug where the current value in memory that is returned to the caller is the same suspected current value that was passed by the caller even when the exchange fails.

Please be warned that this apparent bug was caught by code analysis, not testing.

Copy link

github-actions bot commented May 8, 2025

Thank you for taking the time to contribute to FreeBSD!
There are a few issues that need to be fixed:

  • Missing Signed-off-by lines9e1d5eb
  • Real email address is needed9e1d5eb

@freebsd freebsd deleted a comment May 10, 2025
@freebsd freebsd deleted a comment May 10, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant