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

Issue 7379004: Add guard pages in front of platform allocations (Closed)

Created:
9 years, 5 months ago by Cris Neckar
Modified:
9 years, 5 months ago
CC:
v8-dev
Visibility:
Public.

Description

Add guard pages in front of executable allocations BUG=89247 Committed: http://code.google.com/p/v8/source/detail?r=8687

Patch Set 1 : '' #

Total comments: 10

Patch Set 2 : '' #

Total comments: 8

Patch Set 3 : '' #

Total comments: 4

Patch Set 4 : '' #

Total comments: 1
Unified diffs Side-by-side diffs Delta from patch set Stats (+68 lines, -18 lines) Patch
M src/platform.h View 1 2 1 chunk +4 lines, -0 lines 0 comments Download
M src/platform-nullos.cc View 1 2 1 chunk +5 lines, -0 lines 0 comments Download
M src/platform-posix.cc View 1 2 3 chunks +9 lines, -0 lines 0 comments Download
M src/platform-win32.cc View 1 2 1 chunk +6 lines, -0 lines 0 comments Download
M src/spaces.h View 1 2 2 chunks +0 lines, -3 lines 0 comments Download
M src/spaces.cc View 1 2 3 7 chunks +44 lines, -15 lines 1 comment Download

Messages

Total messages: 9 (0 generated)
Cris Neckar
new patch for bleeding edge branch
9 years, 5 months ago (2011-07-14 19:11:59 UTC) #1
Vyacheslav Egorov (Chromium)
we are almost there I think I am redirecting the last review (and landing) to ...
9 years, 5 months ago (2011-07-15 11:59:14 UTC) #2
Cris Neckar
http://codereview.chromium.org/7379004/diff/16/src/platform.h File src/platform.h (right): http://codereview.chromium.org/7379004/diff/16/src/platform.h#newcode212 src/platform.h:212: // Get the Alignment guaranteed by Allocate(). On 2011/07/15 ...
9 years, 5 months ago (2011-07-15 18:51:29 UTC) #3
Mads Ager (chromium)
The handling of the guard page is at two different levels now. At one level ...
9 years, 5 months ago (2011-07-17 09:47:53 UTC) #4
Cris Neckar
http://codereview.chromium.org/7379004/diff/12005/src/platform-cygwin.cc File src/platform-cygwin.cc (right): http://codereview.chromium.org/7379004/diff/12005/src/platform-cygwin.cc#newcode170 src/platform-cygwin.cc:170: mprotect(address, size, PROT_NONE); On 2011/07/17 09:47:53, Mads Ager wrote: ...
9 years, 5 months ago (2011-07-18 23:55:12 UTC) #5
Cris Neckar
Missed a header so I uploaded another patch
9 years, 5 months ago (2011-07-19 00:24:28 UTC) #6
Mads Ager (chromium)
Getting there. http://codereview.chromium.org/7379004/diff/21002/src/spaces.cc File src/spaces.cc (right): http://codereview.chromium.org/7379004/diff/21002/src/spaces.cc#newcode518 src/spaces.cc:518: ASSERT(*allocated_pages >= kPagesPerChunk - 1); Will this ...
9 years, 5 months ago (2011-07-19 09:11:13 UTC) #7
Cris Neckar
http://codereview.chromium.org/7379004/diff/21002/src/spaces.cc File src/spaces.cc (right): http://codereview.chromium.org/7379004/diff/21002/src/spaces.cc#newcode518 src/spaces.cc:518: ASSERT(*allocated_pages >= kPagesPerChunk - 1); On 2011/07/19 09:11:14, Mads ...
9 years, 5 months ago (2011-07-19 18:35:32 UTC) #8
Mads Ager (chromium)
9 years, 5 months ago (2011-07-20 07:24:16 UTC) #9
LGTM. There is one more off by one. I'll take care of that and land.

http://codereview.chromium.org/7379004/diff/27001/src/spaces.cc
File src/spaces.cc (right):

http://codereview.chromium.org/7379004/diff/27001/src/spaces.cc#newcode513
src/spaces.cc:513: kPagesPerChunk - ((guardsize ? 1 : 0) + 1));
Now that you have move the fiddling with the chunk pointer and the chunk size to
after the conditions you should not change the conditions at all. I think it is
off by a page in the other direction now.

Powered by Google App Engine
This is Rietveld 408576698