Skip to content

Arm64: [PAC-RET] Strip PAC from SOS stack scan candidates - #6091

Merged
max-charlamb merged 1 commit into
dotnet:mainfrom
SwapnilGaikwad:github-add-pac
Oct 7, 2026
Merged

max-charlamb merged 1 commit into
dotnet:mainfrom
SwapnilGaikwad:github-add-pac

Conversation

@SwapnilGaikwad

Copy link
Copy Markdown
Contributor

Without PAC support runtime-diagnostics (SOSTests windows-arm64 release SOS) pipeline is failing for the runtime PR #125436

Strip pointer authentication bits from saved return-address candidates before checking the preceding call instruction and resolving symbols. DumpStackWorker reads raw stack memory, so needs to strip these bits.

Use a 47-bit mask for Windows user-mode addresses and 48-bit mask for non-Windows targets.

cc: @dotnet/arm64-contrib @dhartglassMSFT

Strip pointer authentication bits from saved return-address candidates
before checking the preceding call instruction and resolving symbols.
@SwapnilGaikwad
SwapnilGaikwad requested a review from a team as a code owner October 7, 2026 08:53
@dhartglassMSFT

Copy link
Copy Markdown

@max-charlamb would you be the appropriate person to take a look here?

@max-charlamb
max-charlamb self-requested a review October 7, 2026 17:28
@max-charlamb

Copy link
Copy Markdown
Member

/ba-g unrelated failure

@max-charlamb
max-charlamb merged commit e3c92e4 into dotnet:main Oct 7, 2026
21 of 24 checks passed
@SwapnilGaikwad
SwapnilGaikwad deleted the github-add-pac branch October 8, 2026 12:32
@github-actions github-actions Bot locked and limited conversation to collaborators Nov 8, 2026
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants