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

Issue 757001: Second round of sbox changes for 64 bit port... (Closed)

Created:
10 years, 9 months ago by cpu_(ooo_6.6-7.5)
Modified:
9 years, 7 months ago
CC:
chromium-reviews, Paweł Hajdan Jr.
Visibility:
Public.

Description

Secound round of sbox changes for 64 bit port - Handling pointer sized items - Beefing up unit tests - Beefing up integration tests - Enabling Process, Thread and Token IPCs - Making validation tests compile again BUG=27218 TEST= unit tests included Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=41481

Patch Set 1 #

Total comments: 23

Patch Set 2 : '' #

Total comments: 23

Patch Set 3 : '' #

Patch Set 4 : '' #

Total comments: 13

Patch Set 5 : '' #

Unified diffs Side-by-side diffs Delta from patch set Stats (+340 lines, -155 lines) Patch
M sandbox/sandbox.gyp View 2 chunks +4 lines, -4 lines 0 comments Download
M sandbox/src/crosscall_client.h View 1 2 chunks +41 lines, -3 lines 0 comments Download
M sandbox/src/crosscall_server.h View 1 2 3 3 chunks +7 lines, -2 lines 0 comments Download
M sandbox/src/crosscall_server.cc View 1 2 3 3 chunks +13 lines, -2 lines 0 comments Download
M sandbox/src/interceptors_64.cc View 1 2 2 chunks +2 lines, -4 lines 0 comments Download
M sandbox/src/ipc_unittest.cc View 1 2 3 4 9 chunks +207 lines, -75 lines 0 comments Download
M sandbox/src/policy_broker.cc View 3 2 chunks +0 lines, -5 lines 0 comments Download
M sandbox/src/policy_target_test.cc View 1 2 3 3 chunks +6 lines, -6 lines 0 comments Download
M sandbox/src/process_thread_dispatcher.h View 3 3 chunks +6 lines, -6 lines 0 comments Download
M sandbox/src/process_thread_dispatcher.cc View 3 chunks +4 lines, -4 lines 0 comments Download
M sandbox/src/process_thread_policy.h View 3 4 4 chunks +10 lines, -10 lines 0 comments Download
M sandbox/src/process_thread_policy.cc View 3 4 6 chunks +7 lines, -14 lines 0 comments Download
M sandbox/src/sandbox_policy_base.cc View 3 chunks +10 lines, -7 lines 0 comments Download
M sandbox/src/sharedmem_ipc_server.h View 1 2 3 4 chunks +7 lines, -4 lines 0 comments Download
M sandbox/src/sharedmem_ipc_server.cc View 2 chunks +10 lines, -1 line 0 comments Download
M sandbox/tests/validation_tests/commands.cc View 3 3 chunks +3 lines, -5 lines 0 comments Download
M sandbox/tests/validation_tests/suite.cc View 3 3 chunks +3 lines, -3 lines 0 comments Download

Messages

Total messages: 16 (0 generated)
cpu_(ooo_6.6-7.5)
I am not done with this CL but I want your early feedback, specially the ...
10 years, 9 months ago (2010-03-09 22:43:33 UTC) #1
rvargas (doing something else)
seems fine. http://codereview.chromium.org/757001/diff/1/9 File sandbox/src/crosscall_client.h (right): http://codereview.chromium.org/757001/diff/1/9#newcode5 sandbox/src/crosscall_client.h:5: #ifndef SANDBOX_SRC_CROSSCALL_CLIENT_H__ nit: update (and year) http://codereview.chromium.org/757001/diff/1/9#newcode96 ...
10 years, 9 months ago (2010-03-10 01:04:06 UTC) #2
Nicolas Sylvain
http://codereview.chromium.org/757001/diff/1/9 File sandbox/src/crosscall_client.h (right): http://codereview.chromium.org/757001/diff/1/9#newcode103 sandbox/src/crosscall_client.h:103: return true; return false? http://codereview.chromium.org/757001/diff/1/9#newcode108 sandbox/src/crosscall_client.h:108: return sizeof(void*); why ...
10 years, 9 months ago (2010-03-10 01:13:26 UTC) #3
rvargas (doing something else)
http://codereview.chromium.org/757001/diff/1/5 File sandbox/src/ipc_unittest.cc (right): http://codereview.chromium.org/757001/diff/1/5#newcode555 sandbox/src/ipc_unittest.cc:555: virtual bool SetupService(InterceptionManager* manager, int service) { On 2010/03/10 ...
10 years, 9 months ago (2010-03-10 01:20:42 UTC) #4
Nicolas Sylvain
On Tue, Mar 9, 2010 at 5:20 PM, <rvargas@chromium.org> wrote: > > http://codereview.chromium.org/757001/diff/1/5 > File ...
10 years, 9 months ago (2010-03-10 01:38:51 UTC) #5
rvargas (doing something else)
> should we use the UNUSED_PARAM_THINGY ? Does that even compile in release? > We ...
10 years, 9 months ago (2010-03-10 01:52:50 UTC) #6
cpu_(ooo_6.6-7.5)
Uploaded new version, I think I addressed all comments. http://codereview.chromium.org/757001/diff/1/9 File sandbox/src/crosscall_client.h (right): http://codereview.chromium.org/757001/diff/1/9#newcode5 sandbox/src/crosscall_client.h:5: ...
10 years, 9 months ago (2010-03-10 05:46:47 UTC) #7
Nicolas Sylvain
LGTM
10 years, 9 months ago (2010-03-10 18:19:20 UTC) #8
rvargas (doing something else)
http://codereview.chromium.org/757001/diff/1/9 File sandbox/src/crosscall_client.h (right): http://codereview.chromium.org/757001/diff/1/9#newcode5 sandbox/src/crosscall_client.h:5: #ifndef SANDBOX_SRC_CROSSCALL_CLIENT_H__ On 2010/03/10 05:46:47, cpu wrote: > On ...
10 years, 9 months ago (2010-03-10 19:48:52 UTC) #9
rvargas (doing something else)
I'm convinced then. http://codereview.chromium.org/757001/diff/1/5 File sandbox/src/ipc_unittest.cc (right): http://codereview.chromium.org/757001/diff/1/5#newcode24 sandbox/src/ipc_unittest.cc:24: What do you have against empty ...
10 years, 9 months ago (2010-03-11 20:53:35 UTC) #10
cpu_(ooo_6.6-7.5)
Ok folks this is it. CL ready for review. Some things to note: The code ...
10 years, 9 months ago (2010-03-12 00:17:39 UTC) #11
Nicolas Sylvain
http://codereview.chromium.org/757001/diff/47001/48004 File sandbox/src/ipc_unittest.cc (right): http://codereview.chromium.org/757001/diff/47001/48004#newcode376 sandbox/src/ipc_unittest.cc:376: IPCControl* client_control = MakeChannels(channel_size, 4096 * 2, &base_start); 80 ...
10 years, 9 months ago (2010-03-12 00:49:07 UTC) #12
rvargas (doing something else)
http://codereview.chromium.org/757001/diff/16001/17004 File sandbox/src/ipc_unittest.cc (right): http://codereview.chromium.org/757001/diff/16001/17004#newcode257 sandbox/src/ipc_unittest.cc:257: EXPECT_EQ(0, memcmp(&dw, param_addr, param_size)); On 2010/03/12 00:17:39, cpu wrote: ...
10 years, 9 months ago (2010-03-12 01:06:48 UTC) #13
cpu_(ooo_6.6-7.5)
new version, addressing the comments, please look again. http://codereview.chromium.org/757001/diff/16001/17004 File sandbox/src/ipc_unittest.cc (right): http://codereview.chromium.org/757001/diff/16001/17004#newcode257 sandbox/src/ipc_unittest.cc:257: EXPECT_EQ(0, ...
10 years, 9 months ago (2010-03-12 02:35:53 UTC) #14
rvargas (doing something else)
LGTM
10 years, 9 months ago (2010-03-12 02:47:27 UTC) #15
Nicolas Sylvain
10 years, 9 months ago (2010-03-12 21:38:50 UTC) #16
On Thu, Mar 11, 2010 at 6:35 PM, <cpu@chromium.org> wrote:

> new version, addressing the comments, please look again.
>
>
>
>
>
> http://codereview.chromium.org/757001/diff/16001/17004
> File sandbox/src/ipc_unittest.cc (right):
>
> http://codereview.chromium.org/757001/diff/16001/17004#newcode257
> sandbox/src/ipc_unittest.cc:257: EXPECT_EQ(0, memcmp(&dw, param_addr,
> param_size));
> On 2010/03/12 01:06:48, rvargas wrote:
>
>> On 2010/03/12 00:17:39, cpu wrote:
>> > On 2010/03/11 20:53:35, rvargas wrote:
>> > > nit: sizeof(dw) instead of param_size (or assert param_size)
>> >
>> > There are asserts of size like in lines 254 or 267, 279
>>
>
>  Those are not asserts. If they fail, you'll keep on going and this
>>
> line may
>
>> crash the test.
>>
>
>
>
> Done.
>
> http://codereview.chromium.org/757001/diff/47001/48004#newcode376
> sandbox/src/ipc_unittest.cc:376: const size_t channel_size =
> kIPCChannelSize;
> On 2010/03/12 00:49:07, Nicolas Sylvain wrote:
>
>> 80 chars
>>
>
> Done.
>
>
> http://codereview.chromium.org/757001/diff/47001/48012
> File sandbox/src/process_thread_policy.cc (right):
>
> http://codereview.chromium.org/757001/diff/47001/48012#newcode196
> sandbox/src/process_thread_policy.cc:196: HANDLE *handle) {
> On 2010/03/12 01:06:48, rvargas wrote:
>
>> and in this file.
>>
>
> Done.
>
>
> http://codereview.chromium.org/757001/diff/47001/48016
> File sandbox/src/process_thread_policy.h (right):
>
> http://codereview.chromium.org/757001/diff/47001/48016#newcode65
> sandbox/src/process_thread_policy.h:65: HANDLE *handle);
> On 2010/03/12 01:06:48, rvargas wrote:
>
>> nit: Do you mind fixing this in this file :)
>>
>
> Done.
>
>
> http://codereview.chromium.org/757001/diff/47001/48011
> File sandbox/src/sandbox_policy_base.cc (right):
>
> http://codereview.chromium.org/757001/diff/47001/48011#newcode79
> sandbox/src/sandbox_policy_base.cc:79:
> ipc_targets_[IPC_NTOPENPROCESSTOKENEX_TAG] = dispatcher;
> On 2010/03/12 01:06:48, rvargas wrote:
>
>> I would not move this code out of the ifdef at this point. It's not
>>
> like it can
>
>> run anyway if we don't have the whole table filled in (unless you also
>>
> change
>
> It works lets keep it.
>
>  that code)... and it is more noise when looking at changes between
>>
> cls.
>
> http://codereview.chromium.org/757001/diff/47001/48005
> File sandbox/src/sharedmem_ipc_server.h (right):
>
> http://codereview.chromium.org/757001/diff/47001/48005#newcode15
> sandbox/src/sharedmem_ipc_server.h:15: #include
> "testing/gtest/include/gtest/gtest_prod.h"
> On 2010/03/12 00:49:07, Nicolas Sylvain wrote:
>
>> I don't remember seeing this include before. Can't we include like
>>
> gtest.h or
>
>> something like that?
>>
>
> Apparently this way is the recommended way, check for example
> chrome/trunk/src/base/pickle.cc
>
>
> http://codereview.chromium.org/757001/diff/47001/48009
> File sandbox/tests/validation_tests/commands.cc (right):
>
> http://codereview.chromium.org/757001/diff/47001/48009#newcode90
> sandbox/tests/validation_tests/commands.cc:90: SBOX_TESTS_COMMAND int
> OpenProcessCmd(int argc, wchar_t **argv) {
> On 2010/03/12 00:49:07, Nicolas Sylvain wrote:
>
>> did you actually understand why it was failing? On my local machine i
>>
> fixed it
>
>> that way too... but I did not understand why.  The namespace does not
>>
> work?
>
> Yeah, so when you export, it ignores the namespace so it classes with
> kernel32!OpenProcess.

Any idea why it was not failing before?

 i would lgtm, but then i saw that it turned the buildbot red ;) Not lgtm !

>
>
> http://codereview.chromium.org/757001
>

Powered by Google App Engine
This is Rietveld 408576698