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

Issue 2794743002: Add a mechanism to scramble Mojo message IDs. (Closed)

Created:
3 years, 8 months ago by nigeltao1
Modified:
3 years, 7 months ago
Reviewers:
Tom Sepez, yzshen1, M-A Ruel
CC:
chromium-reviews, qsr+mojo_chromium.org, viettrungluu+watch_chromium.org, yzshen+watch_chromium.org, abarth-chromium, Aaron Boodman, darin (slow to review)
Target Ref:
refs/heads/master
Project:
chromium
Visibility:
Public.

Description

Add a mechanism to scramble Mojo message IDs. For example, chrome/common/renderer_configuration.mojom defines: interface RendererConfiguration { SetInitialConfiguration(etc); SetContentSettingRules(etc); SetFieldTrialGroup(etc); }; The generated IDs in gen/chrome/common/renderer_configuration.mojom-shared-internal.h, prior to this CL, and also after this CL with an empty seed, are: constexpr uint32_t kRendererConfiguration_SetInitialConfiguration_Name = 0; constexpr uint32_t kRendererConfiguration_SetContentSettingRules_Name = 1; constexpr uint32_t kRendererConfiguration_SetFieldTrialGroup_Name = 2; After this CL, with a "foo" seed, the IDs are: constexpr uint32_t kRendererConfiguration_SetInitialConfiguration_Name = 1257880741; constexpr uint32_t kRendererConfiguration_SetContentSettingRules_Name = 631133653; constexpr uint32_t kRendererConfiguration_SetFieldTrialGroup_Name = 549336076; BUG=673417 Review-Url: https://codereview.chromium.org/2794743002 Cr-Commit-Position: refs/heads/master@{#467573} Committed: https://chromium.googlesource.com/chromium/src/+/9c12ed217b0f67085d1ec83ab3eabdabe72c40da

Patch Set 1 #

Patch Set 2 : Add a mechanism to scramble Mojo message IDs. #

Total comments: 1

Patch Set 3 : Add a mechanism to scramble Mojo message IDs. #

Total comments: 6

Patch Set 4 : Add a mechanism to scramble Mojo message IDs. #

Patch Set 5 : Add a mechanism to scramble Mojo message IDs. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+73 lines, -0 lines) Patch
M mojo/public/tools/bindings/generators/cpp_templates/module-shared-internal.h.tmpl View 1 chunk +3 lines, -0 lines 0 comments Download
M mojo/public/tools/bindings/mojom_bindings_generator.py View 1 2 3 4 4 chunks +40 lines, -0 lines 0 comments Download
M mojo/public/tools/bindings/mojom_bindings_generator_unittest.py View 1 2 2 chunks +30 lines, -0 lines 0 comments Download

Messages

Total messages: 41 (18 generated)
jschuh
Tom is probably the best person to provide feedback and a review here.
3 years, 8 months ago (2017-04-02 20:10:45 UTC) #2
Tom Sepez
On 2017/04/02 20:10:45, jschuh wrote: > Tom is probably the best person to provide feedback ...
3 years, 8 months ago (2017-04-03 16:45:12 UTC) #3
Tom Sepez
Per discussion with jschuh, it's OK to do this at compile time. However, what does ...
3 years, 8 months ago (2017-04-04 16:43:13 UTC) #4
nigeltao1
On 2017/04/04 16:43:13, Tom Sepez wrote: > Per discussion with jschuh, it's OK to do ...
3 years, 8 months ago (2017-04-06 01:44:49 UTC) #5
Tom Sepez
> As for whether folks are OK with this, I'm still a bit of a ...
3 years, 8 months ago (2017-04-06 16:48:47 UTC) #8
M-A Ruel
On 2017/04/06 16:48:47, Tom Sepez wrote: > > As for whether folks are OK with ...
3 years, 8 months ago (2017-04-06 22:07:26 UTC) #9
nigeltao1
On 2017/04/06 22:07:26, M-A Ruel wrote: > Thank Tom for the probe, if you use ...
3 years, 8 months ago (2017-04-07 01:41:12 UTC) #10
M-A Ruel
(Sorry for the initial terse reply, having a sick day) On 2017/04/07 01:41:12, nigeltao1 wrote: ...
3 years, 8 months ago (2017-04-07 01:45:13 UTC) #11
nigeltao1
On 2017/04/07 01:45:13, M-A Ruel wrote: > Using the build date would be good to ...
3 years, 8 months ago (2017-04-07 03:06:59 UTC) #14
Tom Sepez
Sorry, using the build date would not be acceptable from a security perspective. The advesary ...
3 years, 8 months ago (2017-04-07 17:32:53 UTC) #16
M-A Ruel
On 2017/04/07 17:32:53, Tom Sepez wrote: > Sorry, using the build date would not be ...
3 years, 8 months ago (2017-04-07 17:37:27 UTC) #17
Tom Sepez
> To be clear: I don't mind about the seed used for official builds, as ...
3 years, 8 months ago (2017-04-11 16:42:23 UTC) #18
Tom Sepez
https://codereview.chromium.org/2794743002/diff/20001/mojo/public/tools/bindings/mojom_bindings_generator.py File mojo/public/tools/bindings/mojom_bindings_generator.py (right): https://codereview.chromium.org/2794743002/diff/20001/mojo/public/tools/bindings/mojom_bindings_generator.py#newcode226 mojo/public/tools/bindings/mojom_bindings_generator.py:226: global_crc = binascii.crc32(seed) Can we do sha256 instead, just ...
3 years, 8 months ago (2017-04-11 16:43:24 UTC) #19
nigeltao1
On 2017/04/11 16:43:24, Tom Sepez (OOO Wed - Thu) wrote: > https://codereview.chromium.org/2794743002/diff/20001/mojo/public/tools/bindings/mojom_bindings_generator.py > File mojo/public/tools/bindings/mojom_bindings_generator.py ...
3 years, 8 months ago (2017-04-20 04:35:04 UTC) #20
nigeltao1
I also added a test, although I'm not fluent in Python. I'm not confident that ...
3 years, 8 months ago (2017-04-20 04:38:35 UTC) #23
M-A Ruel
On 2017/04/20 04:38:35, nigeltao1 wrote: > maruel, I presume that you are happy wrt reproducibility. ...
3 years, 8 months ago (2017-04-20 08:31:45 UTC) #28
yzshen1
LGTM https://codereview.chromium.org/2794743002/diff/40001/mojo/public/tools/bindings/mojom_bindings_generator.py File mojo/public/tools/bindings/mojom_bindings_generator.py (right): https://codereview.chromium.org/2794743002/diff/40001/mojo/public/tools/bindings/mojom_bindings_generator.py#newcode119 mojo/public/tools/bindings/mojom_bindings_generator.py:119: # harder for a compromised renderer process to ...
3 years, 8 months ago (2017-04-20 17:21:49 UTC) #29
nigeltao1
https://codereview.chromium.org/2794743002/diff/40001/mojo/public/tools/bindings/mojom_bindings_generator.py File mojo/public/tools/bindings/mojom_bindings_generator.py (right): https://codereview.chromium.org/2794743002/diff/40001/mojo/public/tools/bindings/mojom_bindings_generator.py#newcode119 mojo/public/tools/bindings/mojom_bindings_generator.py:119: # harder for a compromised renderer process to send ...
3 years, 8 months ago (2017-04-20 23:39:13 UTC) #30
nigeltao1
tsepez, PTAL.
3 years, 8 months ago (2017-04-20 23:39:57 UTC) #32
yzshen1
lgtm
3 years, 8 months ago (2017-04-21 00:45:07 UTC) #34
Tom Sepez
lgtm
3 years, 7 months ago (2017-04-24 16:48:03 UTC) #35
commit-bot: I haz the power
CQ is trying da patch. Follow status at: https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.org/2794743002/80001
3 years, 7 months ago (2017-04-27 00:43:07 UTC) #38
commit-bot: I haz the power
3 years, 7 months ago (2017-04-27 03:57:58 UTC) #41
Message was sent while issue was closed.
Committed patchset #5 (id:80001) as
https://chromium.googlesource.com/chromium/src/+/9c12ed217b0f67085d1ec83ab3ea...

Powered by Google App Engine
This is Rietveld 408576698