New issue
Advanced search Search tips

Issue 834619 link

Starred by 2 users

Issue metadata

Status: Verified
Owner:
Closed: Apr 2018
Cc:
Components:
EstimatedDays: ----
NextAction: 2018-04-30
OS: Linux
Pri: 1
Type: Bug-Security



Sign in to add a comment

DCHECK failure in func_index == code->index() in wasm-code-manager.cc

Project Member Reported by ClusterFuzz, Apr 19 2018

Issue description

Detailed report: https://clusterfuzz.com/testcase?key=4629797553307648

Fuzzer: ochang_js_fuzzer
Job Type: linux_d8_dbg
Platform Id: linux

Crash Type: DCHECK failure
Crash Address: 
Crash State:
  func_index == code->index() in wasm-code-manager.cc
  
Sanitizer: address (ASAN)

Regressed: https://clusterfuzz.com/revisions?job=linux_d8_dbg&range=52525:52526

Reproducer Testcase: https://clusterfuzz.com/download?testcase_id=4629797553307648

Issue filed automatically.

See https://github.com/google/clusterfuzz-tools for more information.
 
Project Member

Comment 1 by ClusterFuzz, Apr 19 2018

Labels: Test-Predator-Auto-Owner
Owner: titzer@chromium.org
Status: Assigned (was: Untriaged)
Automatically assigning owner based on suspected regression changelist https://chromium.googlesource.com/v8/v8/+/ff64dfa09207208d3cae0b0a0745b9397adaf9cc ([wasm] Improve patching behavior for lazy compilation).

If this is incorrect, please let us know why and apply the Test-Predator-Wrong-CLs label. If you aren't the correct owner for this issue, please unassign yourself as soon as possible so it can be re-triaged.
Project Member

Comment 2 by sheriffbot@chromium.org, Apr 19 2018

Labels: Pri-1

Comment 3 by vakh@chromium.org, Apr 20 2018

Components: Blink>JavaScript>WebAssembly
Labels: Security_Impact-Head

Comment 4 by vakh@chromium.org, Apr 20 2018

Cc: clemensh@chromium.org

Comment 5 by vakh@chromium.org, Apr 20 2018

Labels: M-68
Project Member

Comment 6 by sheriffbot@chromium.org, Apr 21 2018

Labels: ReleaseBlock-Stable
This is a serious security regression. If you are not able to fix this quickly, please revert the change that introduced it.

If this doesn't affect a release branch, or has not been properly classified for severity, please update the Security_Impact or Security_Severity labels, and remove the ReleaseBlock label. To disable this altogether, apply ReleaseBlock-NA.

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

Comment 7 by titzer@chromium.org, Apr 25 2018

Status: Started (was: Assigned)
Project Member

Comment 8 by bugdroid1@chromium.org, Apr 27 2018

The following revision refers to this bug:
  https://chromium.googlesource.com/v8/v8.git/+/903d87312e1e7cd145a6baa0c77696f1288e2a89

commit 903d87312e1e7cd145a6baa0c77696f1288e2a89
Author: Ben L. Titzer <titzer@chromium.org>
Date: Fri Apr 27 08:27:56 2018

[wasm] Fix target instance for indirect calls to imports

In the case of an indirect call to an imported function, the target
instance stored in the IFT was actually wrong.

Bug:  chromium:834619 
Change-Id: Id2ac4158335ecf2b58e1983ce37df852a9ebd1b2
Reviewed-on: https://chromium-review.googlesource.com/1030174
Commit-Queue: Ben Titzer <titzer@chromium.org>
Reviewed-by: Clemens Hammacher <clemensh@chromium.org>
Cr-Commit-Position: refs/heads/master@{#52831}
[modify] https://crrev.com/903d87312e1e7cd145a6baa0c77696f1288e2a89/src/wasm/function-compiler.cc
[modify] https://crrev.com/903d87312e1e7cd145a6baa0c77696f1288e2a89/src/wasm/module-compiler.cc
[modify] https://crrev.com/903d87312e1e7cd145a6baa0c77696f1288e2a89/src/wasm/wasm-code-manager.cc
[add] https://crrev.com/903d87312e1e7cd145a6baa0c77696f1288e2a89/test/mjsunit/regress/wasm/regress-834619.js
[modify] https://crrev.com/903d87312e1e7cd145a6baa0c77696f1288e2a89/test/mjsunit/wasm/indirect-tables.js

Comment 9 by titzer@chromium.org, Apr 27 2018

Labels: Merge-Request-67
Status: Fixed (was: Started)
Project Member

Comment 10 by sheriffbot@chromium.org, Apr 27 2018

Labels: -Restrict-View-SecurityTeam Restrict-View-SecurityNotify
Cc: awhalley@chromium.org
+awhalley@ for M67 merge review (Pls note CL listed at #8 is not yet baked in canary).
Project Member

Comment 12 by ClusterFuzz, Apr 28 2018

ClusterFuzz has detected this issue as fixed in range 52830:52831.

Detailed report: https://clusterfuzz.com/testcase?key=4629797553307648

Fuzzer: ochang_js_fuzzer
Job Type: linux_d8_dbg
Platform Id: linux

Crash Type: DCHECK failure
Crash Address: 
Crash State:
  func_index == code->index() in wasm-code-manager.cc
  
Sanitizer: address (ASAN)

Regressed: https://clusterfuzz.com/revisions?job=linux_d8_dbg&range=52525:52526
Fixed: https://clusterfuzz.com/revisions?job=linux_d8_dbg&range=52830:52831

Reproducer Testcase: https://clusterfuzz.com/download?testcase_id=4629797553307648

See https://github.com/google/clusterfuzz-tools 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 13 by ClusterFuzz, Apr 28 2018

Labels: ClusterFuzz-Verified
Status: Verified (was: Fixed)
ClusterFuzz testcase 4629797553307648 is verified as fixed, so closing issue as verified.

If this is incorrect, please add ClusterFuzz-Wrong label and re-open the issue.
Project Member

Comment 14 by sheriffbot@chromium.org, Apr 28 2018

Labels: -Merge-Request-67 Merge-Review-67 Hotlist-Merge-Review
This bug requires manual review: M67 has already been promoted to the beta branch, so this requires manual review
Please contact the milestone owner if you have questions.
Owners: cmasso@(Android), cmasso@(iOS), kbleicher@(ChromeOS), govind@(Desktop)

For more details visit https://www.chromium.org/issue-tracking/autotriage - Your friendly Sheriffbot
NextAction: 2018-04-30
awhalley@ for M67 merge review.
The NextAction date has arrived: 2018-04-30
govind - good for 67
Labels: -Merge-Review-67 Merge-Approved-67
Approving merge to M67 branch 3396 based on comment #17. Please merge ASAP so we can pick it up for tomorrow's beta release. Thank you.
Project Member

Comment 19 by bugdroid1@chromium.org, May 2 2018

Labels: merge-merged-6.7
The following revision refers to this bug:
  https://chromium.googlesource.com/v8/v8.git/+/977a8341fc8385c90cd89f89052fe70abc39f51f

commit 977a8341fc8385c90cd89f89052fe70abc39f51f
Author: Ben L. Titzer <titzer@google.com>
Date: Wed May 02 11:01:43 2018

Merged: [wasm] Fix target instance for indirect calls to imports

Revision: 903d87312e1e7cd145a6baa0c77696f1288e2a89

BUG= chromium:834619 
LOG=N
NOTRY=true
NOPRESUBMIT=true
NOTREECHECKS=true
R=clemensh@chromium.org

Change-Id: Ic268091c467ad8f131a247b501b38d12d76c93fa
Reviewed-on: https://chromium-review.googlesource.com/1039198
Reviewed-by: Clemens Hammacher <clemensh@chromium.org>
Cr-Commit-Position: refs/branch-heads/6.7@{#49}
Cr-Branched-From: 8457e810efd34381448d51d93f50079cf1f6a812-refs/heads/6.7.288@{#2}
Cr-Branched-From: e921be5c4f2c6407936bde750992dedbf47c1016-refs/heads/master@{#52547}
[modify] https://crrev.com/977a8341fc8385c90cd89f89052fe70abc39f51f/src/wasm/module-compiler.cc
[modify] https://crrev.com/977a8341fc8385c90cd89f89052fe70abc39f51f/src/wasm/wasm-code-manager.cc
[add] https://crrev.com/977a8341fc8385c90cd89f89052fe70abc39f51f/test/mjsunit/regress/wasm/regress-834619.js
[modify] https://crrev.com/977a8341fc8385c90cd89f89052fe70abc39f51f/test/mjsunit/wasm/indirect-tables.js

Labels: -Merge-Approved-67
Already merged to M67 at #19.
Labels: -ReleaseBlock-Stable -M-68 M-67
Project Member

Comment 22 by sheriffbot@chromium.org, Aug 3

Labels: -Restrict-View-SecurityNotify allpublic
This bug has been closed for more than 14 weeks. Removing security view restrictions.

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

Sign in to add a comment