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

Issue 2412983006: [Windows MSVC CFG] Add support for CFG, and enable on chrome.exe & chrome_elf.dll. (Closed)

Created:
4 years, 2 months ago by penny
Modified:
4 years, 2 months ago
Reviewers:
Lei Zhang, scottmg
CC:
chromium-reviews, pennymac+watch_chromium.org, caitkp+watch_chromium.org
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

[Windows MSVC CFG] Add support for CFG, and enable on chrome.exe & chrome_elf.dll. CFG supported on x86 and x64 >= Windows 8.1 Update (KB3000850). Initial support for Control Flow Guard. "Enable" on chrome.exe to take advantage of MS system32 dll CFG. Also compile and link chrome_elf with CFG. NOTE: As ASLR is disabled in debug builds, so too is CFG. Using the dumpbin tool from the Visual Studio command prompt, run "dumpbin /headers /loadconfig" against chrome.exe or chrome_elf.dll. 1) "DLL characteristics" now includes "Control Flow Guard", and 2) if code was compiled with cfg there will be "load config" for "Guard CF" function table and flags. BUG=584575 CQ_INCLUDE_TRYBOTS=master.tryserver.chromium.win:win10_chromium_x64_rel_ng Committed: https://crrev.com/d46842301ebc1f41a92448026bf95e3194538213 Cr-Commit-Position: refs/heads/master@{#425226}

Patch Set 1 #

Total comments: 6

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

Total comments: 4

Patch Set 3 : Code review nit fixes. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+17 lines, -0 lines) Patch
M build/config/win/BUILD.gn View 1 2 1 chunk +11 lines, -0 lines 0 comments Download
M chrome/BUILD.gn View 1 chunk +3 lines, -0 lines 0 comments Download
M chrome_elf/BUILD.gn View 1 chunk +3 lines, -0 lines 0 comments Download

Messages

Total messages: 21 (11 generated)
penny
Hello Scott, Lei, This is a first pass at adding CFG support to the Windows ...
4 years, 2 months ago (2016-10-13 21:26:24 UTC) #8
scottmg
Do you have a measurement of how this affects binary size and/or performance? https://codereview.chromium.org/2412983006/diff/1/build/config/win/BUILD.gn File ...
4 years, 2 months ago (2016-10-13 21:38:12 UTC) #9
scottmg
https://codereview.chromium.org/2412983006/diff/1/build/config/win/BUILD.gn File build/config/win/BUILD.gn (right): https://codereview.chromium.org/2412983006/diff/1/build/config/win/BUILD.gn#newcode267 build/config/win/BUILD.gn:267: config("win_msvc_cfg") { Also a brief comment here with an ...
4 years, 2 months ago (2016-10-13 21:40:06 UTC) #10
penny
Thanks Scott. For this CL, there's very little impact. Nothing changes in chrome.exe, except we ...
4 years, 2 months ago (2016-10-13 22:08:30 UTC) #11
scottmg
OK, lgtm. We should make sure to get performance data before turning it on for ...
4 years, 2 months ago (2016-10-13 22:21:58 UTC) #12
Lei Zhang
rs lgtm
4 years, 2 months ago (2016-10-13 22:28:16 UTC) #13
penny
That's 100% part of the plan. Thanks both! https://codereview.chromium.org/2412983006/diff/20001/build/config/win/BUILD.gn File build/config/win/BUILD.gn (right): https://codereview.chromium.org/2412983006/diff/20001/build/config/win/BUILD.gn#newcode268 build/config/win/BUILD.gn:268: # ...
4 years, 2 months ago (2016-10-13 23:10:22 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/2412983006/40001
4 years, 2 months ago (2016-10-13 23:11:09 UTC) #17
commit-bot: I haz the power
Committed patchset #3 (id:40001)
4 years, 2 months ago (2016-10-14 01:15:00 UTC) #19
commit-bot: I haz the power
4 years, 2 months ago (2016-10-14 01:17:07 UTC) #21
Message was sent while issue was closed.
Patchset 3 (id:??) landed as
https://crrev.com/d46842301ebc1f41a92448026bf95e3194538213
Cr-Commit-Position: refs/heads/master@{#425226}

Powered by Google App Engine
This is Rietveld 408576698