Skip to content

ThunkPool doesn't work with PROCESS_MITIGATION_DYNAMIC_CODE_POLICY #113114

Open
@MichalStrehovsky

Description

@MichalStrehovsky

Reported by internal customer. When PROCESS_MITIGATION_DYNAMIC_CODE_POLICY are enabled, the VirtualProtect call we use to mark memory as Execute/Read fails with STATUS_DYNAMIC_CODE_BLOCKED that we then translate into OOM.

I guess we should investigate whether we could do !FEATURE_RX_THUNKS on Windows too.

CsWinRT is going to look into avoiding GetFunctionPointerForDelegate, but this also affects IDynamicInterfaceCastable with shared generic types (that CsWinRT is also trying to work around, but people could still hit in the past).

Metadata

Metadata

Assignees

No one assigned

    Labels

    area-NativeAOT-coreclrin-prThere is an active PR which will close this issue when it is mergedos-windowspartner-impactThis issue impacts a partner who needs to be kept updated

    Type

    No type

    Projects

    Status

    No status

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions