Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(85)

Issue 1401483002: Fix PartitionAlloc randomization on 32-bit systems (Closed)

Created:
5 years, 2 months ago by jschuh
Modified:
5 years, 2 months ago
CC:
chromium-reviews, blink-reviews, blink-reviews-wtf_chromium.org, Mikhail
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Fix PartitionAlloc randomization on 32-bit systems Make PartitionAlloc reduce churn on Windows system allocations, and use less aggressive randomization on 32-bit systems in general. Updated version of: https://codereview.chromium.org/1383153002/ BUG=538479, 394591 Committed: https://crrev.com/bae4e6fc3d968bd444f793e4fc821ba1078070be Cr-Commit-Position: refs/heads/master@{#353881}

Patch Set 1 #

Patch Set 2 : cleanup #

Patch Set 3 : uninit fix + align #

Patch Set 4 : build fix #

Patch Set 5 : setSystemPagesAccessible #

Patch Set 6 : posix_memalign #

Patch Set 7 : posix_memalign #

Patch Set 8 : remove memory tool ifdefs #

Patch Set 9 : return null base address for memory tools #

Total comments: 2

Patch Set 10 : carve out tsan's range in getRandomPageBase #

Total comments: 4
Unified diffs Side-by-side diffs Delta from patch set Stats (+96 lines, -68 lines) Patch
M third_party/WebKit/Source/wtf/AddressSpaceRandomization.cpp View 1 2 3 4 5 6 7 8 9 2 chunks +15 lines, -0 lines 4 comments Download
M third_party/WebKit/Source/wtf/PageAllocator.cpp View 1 2 3 4 5 6 7 2 chunks +81 lines, -68 lines 0 comments Download

Messages

Total messages: 42 (23 generated)
commit-bot: I haz the power
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1401483002/60001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1401483002/60001
5 years, 2 months ago (2015-10-09 05:30:54 UTC) #4
commit-bot: I haz the power
Dry run: Try jobs failed on following builders: android_arm64_dbg_recipe on tryserver.chromium.linux (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.linux/builders/android_arm64_dbg_recipe/builds/129719)
5 years, 2 months ago (2015-10-09 05:45:52 UTC) #6
commit-bot: I haz the power
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1401483002/120001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1401483002/120001
5 years, 2 months ago (2015-10-09 08:28:27 UTC) #9
commit-bot: I haz the power
Dry run: Try jobs failed on following builders: android_clang_dbg_recipe on tryserver.chromium.linux (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.linux/builders/android_clang_dbg_recipe/builds/131436)
5 years, 2 months ago (2015-10-09 08:59:01 UTC) #11
commit-bot: I haz the power
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1401483002/340001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1401483002/340001
5 years, 2 months ago (2015-10-11 23:27:53 UTC) #21
jschuh
glider@ - Mind taking a look? TSan seems fine at this point, but there are ...
5 years, 2 months ago (2015-10-11 23:29:05 UTC) #23
commit-bot: I haz the power
Dry run: Try jobs failed on following builders: linux_chromium_asan_rel_ng on tryserver.chromium.linux (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.linux/builders/linux_chromium_asan_rel_ng/builds/63940)
5 years, 2 months ago (2015-10-12 00:39:46 UTC) #25
jschuh
glider@ - ping haraken@ - This is an updated version of my earlier patch that ...
5 years, 2 months ago (2015-10-12 23:43:09 UTC) #27
haraken
LGTM
5 years, 2 months ago (2015-10-12 23:51:03 UTC) #28
Alexander Potapenko
https://codereview.chromium.org/1401483002/diff/370001/third_party/WebKit/Source/wtf/AddressSpaceRandomization.cpp File third_party/WebKit/Source/wtf/AddressSpaceRandomization.cpp (right): https://codereview.chromium.org/1401483002/diff/370001/third_party/WebKit/Source/wtf/AddressSpaceRandomization.cpp#newcode89 third_party/WebKit/Source/wtf/AddressSpaceRandomization.cpp:89: #if defined(MEMORY_TOOL_REPLACES_ALLOCATOR) You also need "if !defined(MEMORY_TOOL_REPLACES_ALLOCATOR)" around the ...
5 years, 2 months ago (2015-10-13 16:02:42 UTC) #29
jschuh
https://codereview.chromium.org/1401483002/diff/370001/third_party/WebKit/Source/wtf/AddressSpaceRandomization.cpp File third_party/WebKit/Source/wtf/AddressSpaceRandomization.cpp (right): https://codereview.chromium.org/1401483002/diff/370001/third_party/WebKit/Source/wtf/AddressSpaceRandomization.cpp#newcode89 third_party/WebKit/Source/wtf/AddressSpaceRandomization.cpp:89: #if defined(MEMORY_TOOL_REPLACES_ALLOCATOR) On 2015/10/13 16:02:42, Alexander Potapenko wrote: > ...
5 years, 2 months ago (2015-10-13 17:44:13 UTC) #30
Alexander Potapenko
https://codereview.chromium.org/1401483002/diff/390001/third_party/WebKit/Source/wtf/AddressSpaceRandomization.cpp File third_party/WebKit/Source/wtf/AddressSpaceRandomization.cpp (right): https://codereview.chromium.org/1401483002/diff/390001/third_party/WebKit/Source/wtf/AddressSpaceRandomization.cpp#newcode103 third_party/WebKit/Source/wtf/AddressSpaceRandomization.cpp:103: // This range is copied from the TSan source, ...
5 years, 2 months ago (2015-10-13 18:00:46 UTC) #31
jschuh
https://codereview.chromium.org/1401483002/diff/390001/third_party/WebKit/Source/wtf/AddressSpaceRandomization.cpp File third_party/WebKit/Source/wtf/AddressSpaceRandomization.cpp (right): https://codereview.chromium.org/1401483002/diff/390001/third_party/WebKit/Source/wtf/AddressSpaceRandomization.cpp#newcode103 third_party/WebKit/Source/wtf/AddressSpaceRandomization.cpp:103: // This range is copied from the TSan source, ...
5 years, 2 months ago (2015-10-13 18:35:57 UTC) #32
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1401483002/390001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1401483002/390001
5 years, 2 months ago (2015-10-13 18:46:39 UTC) #35
commit-bot: I haz the power
Try jobs failed on following builders: win_chromium_rel_ng on tryserver.chromium.win (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.win/builders/win_chromium_rel_ng/builds/119990)
5 years, 2 months ago (2015-10-13 21:17:08 UTC) #37
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1401483002/390001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1401483002/390001
5 years, 2 months ago (2015-10-13 21:22:13 UTC) #39
commit-bot: I haz the power
Committed patchset #10 (id:390001)
5 years, 2 months ago (2015-10-13 22:44:09 UTC) #40
commit-bot: I haz the power
Patchset 10 (id:??) landed as https://crrev.com/bae4e6fc3d968bd444f793e4fc821ba1078070be Cr-Commit-Position: refs/heads/master@{#353881}
5 years, 2 months ago (2015-10-13 22:44:40 UTC) #41
Alexander Potapenko
5 years, 2 months ago (2015-10-14 13:48:34 UTC) #42
Message was sent while issue was closed.
LGTM

Powered by Google App Engine
This is Rietveld 408576698