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

Issue 2312813002: Limit Mojo messages recursion depth (Closed)

Created:
4 years, 3 months ago by tibell
Modified:
4 years, 3 months ago
Reviewers:
yzshen1, dcheng
CC:
chromium-reviews, qsr+mojo_chromium.org, viettrungluu+watch_chromium.org, yzshen+watch_chromium.org, abarth-chromium, Aaron Boodman, darin (slow to review), rickyz (no longer on Chrome), Oliver Chang
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Limit Mojo messages recursion depth This prevents a malicious sender from sending deeply nested messages that cause the receiver to blow the stack during message validation. BUG=640298 Committed: https://crrev.com/fe0adee770041fc6ab06582579c16e165346f22a Cr-Commit-Position: refs/heads/master@{#417151}

Patch Set 1 #

Patch Set 2 : Rename test interface for clarity #

Patch Set 3 : Correctly decrement the recursion limit count #

Patch Set 4 : Update comment to match arg name change #

Total comments: 12

Patch Set 5 : Address review comments #

Total comments: 2

Patch Set 6 : Address more review comments #

Messages

Total messages: 40 (24 generated)
tibell
4 years, 3 months ago (2016-09-06 04:08:36 UTC) #4
tibell
Rename test interface for clarity
4 years, 3 months ago (2016-09-06 04:48:08 UTC) #5
tibell
Correctly decrement the recursion limit count
4 years, 3 months ago (2016-09-06 07:04:03 UTC) #10
tibell
Update comment to match arg name change
4 years, 3 months ago (2016-09-06 07:23:15 UTC) #13
yzshen1
https://codereview.chromium.org/2312813002/diff/60001/mojo/public/interfaces/bindings/tests/data/validation/req_max_recursion_depth.data File mojo/public/interfaces/bindings/tests/data/validation/req_max_recursion_depth.data (right): https://codereview.chromium.org/2312813002/diff/60001/mojo/public/interfaces/bindings/tests/data/validation/req_max_recursion_depth.data#newcode21 mojo/public/interfaces/bindings/tests/data/validation/req_max_recursion_depth.data:21: [dist4]struct_a2 // num_bytes style nit: please align the comments. ...
4 years, 3 months ago (2016-09-06 17:03:10 UTC) #18
dcheng
https://codereview.chromium.org/2312813002/diff/60001/mojo/public/cpp/bindings/lib/validation_context.h File mojo/public/cpp/bindings/lib/validation_context.h (right): https://codereview.chromium.org/2312813002/diff/60001/mojo/public/cpp/bindings/lib/validation_context.h#newcode15 mojo/public/cpp/bindings/lib/validation_context.h:15: static const int kMaxRecursionDepth = 100; I'd suggest a ...
4 years, 3 months ago (2016-09-06 21:37:03 UTC) #19
tibell
Address review comments
4 years, 3 months ago (2016-09-07 05:40:38 UTC) #20
tibell
PTAL https://codereview.chromium.org/2312813002/diff/60001/mojo/public/cpp/bindings/lib/validation_context.h File mojo/public/cpp/bindings/lib/validation_context.h (right): https://codereview.chromium.org/2312813002/diff/60001/mojo/public/cpp/bindings/lib/validation_context.h#newcode15 mojo/public/cpp/bindings/lib/validation_context.h:15: static const int kMaxRecursionDepth = 100; On 2016/09/06 ...
4 years, 3 months ago (2016-09-07 05:41:21 UTC) #23
yzshen1
One more comment. Thanks! https://codereview.chromium.org/2312813002/diff/80001/mojo/public/cpp/bindings/tests/validation_unittest.cc File mojo/public/cpp/bindings/tests/validation_unittest.cc (right): https://codereview.chromium.org/2312813002/diff/80001/mojo/public/cpp/bindings/tests/validation_unittest.cc#newcode436 mojo/public/cpp/bindings/tests/validation_unittest.cc:436: RunValidationTests("req_max_recursion_depth", &validators); Does it make ...
4 years, 3 months ago (2016-09-07 16:51:20 UTC) #26
dcheng
I'm not super familiar with the mojo guts, but at a high-level, this lgtm from ...
4 years, 3 months ago (2016-09-07 22:20:51 UTC) #27
yzshen1
On 2016/09/07 16:51:20, yzshen1 wrote: > One more comment. Thanks! > > https://codereview.chromium.org/2312813002/diff/80001/mojo/public/cpp/bindings/tests/validation_unittest.cc > File ...
4 years, 3 months ago (2016-09-07 22:52:57 UTC) #28
tibell
Address more review comments
4 years, 3 months ago (2016-09-08 00:03:32 UTC) #29
tibell
https://codereview.chromium.org/2312813002/diff/80001/mojo/public/cpp/bindings/tests/validation_unittest.cc File mojo/public/cpp/bindings/tests/validation_unittest.cc (right): https://codereview.chromium.org/2312813002/diff/80001/mojo/public/cpp/bindings/tests/validation_unittest.cc#newcode436 mojo/public/cpp/bindings/tests/validation_unittest.cc:436: RunValidationTests("req_max_recursion_depth", &validators); On 2016/09/07 16:51:20, yzshen1 wrote: > Does ...
4 years, 3 months ago (2016-09-08 00:03:38 UTC) #30
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/2312813002/100001
4 years, 3 months ago (2016-09-08 00:27:56 UTC) #37
commit-bot: I haz the power
Committed patchset #6 (id:100001)
4 years, 3 months ago (2016-09-08 01:36:11 UTC) #38
commit-bot: I haz the power
4 years, 3 months ago (2016-09-08 01:39:45 UTC) #40
Message was sent while issue was closed.
Patchset 6 (id:??) landed as
https://crrev.com/fe0adee770041fc6ab06582579c16e165346f22a
Cr-Commit-Position: refs/heads/master@{#417151}

Powered by Google App Engine
This is Rietveld 408576698