8000 fix: use the gin PageAllocator instead of V8::PageAllocator by MarshallOfSound · Pull Request #26331 · electron/electron · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

fix: use the gin PageAllocator instead of V8::PageAllocator #26331

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

Merged
merged 3 commits into from
Nov 9, 2020

Conversation

MarshallOfSound
Copy link
Member

This makes browser-process JS allocate pages using the base/gin allocator thus ensuring flags such as MAP_JIT are appropriately applied.

Without this changes apps were forced to codesign the browser process with com.apple.security.cs.allow-unsigned-executable-memory (which is a bad thing).

Notes: Updated internal memory allocation logic such that you no longer need to use the com.apple.security.cs.allow-unsigned-executable-memory codesign entitlement on macOS

This makes browser-process JS allocate pages using the base/gin allocator thus ensuring flags such as MAP_JIT are appropriately applied.
@MarshallOfSound MarshallOfSound requested a review from a team as a code owner November 4, 2020 00:22
@electron-cation electron-cation bot added the new-pr 🌱 PR opened recently label Nov 4, 2020
@deepak1556
Copy link
Member

Is there path to upstream these patches ?

LGTM otherwise, nice find!

@electron-cation electron-cation bot removed the new-pr 🌱 PR opened recently label Nov 5, 2020
@MarshallOfSound
Copy link
Member Author

Is there path to upstream these patches ?

The gin one, probably not. The node one definitely

Date: Tue, 3 Nov 2020 16:49:32 -0800
Subject: export gin::V8Platform::PageAllocator for usage outside of the gin
platform

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Can you add an explanation here w/ upstream plans?

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

lint failed here :( this needs a description @MarshallOfSound

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Oops, missed this comment. How did it go green if lint was failing :/

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

sorry, i meant lint failed to detect the missing description because of the two-line subject

@MarshallOfSound MarshallOfSound merged commit 40ebdb5 into master Nov 9, 2020
@release-clerk
Copy link
release-clerk bot commented Nov 9, 2020

Release Notes Persisted

Updated internal memory allocation logic such that you no longer need to use the com.apple.security.cs.allow-unsigned-executable-memory codesign entitlement on macOS

@MarshallOfSound MarshallOfSound deleted the gin-allocator branch November 9, 2020 21:57
@dsanders11 dsanders11 mentioned this pull request Nov 19, 2020
1 task
taratatach added a commit to cozy-labs/cozy-desktop that referenced this pull request Mar 16, 2021
  Electron v12 fixes an issue in the way memory was allocated which
  allows us to remove an unsafe macOS codesign entitlement allowing
  to execute unsigned memory.

  See electron/electron#26331 for more details.
taratatach added a commit to cozy-labs/cozy-desktop that referenced this pull request Mar 16, 2021
  Electron v12 fixes an issue in the way memory was allocated which
  allows us to remove an unsafe macOS codesign entitlement allowing
  to execute unsigned memory.

  See electron/electron#26331 for more details.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants
0