New issue
Advanced search Search tips
Note: Color blocks (like or ) mean that a user may not be available. Tooltip shows the reason.

Issue 617526 link

Starred by 1 user

Issue metadata

Status: Fixed
Owner:
Last visit > 30 days ago
Closed: Jun 2016
Cc:
Components:
EstimatedDays: ----
NextAction: ----
OS: Linux
Pri: 2
Type: Bug



Sign in to add a comment

Unreachable code in asm-wasm-builder.cc

Project Member Reported by ClusterFuzz, Jun 6 2016

Issue description

Detailed report: https://cluster-fuzz.appspot.com/testcase?key=5980006698450944

Fuzzer: mbarbella_js_mutation
Job Type: linux_asan_d8_v8_mipsel_dbg
Platform Id: linux

Crash Type: Unreachable code
Crash Address: 
Crash State:
  asm-wasm-builder.cc
  
Regressed: V8: r35045:35048

Minimized Testcase (0.23 Kb):
Download: https://cluster-fuzz.appspot.com/download/AMIfv94rpH7LvoLqLTb_eH7x4Oq_SuOwAbe6pMd4qq-Qw07dpk5H0zKeGgXJk-ChFpZ5cx5U3h2CjscI4-IzxadNDPTO2_5iiWKRQhBzkLfXOO-sUSs_fylvDpv2yj-DuaUExn2EelZWQezI2EyFowMvrPIkVeR0Vg
function __f_55(expected, __f_71, __f_7) {
 Wasm.instantiateModuleFromAsm( __f_71.toString());
}
function __f_109() {
  "use asm";
  function __f_18() {
     while(2147483648);
  }
  return {__f_18: __f_18};
}
__f_55(12, __f_109);
( {
})();


Filer: mstarzinger

See https://dev.chromium.org/Home/chromium-security/bugs/reproducing-clusterfuzz-bugs for more information.
 
Cc: bradnelson@chromium.org
Owner: titzer@chromium.org
Status: Assigned (was: Available)
Cc: titzer@chromium.org
 Issue 617884  has been merged into this issue.
Cc: rossberg@chromium.org
 Issue 620248  has been merged into this issue.
Components: -Blink>JavaScript Blink>JavaScript>WebAssembly
Labels: -Pri-1 BlockAsmWasmLaunch Pri-2
Owner: aseemgarg@chromium.org
Aseem, see if you can repro and fix. Thanks!

This is due to a bug in the typer. Integer literals in range [2^31, 2^32) should be marked as unsigned and not fixednum.
Owner: bradnelson@chromium.org
Labels: -BlockAsmWasmLaunch BlocksAsmWasmLaunch
Owner: aseemgarg@chromium.org
Project Member

Comment 11 by ClusterFuzz, Jun 29 2016

ClusterFuzz has detected this issue as fixed in range 37353:37354.

Detailed report: https://cluster-fuzz.appspot.com/testcase?key=5980006698450944

Fuzzer: mbarbella_js_mutation
Job Type: linux_asan_d8_v8_mipsel_dbg
Platform Id: linux

Crash Type: Unreachable code
Crash Address: 
Crash State:
  asm-wasm-builder.cc
  
Regressed: V8: r35045:35048
Fixed: V8: r37353:37354

Minimized Testcase (0.23 Kb):
Download: https://cluster-fuzz.appspot.com/download/AMIfv95PR8Zw1aHaGY1-IzHBZsS6y1cKWigPosn_kSWY3F8WAXCqUlOB9Y0jiBdX9Ov4AF-i4Aa2VQelJdnngjlDsJIyeyKmYz4yssMIgulpXXzWRu1kon_k8CBCs-081c_G4jleWmvAYi178-jKFNUaxzXKHWj-zA?testcase_id=5980006698450944
function __f_55(expected, __f_71, __f_7) {
 Wasm.instantiateModuleFromAsm( __f_71.toString());
}
function __f_109() {
  "use asm";
  function __f_18() {
     while(2147483648);
  }
  return {__f_18: __f_18};
}
__f_55(12, __f_109);
( {
})();


See https://dev.chromium.org/Home/chromium-security/bugs/reproducing-clusterfuzz-bugs for more information.

If you suspect that the result above is incorrect, try re-doing that job on the test case report page.
Project Member

Comment 12 by sheriffbot@chromium.org, Nov 22 2016

Labels: -Restrict-View-EditIssue
Removing EditIssue view restrictions from ClusterFuzz filed bugs. If you believe that this issue should still be restricted, please reapply the label.

For more details visit https://www.chromium.org/issue-tracking/autotriage - Your friendly Sheriffbot

Sign in to add a comment