Skip to content

[release/11.0] Enable CFG for ARM64X ANCM forwarders - #68757

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

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

Conversation

@github-actions

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

Copy link
Copy Markdown
Contributor

Backport of #68744 to release/11.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:45
@wtgodbe wtgodbe added the tell-mode Indicates a PR which is being merged during tell-mode label Aug 24, 2026
@dotnet-milestone-bot dotnet-milestone-bot Bot added this to the 11.0-rc2 milestone Aug 25, 2026
@akoeplinger
akoeplinger merged commit b900ed3 into release/11.0 Aug 25, 2026
31 checks passed
@akoeplinger
akoeplinger deleted the backport/pr-68744-to-release/11.0 branch August 25, 2026 08:39
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

tell-mode Indicates a PR which is being merged during tell-mode

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants