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

Issue 1314843008: Make PartitionAllocDeathTest.GuardPages pass on Win64. (Closed)

Created:
5 years, 3 months ago by Nico
Modified:
5 years, 3 months ago
Reviewers:
haraken, Tom Sepez, scottmg
CC:
blink-reviews, Mads Ager (chromium), oilpan-reviews, blink-reviews-wtf_chromium.org, kouhei+heap_chromium.org, Mikhail
Base URL:
https://chromium.googlesource.com/chromium/blink.git@master
Target Ref:
refs/heads/master
Project:
blink
Visibility:
Public.

Description

Make PartitionAllocDeathTest.GuardPages pass on Win64. On Windows, the allocation granularity is 64kB instead of 4kB elsewhere, so if a multiple of 4kB data is requested from partitionAlloc() there is some free space at the end. On 32-bit 4kB following the allocation is mapped as inaccessible, but on 64-bit this isn't done since ASLR should cover writes that are far enough out-of-bounds. So make sure GuardPages writes outside of the allocated memory, and not into the free space at the end of the allocation. BUG=524308 Committed: https://src.chromium.org/viewvc/blink?view=rev&revision=201453

Patch Set 1 #

Patch Set 2 : posix #

Unified diffs Side-by-side diffs Delta from patch set Stats (+18 lines, -3 lines) Patch
M Source/wtf/PartitionAllocTest.cpp View 1 1 chunk +18 lines, -3 lines 0 comments Download

Messages

Total messages: 9 (2 generated)
Nico
scottmg, if you're comfortable stamping this (since I mail-bombed you through the bug) I'd take ...
5 years, 3 months ago (2015-08-28 23:07:58 UTC) #2
scottmg
The updated logic of the test/comment smells-lgtm, but Tom should really do a thorough review ...
5 years, 3 months ago (2015-08-29 01:34:17 UTC) #3
haraken
LGTM I guess NaCl will hit the same problem. NaCl is using a system page ...
5 years, 3 months ago (2015-08-29 07:58:13 UTC) #4
Nico
On 2015/08/29 07:58:13, haraken wrote: > LGTM > > I guess NaCl will hit the ...
5 years, 3 months ago (2015-08-29 15:45:14 UTC) #5
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1314843008/20001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1314843008/20001
5 years, 3 months ago (2015-08-29 15:45:30 UTC) #7
commit-bot: I haz the power
Committed patchset #2 (id:20001) as https://src.chromium.org/viewvc/blink?view=rev&revision=201453
5 years, 3 months ago (2015-08-29 15:49:42 UTC) #8
haraken
5 years, 3 months ago (2015-08-30 01:21:53 UTC) #9
Message was sent while issue was closed.
On 2015/08/29 15:45:14, Nico wrote:
> On 2015/08/29 07:58:13, haraken wrote:
> > LGTM
> > 
> > I guess NaCl will hit the same problem. NaCl is using a system page of 64 KB
> as
> > well.
> 
> Thanks!
> 
> Do we build blink with the NaCl toolchain somewhere? From what I can
> tell,kPageAllocationGranularity is only set to 64k on win; if we build blink
> with NaCl we should probably set it to 64k in that case too?

Not yet but planned. I don't know the latest status but the NaCl team is working
on that now.

Powered by Google App Engine
This is Rietveld 408576698