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

Issue 1540723002: Allow IAT patches to fail when patching for Active Verifier. (Closed)

Created:
5 years ago by Will Harris
Modified:
5 years ago
Reviewers:
cpu_(ooo_6.6-7.5)
CC:
chromium-reviews, 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

Allow IAT patches to fail when patching for Active Verifier. Not all loaded modules import CloseHandle and DuplicateHandle so InstallHandleHooks was failing incorrectly and causing the Handle Verifier to be disabled. Also, continue to patch DuplicateHandle if a module happens to not import CloseHandle. BUG=570912 Committed: https://crrev.com/c844be97c13fcf492149a21a0f3d9bf083c3c0d2 Cr-Commit-Position: refs/heads/master@{#366322}

Patch Set 1 #

Patch Set 2 : cleanup, add test #

Total comments: 2

Patch Set 3 : code review change #

Unified diffs Side-by-side diffs Delta from patch set Stats (+9 lines, -13 lines) Patch
M base/debug/close_handle_hook_win.cc View 1 2 2 chunks +8 lines, -12 lines 0 comments Download
M base/test/run_all_unittests.cc View 1 1 chunk +1 line, -1 line 0 comments Download

Messages

Total messages: 13 (6 generated)
Will Harris
PTAL as this is a major crasher right now (98% of browser crashes).
5 years ago (2015-12-20 01:55:43 UTC) #3
cpu_(ooo_6.6-7.5)
lgtm https://codereview.chromium.org/1540723002/diff/20001/base/debug/close_handle_hook_win.cc File base/debug/close_handle_hook_win.cc (right): https://codereview.chromium.org/1540723002/diff/20001/base/debug/close_handle_hook_win.cc#newcode252 base/debug/close_handle_hook_win.cc:252: if (!hooks->AddIATPatch(modules[current])) add brackets, looks strange as is.
5 years ago (2015-12-21 00:34:41 UTC) #4
Will Harris
thanks for review. https://codereview.chromium.org/1540723002/diff/20001/base/debug/close_handle_hook_win.cc File base/debug/close_handle_hook_win.cc (right): https://codereview.chromium.org/1540723002/diff/20001/base/debug/close_handle_hook_win.cc#newcode252 base/debug/close_handle_hook_win.cc:252: if (!hooks->AddIATPatch(modules[current])) On 2015/12/21 00:34:41, cpu_slow_until_jan4 ...
5 years ago (2015-12-21 01:25:25 UTC) #5
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1540723002/40001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1540723002/40001
5 years ago (2015-12-21 01:25:43 UTC) #8
commit-bot: I haz the power
Committed patchset #3 (id:40001)
5 years ago (2015-12-21 02:34:48 UTC) #10
commit-bot: I haz the power
Patchset 3 (id:??) landed as https://crrev.com/c844be97c13fcf492149a21a0f3d9bf083c3c0d2 Cr-Commit-Position: refs/heads/master@{#366322}
5 years ago (2015-12-21 02:35:18 UTC) #12
Finnur
5 years ago (2015-12-21 10:21:08 UTC) #13
Message was sent while issue was closed.
A revert of this CL (patchset #3 id:40001) has been created in
https://codereview.chromium.org/1542553002/ by finnur@chromium.org.

The reason for reverting is: Seems to consistently cause Win7 tests to fail.

Example log:
https://build.chromium.org/p/chromium.win/builders/Win7%20Tests%20%28dbg%29%2....

Powered by Google App Engine
This is Rietveld 408576698