Skip to content

[release/10.0] Fix PAL alternate signal stack leak after application reconfiguration - #138318

Open
github-actions[bot] wants to merge 1 commit into
release/10.0from
backport/pr-136883-to-release/10.0
Open

github-actions[bot] wants to merge 1 commit into
release/10.0from
backport/pr-136883-to-release/10.0

Conversation

@github-actions

@github-actions github-actions Bot commented Nov 25, 2026 •

Copy link
Copy Markdown
Contributor

Backport of #136883 to release/10.0

/cc @jkotas @copilot

Customer Impact

  • Customer reported
  • Found internally

[Select one or both of the boxes. Describe how this issue impacts customers, citing the expected and actual behaviors and scope of the issue. If customer-reported, provide the issue number.]

Regression

  • Yes
  • No

[If yes, specify when the regression was introduced. Provide the PR or commit if known.]

Testing

[How was the fix verified? How was the issue missed previously? What tests were added?]

Risk

[High/Medium/Low. Justify the indication by mentioning how risks were measured and addressed.]

…#136883)

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

---------

Co-authored-by: copilot-swe-agent[bot] <198982749+Copilot@users.noreply.github.com>
Co-authored-by: jkotas <6668460+jkotas@users.noreply.github.com>
@azure-pipelines

Copy link
Copy Markdown
Azure Pipelines:
Successfully started running 3 pipeline(s).
12 pipeline(s) were filtered out due to trigger conditions.
There may be pipelines that require an authorized user to comment /azp run to run.

This branch has not been deployed

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

Labels

area-PAL-coreclr only for closed issues blocked Issue/PR is blocked on something - see comments

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants