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

Issue 23458022: Use PAGE_NOACCESS for guard pages in Windows. (Closed)

Created:
7 years, 3 months ago by Benedikt Meurer
Modified:
7 years, 3 months ago
CC:
v8-dev
Visibility:
Public.

Description

Use PAGE_NOACCESS for guard pages in Windows. Up until now we used PAGE_GUARD for guard pages in Windows, which will raise a STATUS_GUARD_PAGE_VIOLATION exception on first access and grant regular access afterwards. This behavior is required to implement automatic stack checking, or more generally to implement applications that monitor the growth of large dynamic data structures. However, this is not what we want for our guard pages, which are used as a security mechanism. What we really want is PAGE_NOACCESS here, which is the Windows-equivalent of PROT_NONE that we use on all other platforms. R=cdn@chromium.org Committed: https://code.google.com/p/v8/source/detail?r=16604

Patch Set 1 #

Unified diffs Side-by-side diffs Delta from patch set Stats (+4 lines, -4 lines) Patch
M src/platform-cygwin.cc View 1 chunk +1 line, -1 line 0 comments Download
M src/platform-posix.cc View 1 chunk +1 line, -1 line 0 comments Download
M src/platform-win32.cc View 2 chunks +2 lines, -2 lines 0 comments Download

Messages

Total messages: 10 (0 generated)
Benedikt Meurer
Hey Michi, Here's the change we discussed offline to use PAGE_NOACCESS on Windows, PTAL. -- ...
7 years, 3 months ago (2013-09-05 08:39:37 UTC) #1
Vyacheslav Egorov (Google)
+cdn Original OS::Guard was submitted by Cris Neckar. I always assumed that choice of PROT_GUARD ...
7 years, 3 months ago (2013-09-05 08:51:05 UTC) #2
Michael Starzinger
Looking OK from my end. I'll leave the final decision up to Cris.
7 years, 3 months ago (2013-09-05 09:22:12 UTC) #3
Cris Neckar
On 2013/09/05 09:22:12, Michael Starzinger wrote: > Looking OK from my end. I'll leave the ...
7 years, 3 months ago (2013-09-06 17:48:46 UTC) #4
Benedikt Meurer
On 2013/09/06 17:48:46, Cris Neckar wrote: > On 2013/09/05 09:22:12, Michael Starzinger wrote: > > ...
7 years, 3 months ago (2013-09-09 05:38:48 UTC) #5
Benedikt Meurer
CC'ing Sven for additional feedback
7 years, 3 months ago (2013-09-09 05:39:25 UTC) #6
Sven Panne
Hmmm, actually I would prefer PAGE_NOACCESS, too. MSDN explicitly describes PAGE_GUARD as a mechanism for ...
7 years, 3 months ago (2013-09-09 07:40:39 UTC) #7
Cris Neckar
On 2013/09/09 07:40:39, Sven Panne wrote: > Hmmm, actually I would prefer PAGE_NOACCESS, too. MSDN ...
7 years, 3 months ago (2013-09-09 20:31:19 UTC) #8
Cris Neckar
lgtm
7 years, 3 months ago (2013-09-09 20:31:53 UTC) #9
Benedikt Meurer
7 years, 3 months ago (2013-09-10 05:54:29 UTC) #10
Message was sent while issue was closed.
Committed patchset #1 manually as r16604 (presubmit successful).

Powered by Google App Engine
This is Rietveld 408576698