Skip to content

[release/7.0] [mono][ppc64le] Fix wrong implementation of OP_CHECK_THIS - #77269

Merged
carlossanlop merged 1 commit into
release/7.0from
backport/pr-76990-to-release/7.0
Nov 2, 2022
Merged

[release/7.0] [mono][ppc64le] Fix wrong implementation of OP_CHECK_THIS #77269
carlossanlop merged 1 commit into
release/7.0from
backport/pr-76990-to-release/7.0

Conversation

@github-actions

@github-actionsgithub-actionsBot commented Oct 20, 2022

Copy link
Copy Markdown
Contributor

Backport of #76990 to release/7.0

/cc @lambdageek@Sapana-Khemkar

Customer Impact

Fixes a crash for customers running .NET on the PowerPC architecture in code that calls CoreLib methods that call SpanHelpers.IndexOfValueType.
In OP_CHECK_THIS access single byte only instead of double word.
This fixes crashes observed in runtime-portable/runtime during source build with rc1 on ppc64le. All these crashes were segmentation faults in SpanHelpers.IndexOfValueType.

Similar issue has been observed on s390 platform as well. Issue was opened https://github.com/dotnet/runtime/issues/76915and fixed by #76916

Testing

Manual testing

Risk

Low. The change is in the PPC-specific part of the mono JIT, and does not affect mobile, WASM or CoreCLR platforms.

@ghostghost added the area-VM-meta-mono label Oct 20, 2022
@lambdageeklambdageek added this to the 7.0.x milestone Oct 20, 2022
@lambdageeklambdageek added the Servicing-consider Issue for next servicing release review label Oct 20, 2022
@lambdageeklambdageek self-assigned this Oct 20, 2022
@rbhandarbhanda added Servicing-approved Approved for servicing release and removed Servicing-consider Issue for next servicing release review labels Oct 20, 2022
@rbhandarbhanda modified the milestones: 7.0.x, 7.0.1Oct 20, 2022
@carlossanlop

Copy link
Copy Markdown
Contributor

CI failure is coming from WASM and unrelated, and has just been fixed, so no re-run needed: #76939

Approved by Tactics, signed off by area owner. Ready to merge. :shipit:

@carlossanlop
carlossanlop merged commit 8d4ac19 into release/7.0Nov 2, 2022
@carlossanlop
carlossanlop deleted the backport/pr-76990-to-release/7.0 branch November 2, 2022 22:08
@ghostghost locked as resolved and limited conversation to collaborators Dec 3, 2022
Sign up for freeto subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

area-VM-meta-monoServicing-approvedApproved for servicing release

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants

@carlossanlop@vargaz@lambdageek@rbhanda@Sapana-Khemkar