Skip to content

Conversation

@github-actions
Copy link
Contributor

@github-actions github-actions bot commented Jul 16, 2021

Backport of #55834 to release/6.0-preview7

/cc @janvorli

Customer Impact

Customers trying to run applications that use special hosts like xamarin on Apple Silicon or on any platform with W^X enabled experience hard crash during the startup (bus error on Apple Silicon). Standard hosts like dotnet or apphost are not affected.

Testing

Testing with customer provided testing application. With this fix the application runs fine.

Risk

Low, the code path is exercised only from coreclr_create_delegate called from special hosts and without this fix, it always just crashes.

Regression

Yes, it has regressed in preview 6, in preview 5 it worked fine.

The function was initializing UMThunkMarshInfo allocated from Stub heap
without using the ExecutableWriterHolder. That causes a crash when a
hosting application calls coreclr_create_delegate.
This was discovered in .NET 6 Preview 6 when running a xamarin app that
uses a special host.

This code path is exercised only by coreclr_create_delegate.
@ghost
Copy link

ghost commented Jul 16, 2021

I couldn't figure out the best area label to add to this PR. If you have write-permissions please help me learn by adding exactly one area label.

@janvorli janvorli self-assigned this Jul 16, 2021
@janvorli janvorli added this to the 6.0.0 milestone Jul 16, 2021
@janvorli janvorli added area-VM-coreclr Servicing-consider Issue for next servicing release review labels Jul 16, 2021
@jeffschwMSFT jeffschwMSFT merged commit 8f05a12 into release/6.0-preview7 Jul 17, 2021
@akoeplinger akoeplinger deleted the backport/pr-55834-to-release/6.0-preview7 branch July 19, 2021 14:29
@ghost ghost locked as resolved and limited conversation to collaborators Aug 18, 2021
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

area-VM-coreclr Servicing-consider Issue for next servicing release review

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants