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

Issue 868253011: Make chrome.exe built with ASan/Win work with sandbox enabled (Closed)

Created:
5 years, 10 months ago by Timur Iskhodzhanov
Modified:
5 years, 10 months ago
CC:
chromium-reviews, darin-cc_chromium.org, jam, wfh+watch_chromium.org
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Make chrome.exe built with ASan/Win work with sandbox enabled Also add an ASan test to sbox_integration_tests on Windows BUG=382867 Committed: https://crrev.com/af81370a77349709ce37cbaec93020e88400ef7e Cr-Commit-Position: refs/heads/master@{#314780}

Patch Set 1 #

Total comments: 8

Patch Set 2 : Addressed a review comment #

Total comments: 9

Patch Set 3 : Moved the LoadLibrary calls to client code #

Total comments: 3

Patch Set 4 : compile but not run all the test w/o ASan #

Total comments: 6

Patch Set 5 : scoped stuff #

Total comments: 4

Patch Set 6 : one more EXPECT turned into ASSERT #

Total comments: 2
Unified diffs Side-by-side diffs Delta from patch set Stats (+178 lines, -24 lines) Patch
M components/nacl/loader/nacl_main_platform_delegate_win.cc View 1 2 1 chunk +7 lines, -0 lines 0 comments Download
M content/common/sandbox_init_win.cc View 1 chunk +0 lines, -5 lines 0 comments Download
M content/common/sandbox_win.cc View 1 1 chunk +13 lines, -0 lines 0 comments Download
M content/gpu/gpu_main.cc View 1 2 1 chunk +7 lines, -0 lines 0 comments Download
M content/ppapi_plugin/ppapi_thread.cc View 1 2 1 chunk +6 lines, -0 lines 0 comments Download
M content/renderer/renderer_main_platform_delegate_win.cc View 1 2 1 chunk +7 lines, -0 lines 0 comments Download
M content/utility/utility_main.cc View 1 2 1 chunk +6 lines, -0 lines 0 comments Download
M sandbox/win/BUILD.gn View 1 chunk +1 line, -0 lines 0 comments Download
M sandbox/win/sandbox_win.gypi View 1 chunk +1 line, -0 lines 0 comments Download
A sandbox/win/src/address_sanitizer_test.cc View 1 2 3 4 1 chunk +107 lines, -0 lines 1 comment Download
M sandbox/win/src/handle_inheritance_test.cc View 1 2 3 4 5 2 chunks +16 lines, -18 lines 1 comment Download
M sandbox/win/tests/common/controller.cc View 1 2 1 chunk +7 lines, -0 lines 0 comments Download
M tools/memory/asan/blacklist_win.txt View 1 chunk +0 lines, -1 line 0 comments Download

Messages

Total messages: 31 (6 generated)
Timur Iskhodzhanov
Hi Carlos, Justin, Can you please review this patch? Thanks, Timur https://codereview.chromium.org/868253011/diff/1/sandbox/win/src/handle_inheritance_test.cc File sandbox/win/src/handle_inheritance_test.cc (left): ...
5 years, 10 months ago (2015-01-30 16:05:30 UTC) #2
Will Harris
https://codereview.chromium.org/868253011/diff/1/sandbox/win/src/target_services.cc File sandbox/win/src/target_services.cc (right): https://codereview.chromium.org/868253011/diff/1/sandbox/win/src/target_services.cc#newcode80 sandbox/win/src/target_services.cc:80: // TODO: find a better place to do this? ...
5 years, 10 months ago (2015-01-30 17:49:17 UTC) #4
cpu_(ooo_6.6-7.5)
https://codereview.chromium.org/868253011/diff/1/content/common/sandbox_win.cc File content/common/sandbox_win.cc (right): https://codereview.chromium.org/868253011/diff/1/content/common/sandbox_win.cc#newcode344 content/common/sandbox_win.cc:344: wchar_t main_module_path[MAX_PATH]; use base::FILE_EXE or base::FILE_MODULE https://codereview.chromium.org/868253011/diff/1/sandbox/win/src/target_services.cc File sandbox/win/src/target_services.cc ...
5 years, 10 months ago (2015-01-30 20:28:24 UTC) #5
cpu_(ooo_6.6-7.5)
5 years, 10 months ago (2015-01-30 20:28:57 UTC) #7
Timur Iskhodzhanov
Please take another look https://codereview.chromium.org/868253011/diff/1/content/common/sandbox_win.cc File content/common/sandbox_win.cc (right): https://codereview.chromium.org/868253011/diff/1/content/common/sandbox_win.cc#newcode344 content/common/sandbox_win.cc:344: wchar_t main_module_path[MAX_PATH]; On 2015/01/30 20:28:24, ...
5 years, 10 months ago (2015-02-02 15:38:58 UTC) #8
rvargas (doing something else)
https://chromiumcodereview.appspot.com/868253011/diff/20001/sandbox/win/src/address_sanitizer_test.cc File sandbox/win/src/address_sanitizer_test.cc (right): https://chromiumcodereview.appspot.com/868253011/diff/20001/sandbox/win/src/address_sanitizer_test.cc#newcode1 sandbox/win/src/address_sanitizer_test.cc:1: // Copyright (c) 2015 The Chromium Authors. All rights ...
5 years, 10 months ago (2015-02-02 20:55:58 UTC) #9
Timur Iskhodzhanov
https://chromiumcodereview.appspot.com/868253011/diff/20001/sandbox/win/src/address_sanitizer_test.cc File sandbox/win/src/address_sanitizer_test.cc (right): https://chromiumcodereview.appspot.com/868253011/diff/20001/sandbox/win/src/address_sanitizer_test.cc#newcode43 sandbox/win/src/address_sanitizer_test.cc:43: #if defined(ADDRESS_SANITIZER) On 2015/02/02 20:55:58, rvargas (Out OO) wrote: ...
5 years, 10 months ago (2015-02-02 21:28:39 UTC) #10
cpu_(ooo_6.6-7.5)
yes the *.pdb needs to be set on client of the sandbox, the sandbox should ...
5 years, 10 months ago (2015-02-02 22:57:23 UTC) #11
rvargas (doing something else)
https://chromiumcodereview.appspot.com/868253011/diff/20001/sandbox/win/src/address_sanitizer_test.cc File sandbox/win/src/address_sanitizer_test.cc (right): https://chromiumcodereview.appspot.com/868253011/diff/20001/sandbox/win/src/address_sanitizer_test.cc#newcode43 sandbox/win/src/address_sanitizer_test.cc:43: #if defined(ADDRESS_SANITIZER) On 2015/02/02 21:28:38, Timur Iskhodzhanov wrote: > ...
5 years, 10 months ago (2015-02-03 00:42:29 UTC) #12
Timur Iskhodzhanov
Another option is to have the test return immediately if ADDRESS_SANITIZER is not defined, yet ...
5 years, 10 months ago (2015-02-03 12:26:49 UTC) #13
Timur Iskhodzhanov
OK, I've moved the LoadLibrary calls to clients. All the changes to sandbox/ are now ...
5 years, 10 months ago (2015-02-03 13:25:22 UTC) #14
rvargas (doing something else)
https://codereview.chromium.org/868253011/diff/20001/sandbox/win/src/address_sanitizer_test.cc File sandbox/win/src/address_sanitizer_test.cc (right): https://codereview.chromium.org/868253011/diff/20001/sandbox/win/src/address_sanitizer_test.cc#newcode43 sandbox/win/src/address_sanitizer_test.cc:43: #if defined(ADDRESS_SANITIZER) On 2015/02/03 13:25:22, Timur Iskhodzhanov wrote: > ...
5 years, 10 months ago (2015-02-03 19:47:11 UTC) #15
Timur Iskhodzhanov
It's there anything else left to do? To unsubscribe from this group and stop receiving ...
5 years, 10 months ago (2015-02-04 06:47:20 UTC) #16
Timur Iskhodzhanov
*is (sorry, android) ср, 4 февр. 2015, 9:47, Timur Iskhodzhanov <timurrrr@chromium.org>: > It's there anything ...
5 years, 10 months ago (2015-02-04 06:47:49 UTC) #17
Timur Iskhodzhanov
https://codereview.chromium.org/868253011/diff/60001/sandbox/win/src/address_sanitizer_test.cc File sandbox/win/src/address_sanitizer_test.cc (right): https://codereview.chromium.org/868253011/diff/60001/sandbox/win/src/address_sanitizer_test.cc#newcode50 sandbox/win/src/address_sanitizer_test.cc:50: #if defined(ADDRESS_SANITIZER) How about this? Unfortunately, I don't think ...
5 years, 10 months ago (2015-02-04 20:29:57 UTC) #18
rvargas (doing something else)
Sandbox PS4 LGTM
5 years, 10 months ago (2015-02-04 20:34:27 UTC) #19
Timur Iskhodzhanov
Carlos, Can you review the content+components part?
5 years, 10 months ago (2015-02-04 20:43:36 UTC) #20
cpu_(ooo_6.6-7.5)
lgtm w/ nit https://codereview.chromium.org/868253011/diff/60001/sandbox/win/src/address_sanitizer_test.cc File sandbox/win/src/address_sanitizer_test.cc (right): https://codereview.chromium.org/868253011/diff/60001/sandbox/win/src/address_sanitizer_test.cc#newcode39 sandbox/win/src/address_sanitizer_test.cc:39: int *blah = new int[42]; state ...
5 years, 10 months ago (2015-02-04 20:59:55 UTC) #21
Timur Iskhodzhanov
Thanks for the review! https://codereview.chromium.org/868253011/diff/60001/sandbox/win/src/address_sanitizer_test.cc File sandbox/win/src/address_sanitizer_test.cc (right): https://codereview.chromium.org/868253011/diff/60001/sandbox/win/src/address_sanitizer_test.cc#newcode39 sandbox/win/src/address_sanitizer_test.cc:39: int *blah = new int[42]; ...
5 years, 10 months ago (2015-02-05 08:15:52 UTC) #23
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/868253011/100001
5 years, 10 months ago (2015-02-05 08:17:01 UTC) #25
commit-bot: I haz the power
Committed patchset #6 (id:100001)
5 years, 10 months ago (2015-02-05 09:19:49 UTC) #26
commit-bot: I haz the power
Patchset 6 (id:??) landed as https://crrev.com/af81370a77349709ce37cbaec93020e88400ef7e Cr-Commit-Position: refs/heads/master@{#314780}
5 years, 10 months ago (2015-02-05 09:21:57 UTC) #27
Nico
https://codereview.chromium.org/868253011/diff/100001/sandbox/win/src/address_sanitizer_test.cc File sandbox/win/src/address_sanitizer_test.cc (right): https://codereview.chromium.org/868253011/diff/100001/sandbox/win/src/address_sanitizer_test.cc#newcode97 sandbox/win/src/address_sanitizer_test.cc:97: ASSERT_TRUE(strstr(data.c_str(), strrchr(__FILE__, '\\'))) This test isn't passing on the ...
5 years, 10 months ago (2015-02-09 15:17:17 UTC) #29
Timur Iskhodzhanov
That's https://code.google.com/p/chromium/issues/detail?id=418090
5 years, 10 months ago (2015-02-09 20:45:29 UTC) #30
Timur Iskhodzhanov
5 years, 10 months ago (2015-02-09 20:46:07 UTC) #31
Message was sent while issue was closed.
i.e. not a bug in the test, but rather a misconfiguration of the builder+tester
setup

Powered by Google App Engine
This is Rietveld 408576698