Fix .NET 11 rc1 SDK crash on RHEL8 arm64 - #133887
Conversation
|
Azure Pipelines: 16 pipeline(s) were filtered out due to trigger conditions. There may be pipelines that require an authorized user to comment /azp run to run. |
|
Tagging subscribers to this area: @anicka-net, @dotnet/gc |
Agent-Logs-Url: https://github.com/dotnet/runtime/sessions/d6c20da4-66f0-474a-ad18-fc49264d3711 Co-authored-by: jkotas <6668460+jkotas@users.noreply.github.com>
|
Azure Pipelines: Successfully started running 3 pipeline(s). 13 pipeline(s) were filtered out due to trigger conditions. There may be pipelines that require an authorized user to comment /azp run to run. |
|
@MichalStrehovsky PTLA |
|
Tagging subscribers to this area: @agocke, @dotnet/ilc-contrib |
There was a problem hiding this comment.
🟢 Approval recommended
No unresolved review issues were identified.
Pull request overview
Fixes the NativeAOT ARM64 thunk crash on systems with 64 KiB pages.
Changes:
- Uses a PC-relative literal load for the common-stub pointer.
- Adds range and alignment validation.
File summaries
| File | Description |
|---|---|
src/coreclr/nativeaot/Runtime/ThunksMapping.cpp |
Corrects ARM64 thunk target loading. |
Review details
- Files reviewed: 1/1 changed files
- Comments generated: 0
- Review effort level: Lite
|
@jkoritzinsky Could you please signoff as well? Two sign-offs are not enough for this one... |
|
IIRC when I was looking at #131709, I noticed some places in the GC that seemed to assume that |
That's tracked by #133743 . You can comment on that there. |
|
/backport to release/11.0 |
|
Started backporting to |
Backport of #133887 to release/11.0 /cc @jkotas @Copilot ## Customer Impact - [x] Customer reported - [ ] Found internally NativeAOT compiled .NET SDK components crash on RHEL. The Arm64 instruction encoding used for NativeAOT marshalled delegate thunks did not work on RHEL that uses 64kB pages by default. This was found by running NativeAOT compiled SDK components on RHEL. ## Regression - [ ] Yes - [x] No ## Testing The fix was validated on RHEL. #133944 opened on improving the test coverage that would allow us to find this issue earlier. ## Risk Low Co-authored-by: Copilot <198982749+Copilot@users.noreply.github.com> Co-authored-by: jkotas <6668460+jkotas@users.noreply.github.com> Co-authored-by: Jan Kotas <jkotas@microsoft.com>
Fixes dotnet#133675 --------- Co-authored-by: copilot-swe-agent[bot] <198982749+Copilot@users.noreply.github.com> Co-authored-by: jkotas <6668460+jkotas@users.noreply.github.com> Co-authored-by: Jan Kotas <jkotas@microsoft.com>
Fixes #133675