runtime icon indicating copy to clipboard operation
runtime copied to clipboard

.NET 9 container SIGILL for `rdvl` (a normal SVE instruction) on Apple M4

Open OPS-NeoRetro opened this issue 3 months ago • 12 comments

Description

This is a proxy issue for https://github.com/orbstack/orbstack/issues/2670. Once this issue is closed, the OrbStack issue should be closed in a short amount of time following the closure of this issue. Refer to title.

Reproduction Steps

Refer to https://github.com/orbstack/orbstack/issues/2670.

Expected behavior

Refer to https://github.com/orbstack/orbstack/issues/2670.

Actual behavior

Refer to https://github.com/orbstack/orbstack/issues/2670.

Regression?

This is a similar regression to users of .NET Core 10 in Linux containers and VMs on Apple M4 and M5-series systems.

Known Workarounds

Users have worked around by downgrading their OrbStack version from 2.2.3 or higher to 2.2.2. This masked away SME support from CPUID and feature ID MSRs in OrbStack containers, causing the problem to disappear.

Configuration

  • .NET 9.0
  • MacOS Tahoe host
  • ARM64
  • Very specific to Apple M4 and M5 systems running ARM64 .NET Core in Linux containers and VMs

Other information

https://github.com/ARM-software/ComputeLibrary/issues/1306 is a closely related issue. I wrote a comment there about why Apple's ARM SME is different from the real ARM SME.

OPS-NeoRetro avatar Sep 01 '26 18:09 OPS-NeoRetro

Tagging subscribers to this area: @dotnet/area-meta See info in area-owners.md if you want to be subscribed.

@agocke @vsadov @kotlarmilos

OPS-NeoRetro avatar Sep 01 '26 18:09 OPS-NeoRetro

Tagging subscribers to this area: @JulieLeeMSFT, @jakobbotsch See info in area-owners.md if you want to be subscribed.

I presume it was fixed in .NET 11.0 via https://github.com/dotnet/runtime/pull/127398 and backported to 10.0, but not to 9.0 (it is approaching EOL btw)

cc @AndyAyersMS

EgorBo avatar Sep 01 '26 21:09 EgorBo

.NET 9 is going out of service very soon (Nov 10, 2026). Since there is a workaround and .NET 10 contains a fix I'm not sure if we'd port this even further back.

AndyAyersMS avatar Sep 01 '26 21:09 AndyAyersMS

.NET 9 is going out of service very soon (Nov 10, 2026). Since there is a workaround and .NET 10 contains a fix I'm not sure if we'd port this even further back.

Wait, I think this must be fixed, because this involves applications with any vector processing, and there is a new M5 Ultra chip coming next year with 4 M5 Max dies fused together. I don't know if the M6 will have SVE all around, but it is safe to just backport the fix to .NET 9 ASAP. The fix was made 5 months ago, and there is only 2 months left until .NET 9 officially goes out of official support.

OPS-NeoRetro avatar Sep 02 '26 08:09 OPS-NeoRetro

@agocke do you think we'd take a fix for this for .NET 9?

AndyAyersMS avatar Sep 02 '26 15:09 AndyAyersMS

Is this also in 8.0 or is this 9.0-specific?

agocke avatar Sep 02 '26 17:09 agocke

Looks like only 9.0 and up (already fixed in 10+).

AndyAyersMS avatar Sep 02 '26 17:09 AndyAyersMS

Tagging subscribers to this area: @agocke See info in area-owners.md if you want to be subscribed.

@agocke, @VSadov, will the fix actually land? If not, then I'll have to do it myself.

OPS-NeoRetro avatar Sep 04 '26 06:09 OPS-NeoRetro

https://github.com/orbstack/orbstack/issues/2670 has been closed, so I'm now closing this

OPS-NeoRetro avatar Oct 12 '26 08:10 OPS-NeoRetro