Repository navigation
Enable CFG for ARM64X ANCM forwarders - #68744
Merged
Merged
Conversation
Pass the native mitigation flags directly to the compiler and linker commands used to build the forwarders. Co-authored-by: Copilot <[email protected]> Copilot-Session: 2b43712b-8ff0-4c54-8387-2e3fadfc1b65
Contributor
There was a problem hiding this comment.
Pull request overview
This PR enables native mitigation flags (Control Flow Guard and Spectre mitigations) for the ARM64X ANCM forwarder DLLs that are built via direct cl/link invocations, so they receive equivalent security hardening to the rest of the native installer components.
Changes:
- Adds
/guard:cfand/Qspectreto the ARM64 and ARM64ECclcompile steps for both forwarders. - Adds
/guard:cfand/dynamicbaseto the ARM64Xlinksteps for both forwarders.
💡 Add a code-review agent skill for context-aware, tailored reviews. Learn more in the docs.
wtgodbe
approved these changes
Aug 24, 2026
Member
|
Should we backport to 11 & 10? |
Member
Author
|
/backport to release/11.0 |
Member
Author
|
/backport to release/10.0 |
Contributor
|
Started backporting to |
Contributor
|
Started backporting to |
This was referenced Aug 24, 2026
akoeplinger
added a commit
that referenced
this pull request
Aug 25, 2026
…68758) Enable CFG for ARM64X ANCM forwarders Co-authored-by: Alexander Köplinger <[email protected]>
akoeplinger
added a commit
that referenced
this pull request
Aug 25, 2026
…68757) Enable CFG for ARM64X ANCM forwarders Co-authored-by: Alexander Köplinger <[email protected]>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Description
The ARM64X ANCM forwarders are built using direct
clandlinkinvocations, so the native mitigation settings imported bybuild.projare not applied to them. This was missed in #63437 / #63725Pass
/guard:cfand/Qspectreto the ARM64 and ARM64EC compiler invocations, and pass/guard:cfand/dynamicbaseto the final ARM64X linker invocations. This enables Control Flow Guard on both forwarder DLLs.Validated with the VS 18 ARM64 toolchain.
dumpbin /headers /loadconfigreports theControl Flow GuardDLL characteristic,CF instrumented, and an FID table containing two targets for both generated forwarders.Addresses dotnet/dotnet#8565.