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

Issue 107663008: Chrome browser process DLL blacklist. (Closed)

Created:
7 years ago by robertshield
Modified:
7 years ago
CC:
chromium-reviews, Sigurður Ásgeirsson, grt (UTC plus 2)
Visibility:
Public.

Description

Chrome browser process DLL blacklist. This patch allows for blocking of module loading in the browser process. It does not actually prevent any modules from loading. BUG=329023 TEST=chrome_elf_unittests Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=241548

Patch Set 1 #

Patch Set 2 : Merge unit tests into chrome_elf_unittests.exe. #

Total comments: 8

Patch Set 3 : Greg's feedback. #

Total comments: 34

Patch Set 4 : Ricardo's feedback. #

Total comments: 6

Patch Set 5 : Ricardo's feedback. #

Patch Set 6 : Fix 64-bit compilation error due to writeable, executable section. #

Patch Set 7 : Fix 64-bit tests, static build, address Siggi's nit. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+855 lines, -64 lines) Patch
M chrome/app/chrome_exe_main_win.cc View 1 chunk +2 lines, -3 lines 0 comments Download
M chrome/chrome_exe.gypi View 2 chunks +2 lines, -1 line 0 comments Download
M chrome_elf/DEPS View 1 chunk +1 line, -0 lines 0 comments Download
A chrome_elf/blacklist.gypi View 1 2 1 chunk +60 lines, -0 lines 0 comments Download
A chrome_elf/blacklist/blacklist.h View 1 2 3 1 chunk +52 lines, -0 lines 0 comments Download
A chrome_elf/blacklist/blacklist.cc View 1 2 3 4 5 1 chunk +274 lines, -0 lines 0 comments Download
A chrome_elf/blacklist/blacklist_interceptions.h View 1 2 3 1 chunk +33 lines, -0 lines 0 comments Download
A chrome_elf/blacklist/blacklist_interceptions.cc View 1 2 3 4 5 6 1 chunk +227 lines, -0 lines 0 comments Download
A chrome_elf/blacklist/test/blacklist_test.cc View 1 2 3 4 5 6 1 chunk +127 lines, -0 lines 0 comments Download
A + chrome_elf/blacklist/test/blacklist_test_dll_1.cc View 1 chunk +3 lines, -7 lines 0 comments Download
A + chrome_elf/blacklist/test/blacklist_test_dll_1.def View 1 chunk +1 line, -4 lines 0 comments Download
A + chrome_elf/blacklist/test/blacklist_test_dll_2.cc View 1 chunk +7 lines, -8 lines 0 comments Download
A + chrome_elf/blacklist/test/blacklist_test_dll_2.def View 1 chunk +2 lines, -2 lines 0 comments Download
A + chrome_elf/blacklist/test/blacklist_test_dll_3.cc View 1 chunk +4 lines, -10 lines 0 comments Download
A chrome_elf/blacklist/test/blacklist_test_dll_3.lib View 1 chunk +1 line, -0 lines 0 comments Download
A + chrome_elf/blacklist/test/blacklist_test_main.cc View 1 chunk +7 lines, -9 lines 0 comments Download
A chrome_elf/blacklist/test/blacklist_test_main_dll.h View 1 chunk +10 lines, -0 lines 0 comments Download
A + chrome_elf/blacklist/test/blacklist_test_main_dll.cc View 1 chunk +6 lines, -9 lines 0 comments Download
A + chrome_elf/blacklist/test/blacklist_test_main_dll.def View 1 chunk +4 lines, -2 lines 0 comments Download
M chrome_elf/chrome_elf.def View 1 chunk +1 line, -1 line 0 comments Download
M chrome_elf/chrome_elf.gyp View 1 2 3 4 5 6 5 chunks +19 lines, -2 lines 0 comments Download
M chrome_elf/chrome_elf_main.h View 1 chunk +1 line, -1 line 0 comments Download
M chrome_elf/chrome_elf_main.cc View 1 chunk +10 lines, -4 lines 0 comments Download
M chrome_elf/version_assembly_manifest_action.gypi View 1 chunk +1 line, -1 line 0 comments Download

Messages

Total messages: 17 (0 generated)
robertshield
PTAL, thanks!
7 years ago (2013-12-16 23:02:46 UTC) #1
grt (UTC plus 2)
https://codereview.chromium.org/107663008/diff/20001/chrome_elf/blacklist.gypi File chrome_elf/blacklist.gypi (right): https://codereview.chromium.org/107663008/diff/20001/chrome_elf/blacklist.gypi#newcode12 chrome_elf/blacklist.gypi:12: 'blacklist/blacklist_interceptions.cc', this appears to depend on stuff in base. ...
7 years ago (2013-12-16 23:33:49 UTC) #2
robertshield
Thanks, PTAL https://codereview.chromium.org/107663008/diff/20001/chrome_elf/blacklist.gypi File chrome_elf/blacklist.gypi (right): https://codereview.chromium.org/107663008/diff/20001/chrome_elf/blacklist.gypi#newcode12 chrome_elf/blacklist.gypi:12: 'blacklist/blacklist_interceptions.cc', On 2013/12/16 23:33:49, grt wrote: > ...
7 years ago (2013-12-17 03:43:03 UTC) #3
grt (UTC plus 2)
lgtm
7 years ago (2013-12-17 04:28:01 UTC) #4
Sigurður Ásgeirsson
lgtm with a couple of nits - it'd be great to have test coverage for ...
7 years ago (2013-12-17 14:31:00 UTC) #5
robertshield
https://codereview.chromium.org/107663008/diff/40001/chrome/chrome_exe.gypi File chrome/chrome_exe.gypi (right): https://codereview.chromium.org/107663008/diff/40001/chrome/chrome_exe.gypi#newcode469 chrome/chrome_exe.gypi:469: '../chrome_elf/chrome_elf.gyp:chrome_elf', On 2013/12/17 14:31:01, Sigurður Ásgeirsson wrote: > The ...
7 years ago (2013-12-17 14:34:10 UTC) #6
cpu_(ooo_6.6-7.5)
lgtm
7 years ago (2013-12-17 20:18:22 UTC) #7
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/robertshield@chromium.org/107663008/40001
7 years ago (2013-12-17 20:43:41 UTC) #8
rvargas (doing something else)
Sorry for the delay. https://codereview.chromium.org/107663008/diff/40001/chrome_elf/blacklist/blacklist.cc File chrome_elf/blacklist/blacklist.cc (right): https://codereview.chromium.org/107663008/diff/40001/chrome_elf/blacklist/blacklist.cc#newcode42 chrome_elf/blacklist/blacklist.cc:42: VERSION_WIN8_1, // Code named Windows ...
7 years ago (2013-12-17 22:09:27 UTC) #9
commit-bot: I haz the power
Retried try job too often on win_x64_rel for step(s) base_unittests http://build.chromium.org/p/tryserver.chromium/buildstatus?builder=win_x64_rel&number=62830
7 years ago (2013-12-17 22:25:21 UTC) #10
robertshield
Thanks Ricardo, PTAL https://codereview.chromium.org/107663008/diff/40001/chrome_elf/blacklist/blacklist.cc File chrome_elf/blacklist/blacklist.cc (right): https://codereview.chromium.org/107663008/diff/40001/chrome_elf/blacklist/blacklist.cc#newcode42 chrome_elf/blacklist/blacklist.cc:42: VERSION_WIN8_1, // Code named Windows Blue ...
7 years ago (2013-12-18 02:34:43 UTC) #11
rvargas (doing something else)
lgtm https://codereview.chromium.org/107663008/diff/60001/chrome_elf/blacklist/blacklist_interceptions.cc File chrome_elf/blacklist/blacklist_interceptions.cc (right): https://codereview.chromium.org/107663008/diff/60001/chrome_elf/blacklist/blacklist_interceptions.cc#newcode50 chrome_elf/blacklist/blacklist_interceptions.cc:50: if (!g_nt_query_virtual_memory_func) should never happen https://codereview.chromium.org/107663008/diff/60001/chrome_elf/blacklist/blacklist_interceptions.cc#newcode95 chrome_elf/blacklist/blacklist_interceptions.cc:95: if ...
7 years ago (2013-12-18 03:19:26 UTC) #12
robertshield
Thanks! https://codereview.chromium.org/107663008/diff/60001/chrome_elf/blacklist/blacklist_interceptions.cc File chrome_elf/blacklist/blacklist_interceptions.cc (right): https://codereview.chromium.org/107663008/diff/60001/chrome_elf/blacklist/blacklist_interceptions.cc#newcode50 chrome_elf/blacklist/blacklist_interceptions.cc:50: if (!g_nt_query_virtual_memory_func) On 2013/12/18 03:19:27, rvargas wrote: > ...
7 years ago (2013-12-18 04:51:16 UTC) #13
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/robertshield@chromium.org/107663008/100001
7 years ago (2013-12-18 04:58:45 UTC) #14
commit-bot: I haz the power
Change committed as 241548
7 years ago (2013-12-18 12:37:09 UTC) #15
Sigurður Ásgeirsson
Post-hoc nit. Maybe const-cleanse when you touch this next? https://codereview.chromium.org/107663008/diff/40001/chrome_elf/blacklist/blacklist_interceptions.cc File chrome_elf/blacklist/blacklist_interceptions.cc (right): https://codereview.chromium.org/107663008/diff/40001/chrome_elf/blacklist/blacklist_interceptions.cc#newcode134 chrome_elf/blacklist/blacklist_interceptions.cc:134: ...
7 years ago (2013-12-18 14:16:00 UTC) #16
robertshield
7 years ago (2013-12-18 17:01:35 UTC) #17
Message was sent while issue was closed.
Done.

https://codereview.chromium.org/107663008/diff/40001/chrome_elf/blacklist/bla...
File chrome_elf/blacklist/blacklist_interceptions.cc (right):

https://codereview.chromium.org/107663008/diff/40001/chrome_elf/blacklist/bla...
chrome_elf/blacklist/blacklist_interceptions.cc:134: char* image_name =
reinterpret_cast<char*>(pe.RVAToAddr(exports->Name));
On 2013/12/18 14:16:01, Sigurður Ásgeirsson wrote:
> nit: while you're in there, perhaps const char*

Done.

Powered by Google App Engine
This is Rietveld 408576698