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/9.0] pal init: Move InitializeFlushProcessWriteBuffers() after VIRTUALInitialize() #107114

Merged
merged 1 commit into from
Aug 29, 2024

Conversation

github-actions[bot]
Copy link
Contributor

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

Backport of #107100 to release/9.0

/cc @jkotas @harisokanovic

Customer Impact

  • Customer reported
  • Found internally

The runtime fails to start on FreeBSD and on Linux with old kernel version.

Regression

  • Yes
  • No

Regression introduced by #106836. The bug is caused by PAL initialization order on a fallback path.

Testing

No automated testing on FreeBSD and old Linux kernels. We will ask FreeBSD maintainers to validate.

Risk

Low.

…ialize()

A fixup of commit 27ee590 that's broken on platforms which don't
support membarrier() syscall: GetVirtualPageSize() is called in the
fallback path of InitializeFlushProcessWriteBuffers() and attempts to
mmap() zero bytes.

Move InitializeFlushProcessWriteBuffers() after VIRTUALInitialize() but
before the first thread is created.

Fixes #106892
Fixes #106722
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. we can merge when ready

@jeffschwMSFT jeffschwMSFT added the Servicing-approved Approved for servicing release label Aug 28, 2024
@jkotas jkotas merged commit 0a5cccb into release/9.0 Aug 29, 2024
91 of 95 checks passed
@jkotas jkotas deleted the backport/pr-107100-to-release/9.0 branch August 29, 2024 01:39
@github-actions github-actions bot locked and limited conversation to collaborators Sep 28, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
area-PAL-coreclr Servicing-approved Approved for servicing release
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants