Skip to content

[release/10.0] Enable CFG for ARM64X ANCM forwarders - #68758

Merged
akoeplinger merged 1 commit into
release/10.0from
backport/pr-68744-to-release/10.0
Aug 25, 2026
Merged

akoeplinger merged 1 commit into
release/10.0from
backport/pr-68744-to-release/10.0

Conversation

@github-actions

@github-actions github-actions Bot commented Aug 24, 2026 •

Copy link
Copy Markdown
Contributor

Backport of #68744 to release/10.0

/cc @akoeplinger

Enable CFG for ARM64X ANCM forwarders

The ARM64X ANCM forwarders are built using direct cl and link invocations, so the native mitigation settings imported by build.proj are not applied to them. This was missed in #63437 / #63725

Description

Pass /guard:cf and /Qspectre to the ARM64 and ARM64EC compiler invocations, and pass /guard:cf and /dynamicbase to the final ARM64X linker invocations. This enables Control Flow Guard on both forwarder DLLs.

Validated with the VS 18 ARM64 toolchain. dumpbin /headers /loadconfig reports the Control Flow Guard DLL characteristic, CF instrumented, and an FID table containing two targets for both generated forwarders.

Fixes dotnet/dotnet#8565.

Customer Impact

This is required by Microsoft SDL policies.

Regression?

  • Yes
  • No

Risk

  • High
  • Medium
  • Low

Compiler flags that we're using elsewhere already.

Verification

  • Manual (required)
  • Automated

Packaging changes reviewed?

  • Yes
  • No
  • N/A

When servicing release/2.3

  • Make necessary changes in eng/PatchConfig.props

@github-actions
github-actions Bot requested review from a team and wtgodbe as code owners August 24, 2026 22:49
@akoeplinger
akoeplinger merged commit aac0b3b into release/10.0 Aug 25, 2026
24 of 28 checks passed
@akoeplinger
akoeplinger deleted the backport/pr-68744-to-release/10.0 branch August 25, 2026 08:38
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.

2 participants