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

Issue 2150803003: Introduce gpu_fuzzer to fuzz the GPU command buffers (Closed)

Created:
4 years, 5 months ago by piman
Modified:
4 years, 5 months ago
Reviewers:
no sievers
CC:
chromium-reviews, piman+watch_chromium.org
Base URL:
https://chromium.googlesource.com/chromium/src.git@fuzzer_land_base
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Introduce gpu_fuzzer to fuzz the GPU command buffers This fuzzer sets up a decoder using the stub GL API and runs an arbitrary string as a command buffer. This introduces a maximum size for buckets as well as buffers, because the fuzzer will rapidly try to create giant ones, running out of memory (and/or being extremely slow). The limit is kept at 1GB in production, but limited to 8MB in the fuzzer. BUG=None CQ_INCLUDE_TRYBOTS=master.tryserver.chromium.linux:linux_optional_gpu_tests_rel;master.tryserver.chromium.mac:mac_optional_gpu_tests_rel;master.tryserver.chromium.win:win_optional_gpu_tests_rel Committed: https://crrev.com/5adadcfc2694ac8b90405f5b82a856adc542d83f Cr-Commit-Position: refs/heads/master@{#405636}

Patch Set 1 : reduce logging #

Total comments: 2

Patch Set 2 : Fix check, zero-out padding #

Unified diffs Side-by-side diffs Delta from patch set Stats (+308 lines, -12 lines) Patch
M gpu/BUILD.gn View 2 chunks +22 lines, -0 lines 0 comments Download
M gpu/command_buffer/service/buffer_manager.h View 2 chunks +7 lines, -0 lines 0 comments Download
M gpu/command_buffer/service/buffer_manager.cc View 3 chunks +5 lines, -1 line 0 comments Download
M gpu/command_buffer/service/command_buffer_service.h View 1 chunk +1 line, -0 lines 0 comments Download
M gpu/command_buffer/service/command_buffer_service.cc View 2 chunks +17 lines, -10 lines 0 comments Download
M gpu/command_buffer/service/common_decoder.h View 2 chunks +6 lines, -0 lines 0 comments Download
M gpu/command_buffer/service/common_decoder.cc View 3 chunks +7 lines, -1 line 0 comments Download
A gpu/command_buffer/tests/fuzzer_main.cc View 1 1 chunk +243 lines, -0 lines 0 comments Download

Messages

Total messages: 24 (14 generated)
piman
sievers: PTAL. This still runs fairly slowly, because of the cost to reinitialize the decoder, ...
4 years, 5 months ago (2016-07-14 04:01:12 UTC) #5
no sievers
lgtm, neat. https://codereview.chromium.org/2150803003/diff/20001/gpu/command_buffer/tests/fuzzer_main.cc File gpu/command_buffer/tests/fuzzer_main.cc (right): https://codereview.chromium.org/2150803003/diff/20001/gpu/command_buffer/tests/fuzzer_main.cc#newcode138 gpu/command_buffer/tests/fuzzer_main.cc:138: command_buffer_->Flush((size + 3) / 4); don't you ...
4 years, 5 months ago (2016-07-14 21:33:24 UTC) #11
piman
https://codereview.chromium.org/2150803003/diff/20001/gpu/command_buffer/tests/fuzzer_main.cc File gpu/command_buffer/tests/fuzzer_main.cc (right): https://codereview.chromium.org/2150803003/diff/20001/gpu/command_buffer/tests/fuzzer_main.cc#newcode138 gpu/command_buffer/tests/fuzzer_main.cc:138: command_buffer_->Flush((size + 3) / 4); On 2016/07/14 21:33:24, sievers ...
4 years, 5 months ago (2016-07-14 22:15:46 UTC) #12
piman
On 2016/07/14 22:15:46, piman wrote: > https://codereview.chromium.org/2150803003/diff/20001/gpu/command_buffer/tests/fuzzer_main.cc > File gpu/command_buffer/tests/fuzzer_main.cc (right): > > https://codereview.chromium.org/2150803003/diff/20001/gpu/command_buffer/tests/fuzzer_main.cc#newcode138 > ...
4 years, 5 months ago (2016-07-14 22:26:59 UTC) #13
piman
On 2016/07/14 22:26:59, piman wrote: > On 2016/07/14 22:15:46, piman wrote: > > > https://codereview.chromium.org/2150803003/diff/20001/gpu/command_buffer/tests/fuzzer_main.cc ...
4 years, 5 months ago (2016-07-14 22:32:33 UTC) #14
no sievers
On 2016/07/14 22:32:33, piman wrote: > On 2016/07/14 22:26:59, piman wrote: > > On 2016/07/14 ...
4 years, 5 months ago (2016-07-14 23:22:01 UTC) #17
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/2150803003/40001
4 years, 5 months ago (2016-07-14 23:41:56 UTC) #20
commit-bot: I haz the power
Committed patchset #2 (id:40001)
4 years, 5 months ago (2016-07-14 23:52:52 UTC) #21
commit-bot: I haz the power
CQ bit was unchecked.
4 years, 5 months ago (2016-07-14 23:53:07 UTC) #22
commit-bot: I haz the power
4 years, 5 months ago (2016-07-14 23:55:34 UTC) #24
Message was sent while issue was closed.
Patchset 2 (id:??) landed as
https://crrev.com/5adadcfc2694ac8b90405f5b82a856adc542d83f
Cr-Commit-Position: refs/heads/master@{#405636}

Powered by Google App Engine
This is Rietveld 408576698