Skip to content

[Operational Issue]: BA2008 in Windows_x64_BuildPass2 on release/10.0.1xx #8565

Closed

Description

@akoeplinger

Error

https://dev.azure.com/dnceng/internal/_build/results?buildId=3054318&view=logs&j=287a7939-eab3-5c36-8f0e-00afcd687924&t=e55a8cbe-f36d-5100-3d6b-68f4aeaaaca9

##[error]1. BinSkim Error BA2008 - File: src/aspnetcore/artifacts/bin/AspNetCoreModuleForwarders/aspnetcorev2.dll.  
Signature: 6c4c6f0ecb669e26f563d209bedf3426e0548352814501ae88a92f9c2afc8778
Tool: BinSkim: Rule: BA2008 (EnableControlFlowGuard). https://github.com/microsoft/binskim/blob/main/docs/BinSkimRules.md#rule-BA2008EnableControlFlowGuard
'aspnetcorev2.dll' does not enable the control flow guard (CFG) mitigation.
To resolve this issue, pass /guard:cf on both the compiler and linker command lines. Binaries also require the /DYNAMICBASE linker option in order to enable CFG.
For VC projects use ItemDefinitionGroup - ClCompile - ControlFlowGuard property with 'Guard' value, link CFG property will be set automatically.
##[error]2. BinSkim Error BA2008 - File: src/aspnetcore/artifacts/bin/AspNetCoreModuleForwarders/aspnetcorev2_outofprocess.dll.  
Signature: 59ddfd94490abe3c3500ca22917bacea2b7259373bc2991ec931561bdc5c40c7
Tool: BinSkim: Rule: BA2008 (EnableControlFlowGuard). https://github.com/microsoft/binskim/blob/main/docs/BinSkimRules.md#rule-BA2008EnableControlFlowGuard
'aspnetcorev2_outofprocess.dll' does not enable the control flow guard (CFG) mitigation.
To resolve this issue, pass /guard:cf on both the compiler and linker command lines. Binaries also require the /DYNAMICBASE linker option in order to enable CFG.
For VC projects use ItemDefinitionGroup - ClCompile - ControlFlowGuard property with 'Guard' value, link CFG property will be set automatically.

This is weird for a few reasons:

  1. it should happen in other legs too, not just BP2
  2. the flags are enabled since [release/10.0] Enable spectre mitigations for ANCM binaries aspnetcore#63728

Links

No response

Root Cause

unknown

Blocking

  • This issue is blocking

Affected Releases

  • .NET 10
  • .NET 10 (SDK band build)
  • .NET 11
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions