Skip to content

Fix a use-after-free in coop threads futex - #871

Merged
alexcrichton merged 1 commit into
WebAssembly:mainfrom
alexcrichton:fix-futex
Aug 19, 2026
Merged

Fix a use-after-free in coop threads futex#871
alexcrichton merged 1 commit into
WebAssembly:mainfrom
alexcrichton:fix-futex

Conversation

@alexcrichton

Copy link
Copy Markdown
Collaborator

This commit fixes an issue where multiple threads waking up on the same address would all try to free the address and internally would cause malloc corruption. The fix here is to refcount lists as they reside in the futex hash map.

This commit fixes an issue where multiple threads waking up on the same
address would all try to free the address and internally would cause
malloc corruption. The fix here is to refcount lists as they reside in
the futex hash map.
@alexcrichton
alexcrichton requested a review from dicej August 19, 2026 00:10
@alexcrichton
alexcrichton merged commit d8d7c11 into WebAssembly:main Aug 19, 2026
69 of 72 checks passed
@alexcrichton
alexcrichton deleted the fix-futex branch August 19, 2026 14:14
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.

2 participants