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/7.0] Fix buffer overruns in GC code #74974

Merged
merged 1 commit into from
Sep 2, 2022

Conversation

github-actions[bot]
Copy link
Contributor

@github-actions github-actions bot commented Sep 2, 2022

Backport of #74847 to release/7.0

/cc @AntonLapounov

Customer Impact

NativeAot-compiled apps that use server GC would intermittently corrupt memory and crash on 80 core Ampere machines running Windows 11/Windows Server 2022. In particular, that affects our NativeAot-compiled crossgen2 compiler under the default execution environment.

Non-NativeAot compiled apps that use server GC would corrupt memory by using an uninitialized stack variable as an index in the native array. That would happen only under non-default execution environment, e.g., when setting DOTNET_PROCESSOR_COUNT=100 and DOTNET_GCNoAffinitize=1.

Risk

Low. This change just adds minor validation to GC initialization code.

@ghost
Copy link

ghost commented Sep 2, 2022

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

Issue Details

Backport of #74847 to release/7.0

/cc @AntonLapounov

Customer Impact

Testing

Risk

IMPORTANT: 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.

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

area-GC-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 once we have a green ci we can merge

@carlossanlop
Copy link
Member

Approved, signed off, CI is green. Ready to merge. :shipit:

@carlossanlop carlossanlop merged commit 0604798 into release/7.0 Sep 2, 2022
@carlossanlop carlossanlop deleted the backport/pr-74847-to-release/7.0 branch September 2, 2022 16:43
@ghost ghost locked as resolved and limited conversation to collaborators Oct 2, 2022
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants