Skip to content
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

Second attempt to fix #1263 by acquiring the waiters during transfer callback and reordering sync_transfer_cb. #1267

Closed
wants to merge 1 commit into from

Conversation

Erlkoenig90
Copy link

As discussed here, this PR replaces #1264 to fix #1263 and should properly fix the race condition by using a synchronization primitive (mutex) instead of solely relying on the order of operations on memory within sync_transfer_cb, which is not guaranteed by the language.

…callbacks and swapping the order of operations in sync_transfer_cb
@mcuee mcuee added bug core Related to common codes and removed bug labels Apr 5, 2023
@hjelmn
Copy link
Member

hjelmn commented Apr 7, 2023

Going to merge this. Hoping to get reviews on a couple of PRs then we will be good to start the RC process.

@sonatique
Copy link
Contributor

Thanks @Erlkoenig90 , it looks good to me

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
core Related to common codes
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Crash due to use-after-free caused by race condition
4 participants