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

Issue 510633002: Improve the ScopedHandle verifier. (Closed)

Created:
6 years, 3 months ago by rvargas (doing something else)
Modified:
6 years, 3 months ago
Reviewers:
cpu_(ooo_6.6-7.5), sky
CC:
chromium-reviews, wfh+watch_chromium.org, erikwright+watch_chromium.org
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Project:
chromium
Visibility:
Public.

Description

Improve the ScopedHandle verifier. 1. Automate the selection of the proper channel to enable the verifier. Now the code is enabled at runtime. 2. Switch to a hash_map to track handles. 3. Intercept CloseHandle to detect the code that is closing handles owned by ScopedHandles. The initial implementation only covers chrome.exe/dll, but the plan is to extend that in the future to all modules loaded in the process. BUG=362176 See https://codereview.chromium.org/490043002/ for the initial review. Committed: https://crrev.com/86d7c90f6a309ecf7b499e8c2c30490d6e1f03ba Cr-Commit-Position: refs/heads/master@{#293365}

Patch Set 1 #

Patch Set 2 : Move initialization down the line #

Patch Set 3 : Fix tests targets #

Patch Set 4 : Fix map #

Total comments: 1

Patch Set 5 : Add comment to the lock #

Total comments: 2
Unified diffs Side-by-side diffs Delta from patch set Stats (+261 lines, -31 lines) Patch
M base/win/scoped_handle.h View 1 3 chunks +13 lines, -6 lines 0 comments Download
M base/win/scoped_handle.cc View 1 2 3 4 4 chunks +88 lines, -7 lines 0 comments Download
M chrome/BUILD.gn View 1 chunk +2 lines, -0 lines 0 comments Download
M chrome/app/chrome_main_delegate.cc View 1 2 3 4 3 chunks +7 lines, -0 lines 0 comments Download
A chrome/app/close_handle_hook_win.h View 1 chunk +14 lines, -0 lines 0 comments Download
A chrome/app/close_handle_hook_win.cc View 1 1 chunk +118 lines, -0 lines 0 comments Download
M chrome/chrome_dll.gypi View 1 2 3 4 4 chunks +17 lines, -18 lines 2 comments Download
M chrome/chrome_tests_unit.gypi View 1 2 3 4 1 chunk +2 lines, -0 lines 0 comments Download

Messages

Total messages: 12 (3 generated)
rvargas (doing something else)
PTAL. Patch set 1 was commited/reverted.
6 years, 3 months ago (2014-09-02 22:10:50 UTC) #2
cpu_(ooo_6.6-7.5)
lgtm https://codereview.chromium.org/510633002/diff/60001/base/win/scoped_handle.cc File base/win/scoped_handle.cc (right): https://codereview.chromium.org/510633002/diff/60001/base/win/scoped_handle.cc#newcode122 base/win/scoped_handle.cc:122: g_verifier_enabled = false; a note above 121 as ...
6 years, 3 months ago (2014-09-03 22:10:14 UTC) #3
rvargas (doing something else)
Thanks. sky, do you mind taking a look again at the build files? Patch set ...
6 years, 3 months ago (2014-09-04 01:00:14 UTC) #5
sky
https://codereview.chromium.org/510633002/diff/80001/chrome/chrome_dll.gypi File chrome/chrome_dll.gypi (right): https://codereview.chromium.org/510633002/diff/80001/chrome/chrome_dll.gypi#newcode307 chrome/chrome_dll.gypi:307: '../components/components.gyp:crash_component', What are you doing this change?
6 years, 3 months ago (2014-09-04 02:49:59 UTC) #6
rvargas (doing something else)
Thanks https://codereview.chromium.org/510633002/diff/80001/chrome/chrome_dll.gypi File chrome/chrome_dll.gypi (right): https://codereview.chromium.org/510633002/diff/80001/chrome/chrome_dll.gypi#newcode307 chrome/chrome_dll.gypi:307: '../components/components.gyp:crash_component', On 2014/09/04 02:49:58, sky wrote: > What ...
6 years, 3 months ago (2014-09-04 03:12:27 UTC) #7
sky
Ah, you had a merge in there. ok, LGTM
6 years, 3 months ago (2014-09-04 13:23:46 UTC) #8
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/rvargas@chromium.org/510633002/80001
6 years, 3 months ago (2014-09-04 17:50:12 UTC) #10
commit-bot: I haz the power
Committed patchset #5 (id:80001) as 16a1887895873970cd427eb76e4e76d9695ad031
6 years, 3 months ago (2014-09-04 22:59:24 UTC) #11
commit-bot: I haz the power
6 years, 3 months ago (2014-09-10 03:33:37 UTC) #12
Message was sent while issue was closed.
Patchset 5 (id:??) landed as
https://crrev.com/86d7c90f6a309ecf7b499e8c2c30490d6e1f03ba
Cr-Commit-Position: refs/heads/master@{#293365}

Powered by Google App Engine
This is Rietveld 408576698