-
Notifications
You must be signed in to change notification settings - Fork 4.9k
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/7.0] JIT: Fix segfault for modulo computations involving address-of expressions #76171
Conversation
… trees We may get here for any invariant dividend/divisor but these can be 'complex' address-of trees that gtClone does not handle. Fix #76051
Tagging subscribers to this area: @JulieLeeMSFT, @jakobbotsch Issue DetailsBackport of #76061 to release/7.0 /cc @jakobbotsch Customer ImpactTestingRiskIMPORTANT: Is this backport for a servicing release? If so and this change touches code that ships in a NuGet package, please make certain that you have added any necessary package authoring and gotten it explicitly reviewed.
|
@jakobbotsch if this is ready, please add the |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
approved. we will take for consideration in 7 ga. please get a code review.
Approved by Tactics, CI is green, signed off. Ready to merge. |
Backport of #76061 to release/7.0
/cc @jakobbotsch
Customer Impact
Code that computes remainder where an operand is an address-of expression will crash the JIT on arm64 platforms.
For example, the following code crashes during JIT in .NET 7:
https://github.com/VSadov/NonBlocking/blob/e2bd82f6ebe80a81b769d8195aae22e3d2e19441/src/NonBlocking/Counter/CounterBase.cs#L32-L37
Reported by customer in #76051. This is a regression from .NET 6.
Testing
Regression test included.
Risk
Low.