forked from Pissandshittium/pissandshittium
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[PartitionAlloc] Disallow committing when PageInaccessible is used
Until now, the functionality of requesting pages that are committed and PageInaccessible existed only on Windows. |AllocPages(..., PageInaccessible, ..., true)| led to |VirtualAlloc(..., MEM_RESERVE|MEM_COMMIT, PAGE_NOACCESS)| which would allocate memory charges without really backing virtual address space with physical pages. https://docs.microsoft.com/en-us/windows/win32/api/memoryapi/nf-memoryapi-virtualalloc This is inconsistent with |base::SetSystemPagesAccess| where |PageInaccessible| always leads to |VirtualFree(..., MEM_DECOMMIT)| Outside of unit tests, |AllocPages(..., PageInaccessible, ..., true)| was used only in a couple places in code, likely accidentally. Change-Id: I657787b4785e889984c5895518e9abbc26b50a2c Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2522934 Reviewed-by: Michael Lippautz <mlippautz@chromium.org> Reviewed-by: Benoit L <lizeb@chromium.org> Commit-Queue: Bartek Nowierski <bartekn@chromium.org> Cr-Commit-Position: refs/heads/master@{#826105}
- Loading branch information
1 parent
f9c9b51
commit c2f43fb
Showing
6 changed files
with
22 additions
and
11 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters