Skip to content

Fix races in sasl_{client,server}_init()#845

Open
mistotebe wants to merge 1 commit intocyrusimap:masterfrom
mistotebe:init_races
Open

Fix races in sasl_{client,server}_init()#845
mistotebe wants to merge 1 commit intocyrusimap:masterfrom
mistotebe:init_races

Conversation

@mistotebe
Copy link
Contributor

Should address #584 (comment), @adamyi, can you confirm it works for you?

Admittedly a more complete overhaul of the _init()/_close() functions is warranted but I don't have a good approach for that yet.

Signed-off-by: Ondřej Kuzník <ondra@mistotebe.net>
@mistotebe
Copy link
Contributor Author

It still mutates global_callbacks, presumably in a memory-safe (even if non-deterministic) way, not sure if that's a problem. Otherwise might have to move that code around and abuse the fact that the content of global_callbacks is not touched in common_init.

@mistotebe mistotebe added this to the 2.2.0 milestone Jul 22, 2024
@mistotebe
Copy link
Contributor Author

@adamyi Have you had a chance to check whether this addresses your issue or there are still scenarios where this fails for you?

@Neustradamus
Copy link
Contributor

@GuidoKiener: What do you think about this PR?

@Neustradamus Neustradamus mentioned this pull request Feb 3, 2025
@quanah quanah requested a review from hyc March 11, 2025 15:39
@Neustradamus
Copy link
Contributor

@hyc, @quanah: Any progress on this PR?

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.

3 participants