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

Issue 1501003002: Added protection against mapping image sections between processes. (Closed)

Created:
5 years ago by forshaw
Modified:
5 years ago
CC:
chromium-reviews, gavinp+memory_chromium.org, vmpstr+watch_chromium.org
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Added protection against mapping image sections between processes. This patch adds guards to stop SharedMemory objects from mapping Windows image sections which could come from untrusted sources. BUG=564238 Committed: https://crrev.com/0474abea8469d78ce3988364ee273984ac49a9f2 Cr-Commit-Position: refs/heads/master@{#365984}

Patch Set 1 #

Patch Set 2 : Added missing duplicatehandle calls #

Patch Set 3 : Corrected EQ tests #

Total comments: 10

Patch Set 4 : Fixes from review #

Unified diffs Side-by-side diffs Delta from patch set Stats (+125 lines, -25 lines) Patch
M base/memory/shared_memory.h View 1 chunk +3 lines, -0 lines 0 comments Download
M base/memory/shared_memory_unittest.cc View 1 2 3 2 chunks +50 lines, -0 lines 0 comments Download
M base/memory/shared_memory_win.cc View 1 2 3 8 chunks +68 lines, -21 lines 0 comments Download
M content/common/sandbox_init_win.cc View 1 1 chunk +3 lines, -3 lines 0 comments Download
M sandbox/win/src/target_process.cc View 1 1 chunk +1 line, -1 line 0 comments Download

Messages

Total messages: 15 (3 generated)
forshaw
thestig@ could you review the changes to base for me. wfh@ could you look at ...
5 years ago (2015-12-16 15:06:32 UTC) #2
Will Harris
On 2015/12/16 15:06:32, forshaw wrote: > thestig@ could you review the changes to base for ...
5 years ago (2015-12-16 18:02:38 UTC) #3
Lei Zhang
On 2015/12/16 18:02:38, Will Harris wrote: > On 2015/12/16 15:06:32, forshaw wrote: > > thestig@ ...
5 years ago (2015-12-16 19:57:48 UTC) #4
Lei Zhang
https://codereview.chromium.org/1501003002/diff/40001/base/memory/shared_memory_unittest.cc File base/memory/shared_memory_unittest.cc (right): https://codereview.chromium.org/1501003002/diff/40001/base/memory/shared_memory_unittest.cc#newcode577 base/memory/shared_memory_unittest.cc:577: const char* kTestSectionName = "UnsafeImageSection"; const char kFoo[] ? ...
5 years ago (2015-12-16 20:44:11 UTC) #5
forshaw
thestig@ PTAL, done the fixes from the review. https://codereview.chromium.org/1501003002/diff/40001/base/memory/shared_memory_unittest.cc File base/memory/shared_memory_unittest.cc (right): https://codereview.chromium.org/1501003002/diff/40001/base/memory/shared_memory_unittest.cc#newcode577 base/memory/shared_memory_unittest.cc:577: const ...
5 years ago (2015-12-17 11:38:20 UTC) #6
Lei Zhang
lgtm if wfh@ is happy.
5 years ago (2015-12-17 19:16:30 UTC) #7
Will Harris
lgtm
5 years ago (2015-12-17 23:34:04 UTC) #8
nasko
LGTM based on wfh@'s review.
5 years ago (2015-12-18 00:15:25 UTC) #9
forshaw
On 2015/12/18 00:15:25, nasko wrote: > LGTM based on wfh@'s review. Thanks everyone for the ...
5 years ago (2015-12-18 00:19:26 UTC) #11
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1501003002/60001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1501003002/60001
5 years ago (2015-12-18 00:19:39 UTC) #12
commit-bot: I haz the power
Committed patchset #4 (id:60001)
5 years ago (2015-12-18 02:17:06 UTC) #13
commit-bot: I haz the power
5 years ago (2015-12-18 02:18:05 UTC) #15
Message was sent while issue was closed.
Patchset 4 (id:??) landed as
https://crrev.com/0474abea8469d78ce3988364ee273984ac49a9f2
Cr-Commit-Position: refs/heads/master@{#365984}

Powered by Google App Engine
This is Rietveld 408576698