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

Issue 2336603002: [wasm] Write fuzzers for single wasm sections. (Closed)

Created:
4 years, 3 months ago by ahaas
Modified:
4 years, 3 months ago
CC:
Michael Hablich, v8-reviews_googlegroups.com
Target Ref:
refs/pending/heads/master
Project:
v8
Visibility:
Public.

Description

[wasm] Write fuzzers for single wasm sections. This CL adds fuzzers for the wasm module sections 'types', 'names', 'globals', 'imports', 'function signatures', 'memory', and 'data', one fuzzer per section. No fuzzers are added for the other sections because either there already exists a fuzzer (e.g. wasm-code), or there exist inter-section dependencies. To avoid introducing a bunch executables which would make compilation with make slow, I introduce a single executable 'v8_simple_wasm_section_fuzzer' which calls the fuzzers mentioned above. This executable is run by the trybots and ensures that the fuzzers actually compile. For debugging I introduce commandline parameters which allow to execute the specific fuzzers from 'v8_simple_wasm_section_fuzzer'. R=titzer@chromium.org, jochen@chromium.org, mstarzinger@chromium.org Committed: https://crrev.com/3ff201906e14b40d5c9bdb77ea79cd9fd51b6238 Cr-Commit-Position: refs/heads/master@{#39413}

Patch Set 1 #

Total comments: 6

Patch Set 2 : Fix build files. #

Patch Set 3 : Add a comment. #

Total comments: 4

Patch Set 4 : Comments addressed, and new wasm-fuzzer corpus #

Patch Set 5 : Switch to one binary per fuzzer. #

Patch Set 6 : typo fixed #

Patch Set 7 : Rebase #

Unified diffs Side-by-side diffs Delta from patch set Stats (+490 lines, --4 lines) Patch
M BUILD.gn View 1 2 3 4 1 chunk +128 lines, -0 lines 0 comments Download
M test/fuzzer/fuzzer.gyp View 1 2 3 4 5 1 chunk +210 lines, -0 lines 0 comments Download
M test/fuzzer/fuzzer.isolate View 1 2 3 4 2 chunks +14 lines, -0 lines 0 comments Download
M test/fuzzer/testcfg.py View 1 2 3 4 1 chunk +4 lines, -1 line 0 comments Download
A test/fuzzer/wasm-data-section.cc View 1 2 3 4 1 chunk +10 lines, -0 lines 0 comments Download
A test/fuzzer/wasm-function-sigs-section.cc View 1 2 3 4 1 chunk +10 lines, -0 lines 0 comments Download
A test/fuzzer/wasm-globals-section.cc View 1 2 3 4 1 chunk +10 lines, -0 lines 0 comments Download
A test/fuzzer/wasm-imports-section.cc View 1 2 3 4 1 chunk +10 lines, -0 lines 0 comments Download
A test/fuzzer/wasm-memory-section.cc View 1 2 3 4 1 chunk +10 lines, -0 lines 0 comments Download
A test/fuzzer/wasm-names-section.cc View 1 2 3 4 1 chunk +10 lines, -0 lines 0 comments Download
A test/fuzzer/wasm-section-fuzzers.h View 1 chunk +16 lines, -0 lines 0 comments Download
A test/fuzzer/wasm-section-fuzzers.cc View 1 2 3 4 1 chunk +53 lines, -0 lines 0 comments Download
A test/fuzzer/wasm-types-section.cc View 1 2 3 4 1 chunk +10 lines, -0 lines 0 comments Download
M test/fuzzer/wasm.tar.gz.sha1 View 1 2 3 1 chunk +1 line, -1 line 0 comments Download
M test/fuzzer/wasm_asmjs.tar.gz.sha1 View 1 2 3 1 chunk +1 line, -1 line 0 comments Download
A + test/fuzzer/wasm_data_section/foo View 1 2 3 4 0 chunks +-1 lines, --1 lines 0 comments Download
A + test/fuzzer/wasm_function_sigs_section/foo View 1 2 3 4 0 chunks +-1 lines, --1 lines 0 comments Download
A + test/fuzzer/wasm_globals_section/foo View 1 2 3 4 0 chunks +-1 lines, --1 lines 0 comments Download
A + test/fuzzer/wasm_imports_section/foo View 1 2 3 4 0 chunks +-1 lines, --1 lines 0 comments Download
A + test/fuzzer/wasm_memory_section/foo View 1 2 3 4 0 chunks +-1 lines, --1 lines 0 comments Download
A + test/fuzzer/wasm_names_section/foo View 1 2 3 4 0 chunks +-1 lines, --1 lines 0 comments Download
A + test/fuzzer/wasm_types_section/foo View 1 2 3 4 0 chunks +-1 lines, --1 lines 0 comments Download

Messages

Total messages: 43 (25 generated)
ahaas
4 years, 3 months ago (2016-09-12 14:52:41 UTC) #1
jochen (gone - plz use gerrit)
https://codereview.chromium.org/2336603002/diff/1/BUILD.gn File BUILD.gn (right): https://codereview.chromium.org/2336603002/diff/1/BUILD.gn#newcode2741 BUILD.gn:2741: "test/cctest/wasm/wasm-module-runner.cc", can you move this into a separate source_set? ...
4 years, 3 months ago (2016-09-12 14:57:21 UTC) #4
jochen (gone - plz use gerrit)
https://codereview.chromium.org/2336603002/diff/1/BUILD.gn File BUILD.gn (right): https://codereview.chromium.org/2336603002/diff/1/BUILD.gn#newcode2728 BUILD.gn:2728: "test/fuzzer/wasm-section-fuzzers.cc", that's also duplicated across all new targets you ...
4 years, 3 months ago (2016-09-12 14:58:10 UTC) #5
ahaas
https://codereview.chromium.org/2336603002/diff/1/BUILD.gn File BUILD.gn (right): https://codereview.chromium.org/2336603002/diff/1/BUILD.gn#newcode2728 BUILD.gn:2728: "test/fuzzer/wasm-section-fuzzers.cc", On 2016/09/12 at 14:58:10, jochen wrote: > that's ...
4 years, 3 months ago (2016-09-12 16:10:25 UTC) #12
Michael Starzinger
Looking good from my end. Just some comment nit. https://codereview.chromium.org/2336603002/diff/40001/src/flag-definitions.h File src/flag-definitions.h (right): https://codereview.chromium.org/2336603002/diff/40001/src/flag-definitions.h#newcode1096 src/flag-definitions.h:1096: ...
4 years, 3 months ago (2016-09-13 09:27:08 UTC) #15
jochen (gone - plz use gerrit)
I don't think multiplexing the different fuzzers like this will work. make is a thing ...
4 years, 3 months ago (2016-09-13 09:33:49 UTC) #16
titzer
On 2016/09/13 09:33:49, jochen wrote: > I don't think multiplexing the different fuzzers like this ...
4 years, 3 months ago (2016-09-13 09:37:48 UTC) #17
ahaas
https://codereview.chromium.org/2336603002/diff/40001/BUILD.gn File BUILD.gn (right): https://codereview.chromium.org/2336603002/diff/40001/BUILD.gn#newcode2576 BUILD.gn:2576: source_set("wasm-module-runner") { On 2016/09/13 at 09:33:48, jochen wrote: > ...
4 years, 3 months ago (2016-09-13 09:50:22 UTC) #20
jochen (gone - plz use gerrit)
I can see the point about the binary size. Does clusterfuzz support running the same ...
4 years, 3 months ago (2016-09-13 09:53:26 UTC) #21
ahaas
On 2016/09/13 at 09:53:26, jochen wrote: > I can see the point about the binary ...
4 years, 3 months ago (2016-09-13 10:42:04 UTC) #24
jochen (gone - plz use gerrit)
On 2016/09/13 at 10:42:04, ahaas wrote: > On 2016/09/13 at 09:53:26, jochen wrote: > > ...
4 years, 3 months ago (2016-09-13 11:08:17 UTC) #25
ahaas
On 2016/09/13 at 11:08:17, jochen wrote: > On 2016/09/13 at 10:42:04, ahaas wrote: > > ...
4 years, 3 months ago (2016-09-13 12:03:05 UTC) #26
ahaas
On 2016/09/13 at 12:03:05, ahaas wrote: > On 2016/09/13 at 11:08:17, jochen wrote: > > ...
4 years, 3 months ago (2016-09-13 14:47:21 UTC) #29
titzer
On 2016/09/13 14:47:21, ahaas wrote: > On 2016/09/13 at 12:03:05, ahaas wrote: > > On ...
4 years, 3 months ago (2016-09-13 16:35:01 UTC) #36
jochen (gone - plz use gerrit)
lgtm
4 years, 3 months ago (2016-09-14 08:31:07 UTC) #37
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/2336603002/120001
4 years, 3 months ago (2016-09-14 10:39:47 UTC) #40
commit-bot: I haz the power
Committed patchset #7 (id:120001)
4 years, 3 months ago (2016-09-14 11:17:18 UTC) #41
commit-bot: I haz the power
4 years, 3 months ago (2016-09-14 11:18:00 UTC) #43
Message was sent while issue was closed.
Patchset 7 (id:??) landed as
https://crrev.com/3ff201906e14b40d5c9bdb77ea79cd9fd51b6238
Cr-Commit-Position: refs/heads/master@{#39413}

Powered by Google App Engine
This is Rietveld 408576698