You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
On AVX-512 hardware a faulting GT_IND can be contained into an ALU intrinsic that subsequently acquires an embedded mask, so EVEX memory-fault suppression skips the access and a required NullReferenceException is never thrown.
Requires AVX-512 hardware, x64. Correct with DOTNET_EnableEmbeddedMasking=0. Also repros on released .NET 10.0.12.
Codegen contains no explicit null check at all: vpcmpeqd k1, zmm0, zmmword ptr [r8] / vpaddd zmm1 {k1}, zmm0, zmmword ptr [rax+0x08] — the unconditional b.V load is contained into the add, which then gets embedded masking, so with k1 == 0 the access is suppressed. GenTree::isEmbeddedMaskingCompatible (gentree.cpp) only rejects nodes whose own intrinsic ID is a load/store; it does not reject an ALU node that already has a contained faulting GT_IND operand.
Activity
dotnet-policy-service commentedon Sep 18, 2026
Tagging subscribers to this area: @JulieLeeMSFT, @jakobbotsch
See info in area-owners.md if you want to be subscribed.
EgorBo commentedon Sep 18, 2026
Affected SDK versions:
Preserve contained-load exceptions during embedded masking (#134366)
[release/11.0] Preserve contained-load exceptions during embedded mas…