Skip to content

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

Merged
carlossanlop merged 1 commit intorelease/8.0-stagingfrom
backport/pr-106732-to-release/8.0-staging
Sep 9, 2024
Merged

[release/8.0-staging] Fix infinite loop in genCreateAddrMode#106767
carlossanlop merged 1 commit intorelease/8.0-stagingfrom
backport/pr-106732-to-release/8.0-staging

Conversation

@github-actions
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

@ghost ghost added the area-CodeGen-coreclr CLR JIT compiler in src/coreclr/src/jit and related components such as SuperPMI label Aug 21, 2024
@dotnet-policy-service
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
Contributor

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
@carlossanlop carlossanlop deleted the backport/pr-106732-to-release/8.0-staging branch September 9, 2024 22:25
@github-actions github-actions bot locked and limited conversation to collaborators Oct 10, 2024
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.

4 participants