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

Issue 1635343002: Stop initializing code pages with RWX permissions (Closed)

Created:
4 years, 11 months ago by Todd Eisenberger
Modified:
4 years, 10 months ago
Reviewers:
siva, Ivan Posva
CC:
reviews_dartlang.org, vm-dev_dartlang.org
Base URL:
https://github.com/dart-lang/sdk.git@master
Target Ref:
refs/heads/master
Visibility:
Public.

Description

Stop initializing code pages with RWX permissions We shouldn't need to execute the code pages until after we're done writing to them, so we can drop the initial execute bit. Without this, part of a mapping can sit in a freelist with RWX permissions indefinitely, which makes for an easier target under certain exploits. BUG= R=asiva@google.com Committed: https://github.com/dart-lang/sdk/commit/ca85ec7955095f3565b1b18bd43775191ac6ee4b

Patch Set 1 #

Patch Set 2 : Stop initializing code pages with RWX permissions #

Total comments: 2

Patch Set 3 : Correct bug siva identified #

Unified diffs Side-by-side diffs Delta from patch set Stats (+3 lines, -1 line) Patch
M runtime/vm/pages.cc View 1 2 1 chunk +3 lines, -1 line 0 comments Download

Messages

Total messages: 10 (4 generated)
Todd Eisenberger
This is the patch I mentioned earlier that gets rid of dangling RWX pages
4 years, 10 months ago (2016-01-27 23:03:30 UTC) #3
siva
https://codereview.chromium.org/1635343002/diff/20001/runtime/vm/pages.cc File runtime/vm/pages.cc (right): https://codereview.chromium.org/1635343002/diff/20001/runtime/vm/pages.cc#newcode54 runtime/vm/pages.cc:54: bool create_executable = !FLAG_write_protect_code; Shouldn't this be bool create_executable ...
4 years, 10 months ago (2016-01-28 00:10:16 UTC) #5
Todd Eisenberger
https://codereview.chromium.org/1635343002/diff/20001/runtime/vm/pages.cc File runtime/vm/pages.cc (right): https://codereview.chromium.org/1635343002/diff/20001/runtime/vm/pages.cc#newcode54 runtime/vm/pages.cc:54: bool create_executable = !FLAG_write_protect_code; On 2016/01/28 00:10:16, siva wrote: ...
4 years, 10 months ago (2016-01-28 00:21:05 UTC) #6
Todd Eisenberger
4 years, 10 months ago (2016-01-28 00:21:07 UTC) #7
siva
lgtm
4 years, 10 months ago (2016-01-29 00:22:29 UTC) #8
Todd Eisenberger
4 years, 10 months ago (2016-01-29 19:21:17 UTC) #10
Message was sent while issue was closed.
Committed patchset #3 (id:40001) manually as
ca85ec7955095f3565b1b18bd43775191ac6ee4b (presubmit successful).

Powered by Google App Engine
This is Rietveld 408576698