Skip to content

Conversation

@github-actions
Copy link
Contributor

@github-actions github-actions bot commented Oct 13, 2021

Backport of #60329 to release/6.0

/cc @BruceForstall

Customer Impact

This fixes a bug affecting an internal partner using .NET on special OS builds using low (<4GB) memory address space on x64 processors.

Testing

Hand testing, forcing low memory for a crc32 argument; plus normal CI testing and SPMI assembly diffs (none, as expected).

Risk

Very low: the change affects only one instruction (crc32), and only for the immediate addressing mode, which is not encountered on x64 except in this low-address-space system.

On x64, when the crc32 instruction 2nd operand is a memory address
(such as for a static field), and that address is containable
(which normally doesn't happen, because the address will be above
the 4GB lower address space), then the instruction was being
improperly encoded.
@ghost ghost added the area-CodeGen-coreclr CLR JIT compiler in src/coreclr/src/jit and related components such as SuperPMI label Oct 13, 2021
@ghost
Copy link

ghost commented Oct 13, 2021

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

Issue Details

Backport of #60329 to release/6.0

/cc @BruceForstall

Customer Impact

Testing

Risk

Author: github-actions[bot]
Assignees: -
Labels:

area-CodeGen-coreclr

Milestone: -

Copy link
Member

@jeffschwMSFT jeffschwMSFT left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Approved. Please get a code review and we can consider this one for .NET 6.

@jeffschwMSFT jeffschwMSFT added the Servicing-consider Issue for next servicing release review label Oct 13, 2021
@jeffschwMSFT jeffschwMSFT added this to the 6.0.0 milestone Oct 13, 2021
@BruceForstall
Copy link
Contributor

@tannergooding PTAL: port of fix to .NET 6
cc @dotnet/jit-contrib

@leecow leecow added Servicing-approved Approved for servicing release and removed Servicing-consider Issue for next servicing release review labels Oct 14, 2021
@Anipik Anipik merged commit 89123cb into release/6.0 Oct 14, 2021
@jkotas jkotas deleted the backport/pr-60329-to-release/6.0 branch October 23, 2021 13:06
@ghost ghost locked as resolved and limited conversation to collaborators Nov 22, 2021
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

area-CodeGen-coreclr CLR JIT compiler in src/coreclr/src/jit and related components such as SuperPMI Servicing-approved Approved for servicing release

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants