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

Issue 1656453002: [Chrome ELF] Early browser security support. (Closed)

Created:
4 years, 10 months ago by penny
Modified:
4 years, 5 months ago
Reviewers:
robertshield
CC:
chromium-reviews, caitkp+watch_chromium.org, jschuh, csharp, Will Harris
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

[Chrome ELF] Early browser security support. This CL is part of a chain of CLs: 1) "MITIGATION_EXTENSION_POINT_DISABLE support for children" (https://codereview.chromium.org/1835003003) 2) "MITIGATION_EXTENSION_POINT_DISABLE emergency off finch" (https://codereview.chromium.org/1836523004/) 3) "New NT registry API" (https://codereview.chromium.org/1841573002) -> THIS 5) "Turn on MITIGATION_EXTENSION_POINT_DISABLE" (https://codereview.chromium.org/1854323002) Adjusted chrome_elf on Windows to disable extension points (early) in the browser process. Supported on >= Win8. Added a small test as well. Note: this CL does not "turn on" the mitigation. That will happen in the small, last CL (easy to revert if necessary). Tests: 1) chrome_elf_unittests, chrome_elf_util_unittest.cc: ChromeElfUtilTest.BrowserProcessSecurityTest*. BUG=557798 Committed: https://crrev.com/4e0b5f2a52d54bb39d85e9f9f9ca26ce7dd27975 Cr-Commit-Position: refs/heads/master@{#406337}

Patch Set 1 #

Total comments: 12

Patch Set 2 : Code review changes, part 1. #

Total comments: 1

Patch Set 3 : Code review changes, part 1.5. "Remove the __debugbreak(). New UMA in follow-up CL." #

Patch Set 4 : test #

Total comments: 8

Patch Set 5 : Code review fixes, part 2. #

Patch Set 6 : Branch update, new chrome_elf_security files, finch test. #

Patch Set 7 : chrome_elf_security source set missing deps. #

Patch Set 8 : Only run the new browser security test on >= Win8. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+170 lines, -9 lines) Patch
M chrome_elf/BUILD.gn View 1 2 3 4 5 6 3 chunks +13 lines, -0 lines 0 comments Download
M chrome_elf/chrome_elf.gyp View 1 2 3 4 5 6 3 chunks +17 lines, -0 lines 0 comments Download
A chrome_elf/chrome_elf_security.h View 1 2 3 4 5 1 chunk +11 lines, -0 lines 0 comments Download
A chrome_elf/chrome_elf_security.cc View 1 2 3 4 5 1 chunk +49 lines, -0 lines 0 comments Download
M chrome_elf/chrome_elf_util_unittest.cc View 1 2 3 4 5 6 7 5 chunks +80 lines, -9 lines 0 comments Download

Messages

Total messages: 42 (23 generated)
penny
Hi Robert, Do you have thoughts on whether I should make DllMain fail if a ...
4 years, 10 months ago (2016-01-29 23:35:24 UTC) #3
penny
Oh, I'm also interested to know if people think it's worth adding the finch experiment ...
4 years, 10 months ago (2016-01-29 23:51:05 UTC) #4
Will Harris
drive by!!! On 2016/01/29 23:51:05, penny wrote: > Oh, I'm also interested to know if ...
4 years, 10 months ago (2016-01-30 01:19:05 UTC) #6
jschuh
https://codereview.chromium.org/1656453002/diff/1/chrome_elf/chrome_elf_util.cc File chrome_elf/chrome_elf_util.cc (right): https://codereview.chromium.org/1656453002/diff/1/chrome_elf/chrome_elf_util.cc#newcode231 chrome_elf/chrome_elf_util.cc:231: if (::IsWindows8OrGreater()) { On 2016/01/30 01:19:05, Will Harris wrote: ...
4 years, 10 months ago (2016-02-01 20:28:07 UTC) #8
grt (UTC plus 2)
just passing through... https://codereview.chromium.org/1656453002/diff/1/chrome_elf/chrome_elf_util.cc File chrome_elf/chrome_elf_util.cc (right): https://codereview.chromium.org/1656453002/diff/1/chrome_elf/chrome_elf_util.cc#newcode243 chrome_elf/chrome_elf_util.cc:243: } On 2016/02/01 20:28:07, jschuh (very ...
4 years, 10 months ago (2016-02-01 20:43:06 UTC) #9
penny
Thanks for the comments and "drive by" reviews! A few changes uploaded. https://codereview.chromium.org/1656453002/diff/1/chrome_elf/chrome_elf_util.cc File chrome_elf/chrome_elf_util.cc ...
4 years, 10 months ago (2016-02-01 21:31:52 UTC) #10
robertshield
https://codereview.chromium.org/1656453002/diff/20001/chrome_elf/chrome_elf_util.cc File chrome_elf/chrome_elf_util.cc (right): https://codereview.chromium.org/1656453002/diff/20001/chrome_elf/chrome_elf_util.cc#newcode243 chrome_elf/chrome_elf_util.cc:243: &policy, sizeof(policy))) It would be nice to UMA this. ...
4 years, 10 months ago (2016-02-01 22:40:50 UTC) #11
grt (UTC plus 2)
https://codereview.chromium.org/1656453002/diff/1/chrome_elf/chrome_elf_util.cc File chrome_elf/chrome_elf_util.cc (right): https://codereview.chromium.org/1656453002/diff/1/chrome_elf/chrome_elf_util.cc#newcode243 chrome_elf/chrome_elf_util.cc:243: } On 2016/02/01 21:31:52, penny wrote: > On 2016/02/01 ...
4 years, 10 months ago (2016-02-02 01:12:29 UTC) #12
Will Harris
On 2016/02/02 01:12:29, grt wrote: > https://codereview.chromium.org/1656453002/diff/1/chrome_elf/chrome_elf_util.cc > File chrome_elf/chrome_elf_util.cc (right): > > https://codereview.chromium.org/1656453002/diff/1/chrome_elf/chrome_elf_util.cc#newcode243 > ...
4 years, 10 months ago (2016-02-02 01:15:16 UTC) #13
penny
I've removed the break in case of failure setting the mitigation. (This is very unexpected.) ...
4 years, 10 months ago (2016-02-02 18:43:43 UTC) #14
penny
Hi Robert, This CL (and summary) has been updated to be the fourth CL that ...
4 years, 8 months ago (2016-04-12 18:05:38 UTC) #18
robertshield
Thanks Penny, going over the list of CLs now to understand how they all fit ...
4 years, 8 months ago (2016-04-12 18:24:57 UTC) #19
robertshield
lg, some nits https://codereview.chromium.org/1656453002/diff/60001/chrome_elf/chrome_elf_util.cc File chrome_elf/chrome_elf_util.cc (right): https://codereview.chromium.org/1656453002/diff/60001/chrome_elf/chrome_elf_util.cc#newcode227 chrome_elf/chrome_elf_util.cc:227: typedef decltype(SetProcessMitigationPolicy)* SetProcessMitigationPolicyFunc; Any reason not ...
4 years, 8 months ago (2016-04-12 20:53:12 UTC) #20
penny
Thanks Robert! Fixes uploaded. It's just habit for me to put Function defs outside of ...
4 years, 8 months ago (2016-04-15 18:03:51 UTC) #21
robertshield
lgtm
4 years, 8 months ago (2016-04-18 15:01:04 UTC) #22
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/1656453002/140001
4 years, 5 months ago (2016-07-19 18:43:35 UTC) #37
commit-bot: I haz the power
Committed patchset #8 (id:140001)
4 years, 5 months ago (2016-07-19 19:15:59 UTC) #39
commit-bot: I haz the power
CQ bit was unchecked.
4 years, 5 months ago (2016-07-19 19:16:31 UTC) #40
commit-bot: I haz the power
4 years, 5 months ago (2016-07-19 19:17:53 UTC) #42
Message was sent while issue was closed.
Patchset 8 (id:??) landed as
https://crrev.com/4e0b5f2a52d54bb39d85e9f9f9ca26ce7dd27975
Cr-Commit-Position: refs/heads/master@{#406337}

Powered by Google App Engine
This is Rietveld 408576698