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

Issue 2726733003: CSRSS lockdown: destroy CSRSS heap (Closed)

Created:
3 years, 9 months ago by liamjm (20p)
Modified:
3 years, 7 months ago
Reviewers:
penny, dcheng, Will Harris
CC:
chromium-reviews, wfh+watch_chromium.org, pennymac+watch_chromium.org
Target Ref:
refs/heads/master
Project:
chromium
Visibility:
Public.

Description

CSRSS lockdown: destroy CSRSS heap A heap is created by CSR client that is used to share memory between the client and csrss.exe (the server). We destroy this heap to ensure all heaps are valid (that any callers of GetProcessHeaps() receive valid heaps). BUG=464430 CQ_INCLUDE_TRYBOTS=master.tryserver.chromium.win:win10_chromium_x64_rel_ng Review-Url: https://codereview.chromium.org/2726733003 Cr-Commit-Position: refs/heads/master@{#469175} Committed: https://chromium.googlesource.com/chromium/src/+/6a8fe629a1676d9de015dbac090145119e2c62ef

Patch Set 1 #

Patch Set 2 : revert modified BUILD.gn #

Patch Set 3 : don't explicitly close ALPC ports in handle_closer_test.cc, defer to policy #

Patch Set 4 : remove unused variable to make it compile #

Patch Set 5 : rebase #

Patch Set 6 : refactor heap code to heap_helper, add some explicit tests of these heap_helper functions #

Total comments: 15

Patch Set 7 : tweaks from review #

Patch Set 8 : Merge branch 'master' of https://chromium.googlesource.com/chromium/src into destroy_heap #

Patch Set 9 : fix test #

Patch Set 10 : fix broken compile #

Patch Set 11 : move anonymous namespace inside of sandbox namespace in sandbox/win/src/target_services.cc #

Patch Set 12 : don't support or test heap flag fetching on versions before win10 #

Patch Set 13 : Merge branch 'master' of https://chromium.googlesource.com/chromium/src into destroy_heap #

Total comments: 1
Unified diffs Side-by-side diffs Delta from patch set Stats (+179 lines, -9 lines) Patch
M sandbox/win/BUILD.gn View 1 2 3 4 5 6 7 8 9 10 11 12 1 chunk +2 lines, -0 lines 0 comments Download
M sandbox/win/src/handle_closer_test.cc View 1 2 3 1 chunk +2 lines, -3 lines 0 comments Download
A sandbox/win/src/heap_helper.h View 1 2 3 4 5 6 1 chunk +21 lines, -0 lines 0 comments Download
A sandbox/win/src/heap_helper.cc View 1 2 3 4 5 6 7 8 9 10 11 1 chunk +65 lines, -0 lines 1 comment Download
M sandbox/win/src/lpc_policy_test.cc View 1 2 3 4 5 6 7 8 9 10 11 2 chunks +63 lines, -0 lines 0 comments Download
M sandbox/win/src/target_services.cc View 1 2 3 4 5 6 7 8 9 10 4 chunks +26 lines, -6 lines 0 comments Download

Messages

Total messages: 26 (10 generated)
liamjm (20p)
Hi, Please have a look at this code, now with some tests of the heap ...
3 years, 9 months ago (2017-03-22 18:48:21 UTC) #4
Will Harris
https://codereview.chromium.org/2726733003/diff/100001/sandbox/win/src/heap_helper.cc File sandbox/win/src/heap_helper.cc (right): https://codereview.chromium.org/2726733003/diff/100001/sandbox/win/src/heap_helper.cc#newcode24 sandbox/win/src/heap_helper.cc:24: _HEAP* heap = reinterpret_cast<_HEAP*>(handle); is there any validation that ...
3 years, 9 months ago (2017-03-22 19:21:49 UTC) #5
liamjm (20p)
thanks. PTAL. https://codereview.chromium.org/2726733003/diff/100001/sandbox/win/src/heap_helper.cc File sandbox/win/src/heap_helper.cc (right): https://codereview.chromium.org/2726733003/diff/100001/sandbox/win/src/heap_helper.cc#newcode24 sandbox/win/src/heap_helper.cc:24: _HEAP* heap = reinterpret_cast<_HEAP*>(handle); On 2017/03/22 19:21:49, ...
3 years, 8 months ago (2017-04-14 17:27:20 UTC) #6
Will Harris
this is looking good, but the tests still appear to be failing, can you take ...
3 years, 7 months ago (2017-05-01 18:33:16 UTC) #7
liamjm (20p)
On 2017/05/01 18:33:16, Will Harris wrote: > this is looking good, but the tests still ...
3 years, 7 months ago (2017-05-03 17:50:15 UTC) #8
liamjm (20p)
On 2017/05/03 17:50:15, liamjm (20p) wrote: > On 2017/05/01 18:33:16, Will Harris wrote: > > ...
3 years, 7 months ago (2017-05-03 19:33:11 UTC) #9
liamjm (20p)
3 years, 7 months ago (2017-05-03 19:33:19 UTC) #10
Will Harris
lgtm
3 years, 7 months ago (2017-05-03 19:36:27 UTC) #12
commit-bot: I haz the power
CQ is trying da patch. Follow status at: https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.org/2726733003/220001
3 years, 7 months ago (2017-05-03 19:38:21 UTC) #14
commit-bot: I haz the power
CQ is trying da patch. Follow status at: https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.org/2726733003/240001
3 years, 7 months ago (2017-05-03 20:34:39 UTC) #17
commit-bot: I haz the power
Committed patchset #13 (id:240001) as https://chromium.googlesource.com/chromium/src/+/6a8fe629a1676d9de015dbac090145119e2c62ef
3 years, 7 months ago (2017-05-03 22:41:06 UTC) #20
dcheng
drive-by https://codereview.chromium.org/2726733003/diff/240001/sandbox/win/src/heap_helper.cc File sandbox/win/src/heap_helper.cc (right): https://codereview.chromium.org/2726733003/diff/240001/sandbox/win/src/heap_helper.cc#newcode51 sandbox/win/src/heap_helper.cc:51: LOG(ERROR) << "Unable to get flags for this ...
3 years, 7 months ago (2017-05-03 23:26:05 UTC) #22
Will Harris
On 2017/05/03 23:26:05, dcheng wrote: > drive-by > > https://codereview.chromium.org/2726733003/diff/240001/sandbox/win/src/heap_helper.cc > File sandbox/win/src/heap_helper.cc (right): > ...
3 years, 7 months ago (2017-05-03 23:28:24 UTC) #23
Bret
I just pulled and this is causing all my tabs to be sad as soon ...
3 years, 7 months ago (2017-05-06 00:00:13 UTC) #24
Will Harris
On 2017/05/06 00:00:13, Bret Sepulveda wrote: > I just pulled and this is causing all ...
3 years, 7 months ago (2017-05-06 02:29:30 UTC) #25
Bret
3 years, 7 months ago (2017-05-09 23:31:46 UTC) #26
Message was sent while issue was closed.
On 2017/05/06 02:29:30, Will Harris wrote:
> On 2017/05/06 00:00:13, Bret Sepulveda wrote:
> > I just pulled and this is causing all my tabs to be sad as soon as they
start
> > up. Replacing "return false" with "return true" in CsrssDisconnectCleanup
> makes
> > it stop.
> 
> which is strange, because the code has been in since 60.0.3089.0. Are you
> running with --enable-features=EnableCsrssLockdown?

I hadn't pulled in a while, and I wasn't running with any flags.

I pulled again and it's not happening now, but I noticed you didn't actually
change anything, so I'm very confused. At least it's not causing me trouble any
more.

Powered by Google App Engine
This is Rietveld 408576698