Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[release/8.0-staging] Fix infinite loop in genCreateAddrMode #106767

Merged

Conversation

github-actions[bot]
Copy link
Contributor

@github-actions github-actions bot commented Aug 21, 2024

Backport of #106732 to release/8.0-staging

A customer reported issue (#106607) where an obfuscated app spins forever due to an infinite loop in JIT. It seems that the IL obfuscator is the culprit here since it generated a quite absurd (but valid) IL that JIT had no test coverage for. It is very unlikely it's possible to generate a similar pattern with plain C# since Roslyn does constant folding and overshift handling even for Debug.

/cc @EgorBo

Customer Impact

  • Customer reported
  • Found internally

Impact: IL obfuscators may lead to freezes in the resulting app

Regression

  • Yes (Regressed in .NET 7.0)
  • No

Testing

A test is added. It's unlikely to be possible to hit it with plain C#.

Risk

Low

@dotnet-issue-labeler dotnet-issue-labeler bot added the area-CodeGen-coreclr CLR JIT compiler in src/coreclr/src/jit and related components such as SuperPMI label Aug 21, 2024
Copy link
Contributor

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

@carlossanlop
Copy link
Member

This is still missing Tactics approval.

Friendly reminder that Code Complete for the October Release is September 9. If we want this fix to be included in that release, please merge this PR before that date.

@JulieLeeMSFT JulieLeeMSFT added the Servicing-consider Issue for next servicing release review label Sep 9, 2024
@carlossanlop carlossanlop added Servicing-approved Approved for servicing release and removed Servicing-consider Issue for next servicing release review labels Sep 9, 2024
@carlossanlop carlossanlop added this to the 8.0.10 milestone Sep 9, 2024
@carlossanlop carlossanlop merged commit f34e9ac into release/8.0-staging Sep 9, 2024
122 of 126 checks passed
@carlossanlop carlossanlop deleted the backport/pr-106732-to-release/8.0-staging branch September 9, 2024 22:25
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
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.

4 participants