Skip to content

fix(heap): eliminate TOCTOU gap in _ExFreePoolWithTracking#9

Merged
TorinKS merged 1 commit intomainfrom
change/fix-heap-list-thread-safety
Mar 22, 2026
Merged

fix(heap): eliminate TOCTOU gap in _ExFreePoolWithTracking#9
TorinKS merged 1 commit intomainfrom
change/fix-heap-list-thread-safety

Conversation

@TorinKS
Copy link
Copy Markdown
Owner

@TorinKS TorinKS commented Mar 22, 2026

Hold TrackingLock across both double-free check and UntrackAllocation to prevent another thread from modifying state between the two operations. CRITICAL_SECTION recursive acquisition allows UntrackAllocation to safely re-enter the lock.

Hold TrackingLock across both double-free check and UntrackAllocation
to prevent another thread from modifying state between the two
operations. CRITICAL_SECTION recursive acquisition allows
UntrackAllocation to safely re-enter the lock.

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
@TorinKS TorinKS merged commit 488c552 into main Mar 22, 2026
1 check passed
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