Skip to content

Fix PAL alternate signal stack leak after application reconfiguration - #136883

Merged
jkotas merged 3 commits into
mainfrom
copilot/fix-signal-stack-leak
Nov 3, 2026
Merged

jkotas merged 3 commits into
mainfrom
copilot/fix-signal-stack-leak

Conversation

Copilot AI commented Nov 2, 2026 •

Copy link
Copy Markdown
Contributor

Thread teardown leaks the PAL-allocated alternate signal stack when application code replaces or disables its registration.

  • Ownership: Save the allocation size alongside the PAL-owned pointer.
  • Cleanup: Unmap that allocation regardless of the current registration, without unmapping a foreign stack.

Fixes #136853

Loading
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Alternate signal stack allocated during thread start is leaked if the signal stack is reconfigured by application code

6 participants