Skip to content

Add FEATURE_READONLY_GS_COOKIE for NativeAOT - #73744

Merged
MichalStrehovsky merged 1 commit into
dotnet:mainfrom
TheSpydog:gscookies
Aug 12, 2022
Merged

MichalStrehovsky merged 1 commit into
dotnet:mainfrom
TheSpydog:gscookies

Conversation

@TheSpydog

@TheSpydog TheSpydog commented Aug 11, 2022 •

Copy link
Copy Markdown
Contributor

Fixes #73695. This defaults to enabling readonly guard stack cookies on Unix, but allows the feature to be disabled if needed for a particular platform.

@ghost ghost added area-NativeAOT-coreclr community-contribution Indicates that the PR has been added by a community member labels Aug 11, 2022
@dnfadmin

dnfadmin commented Aug 11, 2022 •

Copy link
Copy Markdown

CLA assistant check
All CLA requirements met.

@TheSpydog TheSpydog changed the title Add FEATURE_RANDOMIZED_GS_COOKIES for NativeAOT Add FEATURE_READONLY_GS_COOKIE for NativeAOT Aug 11, 2022
@MichalPetryka

Copy link
Copy Markdown
Contributor

Is making .rodata writeable really a good idea on other platforms?

@jkotas

jkotas commented Aug 11, 2022

Copy link
Copy Markdown
Member

Is making .rodata writeable really a good idea on other platforms?

It is writeable only temporarily, it works on all platforms we care about and it matches what regular CoreCLR does. We try to share or reuse what regular CoreCLR does as much as possible.

@MichalStrehovsky
MichalStrehovsky merged commit ae24786 into dotnet:main Aug 12, 2022
@ghost ghost locked as resolved and limited conversation to collaborators Sep 11, 2022
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

area-NativeAOT-coreclr community-contribution Indicates that the PR has been added by a community member

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[NativeAOT] Randomizing guard stack cookie not supported on some Unix platforms

5 participants