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

Issue 109483003: Make sure Chrome_elf.dll imports are correct and that it the first import of chrome.exe (Closed)

Created:
7 years ago by Cait (Slow)
Modified:
6 years, 11 months ago
CC:
chromium-reviews, tfarina
Visibility:
Public.

Description

1. Make sure chrome_elf.dll imports nothing besides kernel32, advapi32, and some msvc libs (DEBUG builds) 2. Add gyp action and test to ensure chrome_elf.dll is always the first entry in chrome.exe's import table. Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=242834 Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=243048 Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=245197 Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=245312

Patch Set 1 #

Total comments: 12

Patch Set 2 : Comments #

Total comments: 20

Patch Set 3 : Map file instead of using LoadLibraryEx #

Total comments: 23

Patch Set 4 : Got nits? #

Total comments: 10

Patch Set 5 : rebase on trunk #

Patch Set 6 : Roberts comments #

Patch Set 7 : Fix one include #

Patch Set 8 : #

Patch Set 9 : Use swapimports.exe for maintaining import order instead of gyp twiddling #

Total comments: 19

Patch Set 10 : Pythonization and action clean up #

Patch Set 11 : More python clean up #

Total comments: 2

Patch Set 12 : A few more nits #

Total comments: 1

Patch Set 13 : parser error nit #

Patch Set 14 : rebase on ToT #

Patch Set 15 : Disable tests on Winx64 #

Unified diffs Side-by-side diffs Delta from patch set Stats (+184 lines, -2 lines) Patch
A build/win/reorder-imports.py View 1 2 3 4 5 6 7 8 9 10 11 12 13 1 chunk +46 lines, -0 lines 0 comments Download
M chrome/chrome_exe.gypi View 1 2 3 4 5 6 7 8 9 10 11 12 13 4 chunks +37 lines, -2 lines 0 comments Download
M chrome_elf/chrome_elf.gyp View 1 2 3 4 5 6 7 8 9 10 11 12 13 1 chunk +1 line, -0 lines 0 comments Download
A chrome_elf/elf_imports_unittest.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 1 chunk +100 lines, -0 lines 0 comments Download

Messages

Total messages: 36 (0 generated)
Cait (Slow)
Here are the ChromeELF import tests, so we can at least know if we break ...
7 years ago (2013-12-09 21:35:41 UTC) #1
robertshield
Awesome, thanks for doing this :) Comments and whatnot: https://codereview.chromium.org/109483003/diff/1/chrome_elf/elf_imports_unittest.cc File chrome_elf/elf_imports_unittest.cc (right): https://codereview.chromium.org/109483003/diff/1/chrome_elf/elf_imports_unittest.cc#newcode8 chrome_elf/elf_imports_unittest.cc:8: ...
7 years ago (2013-12-09 22:23:13 UTC) #2
Cait (Slow)
Thanks! https://codereview.chromium.org/109483003/diff/1/chrome_elf/elf_imports_unittest.cc File chrome_elf/elf_imports_unittest.cc (right): https://codereview.chromium.org/109483003/diff/1/chrome_elf/elf_imports_unittest.cc#newcode8 chrome_elf/elf_imports_unittest.cc:8: #include <windows.h> On 2013/12/09 22:23:13, robertshield wrote: > ...
7 years ago (2013-12-09 23:34:54 UTC) #3
Cait (Slow)
On 2013/12/09 23:34:54, Cait Phillips wrote: > Thanks! > > https://codereview.chromium.org/109483003/diff/1/chrome_elf/elf_imports_unittest.cc > File chrome_elf/elf_imports_unittest.cc (right): ...
7 years ago (2013-12-16 23:41:48 UTC) #4
robertshield
Really nice test :) just a couple of nits: https://codereview.chromium.org/109483003/diff/20001/chrome_elf/elf_imports_unittest.cc File chrome_elf/elf_imports_unittest.cc (right): https://codereview.chromium.org/109483003/diff/20001/chrome_elf/elf_imports_unittest.cc#newcode27 chrome_elf/elf_imports_unittest.cc:27: ...
7 years ago (2013-12-17 04:02:03 UTC) #5
Sigurður Ásgeirsson
nice! https://codereview.chromium.org/109483003/diff/20001/chrome_elf/elf_imports_unittest.cc File chrome_elf/elf_imports_unittest.cc (right): https://codereview.chromium.org/109483003/diff/20001/chrome_elf/elf_imports_unittest.cc#newcode26 chrome_elf/elf_imports_unittest.cc:26: HMODULE module_handle = ::LoadLibrary(module_name); You should be able ...
7 years ago (2013-12-17 14:52:37 UTC) #6
Cait (Slow)
https://codereview.chromium.org/109483003/diff/20001/chrome_elf/elf_imports_unittest.cc File chrome_elf/elf_imports_unittest.cc (right): https://codereview.chromium.org/109483003/diff/20001/chrome_elf/elf_imports_unittest.cc#newcode26 chrome_elf/elf_imports_unittest.cc:26: HMODULE module_handle = ::LoadLibrary(module_name); On 2013/12/17 14:52:37, Sigurður Ásgeirsson ...
7 years ago (2013-12-18 20:59:02 UTC) #7
Sigurður Ásgeirsson
nice - I'm glad you found a way not to LoadLibrary the EXE :). Otherwise ...
7 years ago (2013-12-18 21:30:48 UTC) #8
Cait (Slow)
thanks! https://codereview.chromium.org/109483003/diff/40001/chrome_elf/elf_imports_unittest.cc File chrome_elf/elf_imports_unittest.cc (right): https://codereview.chromium.org/109483003/diff/40001/chrome_elf/elf_imports_unittest.cc#newcode23 chrome_elf/elf_imports_unittest.cc:23: const char* kPatterns[] = { "KERNEL32.dll", "MSVC*", "ADVAPI32.dll" ...
7 years ago (2013-12-19 19:52:00 UTC) #9
Sigurður Ásgeirsson
lgtm - thanks for your patience with my nits, and apologies for my tardiness.
7 years ago (2013-12-20 17:54:55 UTC) #10
robertshield
LGTM https://codereview.chromium.org/109483003/diff/60001/chrome_elf/elf_imports_unittest.cc File chrome_elf/elf_imports_unittest.cc (right): https://codereview.chromium.org/109483003/diff/60001/chrome_elf/elf_imports_unittest.cc#newcode54 chrome_elf/elf_imports_unittest.cc:54: PathService::Get(base::DIR_EXE, &dll); ASSERT_TRUE(PathService::Get... https://codereview.chromium.org/109483003/diff/60001/chrome_elf/elf_imports_unittest.cc#newcode61 chrome_elf/elf_imports_unittest.cc:61: std::vector<std::string>::iterator it = ...
6 years, 11 months ago (2014-01-02 19:36:58 UTC) #11
Cait (Slow)
thanks for the reviews! https://codereview.chromium.org/109483003/diff/60001/chrome_elf/elf_imports_unittest.cc File chrome_elf/elf_imports_unittest.cc (right): https://codereview.chromium.org/109483003/diff/60001/chrome_elf/elf_imports_unittest.cc#newcode54 chrome_elf/elf_imports_unittest.cc:54: PathService::Get(base::DIR_EXE, &dll); On 2014/01/02 19:36:59, ...
6 years, 11 months ago (2014-01-02 20:04:41 UTC) #12
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/caitkp@chromium.org/109483003/140001
6 years, 11 months ago (2014-01-02 20:05:24 UTC) #13
commit-bot: I haz the power
Change committed as 242834
6 years, 11 months ago (2014-01-02 23:27:27 UTC) #14
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/caitkp@chromium.org/109483003/480001
6 years, 11 months ago (2014-01-03 22:29:34 UTC) #15
commit-bot: I haz the power
Retried try job too often on win_rel for step(s) nacl_integration http://build.chromium.org/p/tryserver.chromium/buildstatus?builder=win_rel&number=241562
6 years, 11 months ago (2014-01-04 01:05:29 UTC) #16
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/caitkp@chromium.org/109483003/480001
6 years, 11 months ago (2014-01-05 21:02:50 UTC) #17
commit-bot: I haz the power
Change committed as 243048
6 years, 11 months ago (2014-01-05 23:56:39 UTC) #18
Cait (Slow)
A revert of this CL has been created in https://codereview.chromium.org/114333008/ by caitkp@chromium.org. The reason for ...
6 years, 11 months ago (2014-01-06 03:28:51 UTC) #19
Cait (Slow)
Hi all PTAL (again). No changes to the tests, just a python script to wrap ...
6 years, 11 months ago (2014-01-09 20:44:30 UTC) #20
robertshield
+CC csharp for his snake-charming abilities https://codereview.chromium.org/109483003/diff/820001/chrome/chrome_exe.gypi File chrome/chrome_exe.gypi (right): https://codereview.chromium.org/109483003/diff/820001/chrome/chrome_exe.gypi#newcode8 chrome/chrome_exe.gypi:8: 'target_name': 'chrome', This ...
6 years, 11 months ago (2014-01-09 20:55:55 UTC) #21
csharp
https://codereview.chromium.org/109483003/diff/820001/build/win/reorder-imports.py File build/win/reorder-imports.py (right): https://codereview.chromium.org/109483003/diff/820001/build/win/reorder-imports.py#newcode6 build/win/reorder-imports.py:6: import shutil alphabetize imports https://codereview.chromium.org/109483003/diff/820001/build/win/reorder-imports.py#newcode16 build/win/reorder-imports.py:16: (pdbs, manifests etc.).""" ...
6 years, 11 months ago (2014-01-09 21:07:53 UTC) #22
Cait (Slow)
https://codereview.chromium.org/109483003/diff/820001/build/win/reorder-imports.py File build/win/reorder-imports.py (right): https://codereview.chromium.org/109483003/diff/820001/build/win/reorder-imports.py#newcode6 build/win/reorder-imports.py:6: import shutil On 2014/01/09 21:07:54, csharp wrote: > alphabetize ...
6 years, 11 months ago (2014-01-10 22:00:54 UTC) #23
robertshield
lgtm https://codereview.chromium.org/109483003/diff/820001/chrome/chrome_exe.gypi File chrome/chrome_exe.gypi (right): https://codereview.chromium.org/109483003/diff/820001/chrome/chrome_exe.gypi#newcode40 chrome/chrome_exe.gypi:40: 'product_name': 'chrome', On 2014/01/10 22:00:54, Cait Phillips wrote: ...
6 years, 11 months ago (2014-01-11 02:16:06 UTC) #24
Cait (Slow)
ping: csharp -- thanks!
6 years, 11 months ago (2014-01-13 15:58:46 UTC) #25
csharp
LGTM with a small nit https://codereview.chromium.org/109483003/diff/1000001/build/win/reorder-imports.py File build/win/reorder-imports.py (right): https://codereview.chromium.org/109483003/diff/1000001/build/win/reorder-imports.py#newcode42 build/win/reorder-imports.py:42: print 'Please provide and ...
6 years, 11 months ago (2014-01-13 16:13:25 UTC) #26
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/caitkp@chromium.org/109483003/1070001
6 years, 11 months ago (2014-01-15 16:29:28 UTC) #27
commit-bot: I haz the power
Retried try job too often on win_rel for step(s) app_list_unittests, ash_unittests, aura_unittests, base_unittests, base_unittests_swarm, browser_tests, ...
6 years, 11 months ago (2014-01-15 21:44:31 UTC) #28
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/caitkp@chromium.org/109483003/1070001
6 years, 11 months ago (2014-01-16 02:07:34 UTC) #29
commit-bot: I haz the power
Retried try job too often on win_rel for step(s) base_unittests http://build.chromium.org/p/tryserver.chromium/buildstatus?builder=win_rel&number=247183
6 years, 11 months ago (2014-01-16 07:26:24 UTC) #30
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/caitkp@chromium.org/109483003/1070001
6 years, 11 months ago (2014-01-16 11:26:09 UTC) #31
commit-bot: I haz the power
Change committed as 245197
6 years, 11 months ago (2014-01-16 15:46:35 UTC) #32
Cait (Slow)
A revert of this CL has been created in https://codereview.chromium.org/132613004/ by caitkp@chromium.org. The reason for ...
6 years, 11 months ago (2014-01-16 17:00:39 UTC) #33
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/caitkp@chromium.org/109483003/1510001
6 years, 11 months ago (2014-01-16 18:07:44 UTC) #34
commit-bot: I haz the power
Change committed as 245312
6 years, 11 months ago (2014-01-16 20:58:28 UTC) #35
cpu_(ooo_6.6-7.5)
6 years, 11 months ago (2014-01-18 00:30:05 UTC) #36
Message was sent while issue was closed.
I see

[0117/160039:INFO:swapimport_app.cc(201)] Writing output to
"..\out\Debug\chrome.exe".
[0117/160039:INFO:swapimport_app.cc(216)] Updating output image checksum.

Is the pdb for chrome.exe loadable ? in other words, will this confuse crash
tools?

Powered by Google App Engine
This is Rietveld 408576698