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

Issue 769846 link

Starred by 1 user

Issue metadata

Status: Verified
Owner:
Last visit > 30 days ago
Closed: Sep 2017
Cc:
Components:
EstimatedDays: ----
NextAction: ----
OS: Linux
Pri: 1
Type: Bug-Security



Sign in to add a comment

DCHECK failure in !IsThreadInWasm() in trap-handler.h

Project Member Reported by ClusterFuzz, Sep 28 2017

Issue description

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

Fuzzer: mbarbella_js_mutation
Job Type: linux_asan_d8_dbg
Platform Id: linux

Crash Type: DCHECK failure
Crash Address: 
Crash State:
  !IsThreadInWasm() in trap-handler.h
  SetThreadInWasm
  __RT_impl_Runtime_SetThreadInWasm
  
Sanitizer: address (ASAN)

Regressed: https://clusterfuzz.com/revisions?job=linux_asan_d8_dbg&range=48148:48149

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

Issue filed automatically.

See https://github.com/google/clusterfuzz-tools for more information.
 
Cc: ishell@chromium.org
Labels: Pri-1
Owner: eholk@chromium.org
Status: Assigned (was: Untriaged)
regression from
https://chromium.googlesource.com/v8/v8/+log/49106e48585335965b5d7861664df0a4a20a7ca7..71655f47a078d72573d4bf21226176e085d31fb6?pretty=fuller&n=10000
Labels: M-63
Project Member

Comment 3 by sheriffbot@chromium.org, Sep 29 2017

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
Project Member

Comment 4 by bugdroid1@chromium.org, Sep 30 2017

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

commit 025e3ab1e58e571c5eed1f7fe2104009894d572d
Author: Eric Holk <eholk@chromium.org>
Date: Sat Sep 30 01:07:08 2017

[wasm] set thread-in-wasm flag after converting arguments

In JS to Wasm wrappers, arguments have to be converted from JavaScript's
representation to Wasm's representation. Because of property accessors, this can
result in JavaScript or even asm.js/Wasm code being run. We were previously
setting this flag before doing the parameter conversions, and if these
conversions triggered a Wasm property getter then we would try to set the flag
twice.

With this change, we wait until after all argument conversions are done to set
the flag.

Bug:  chromium:769846 

R=bradnelson@chromium.org

Change-Id: Ia4b56df45619dcad69f3750bb33cacfedcaeb5b2
Reviewed-on: https://chromium-review.googlesource.com/693414
Commit-Queue: Brad Nelson <bradnelson@chromium.org>
Reviewed-by: Brad Nelson <bradnelson@chromium.org>
Cr-Commit-Position: refs/heads/master@{#48244}
[modify] https://crrev.com/025e3ab1e58e571c5eed1f7fe2104009894d572d/src/compiler/wasm-compiler.cc
[modify] https://crrev.com/025e3ab1e58e571c5eed1f7fe2104009894d572d/src/compiler/wasm-compiler.h
[add] https://crrev.com/025e3ab1e58e571c5eed1f7fe2104009894d572d/test/mjsunit/regress/wasm/regression-769846.js

Project Member

Comment 5 by ClusterFuzz, Sep 30 2017

ClusterFuzz has detected this issue as fixed in range 48243:48244.

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

Fuzzer: mbarbella_js_mutation
Job Type: linux_asan_d8_dbg
Platform Id: linux

Crash Type: DCHECK failure
Crash Address: 
Crash State:
  !IsThreadInWasm() in trap-handler.h
  SetThreadInWasm
  __RT_impl_Runtime_SetThreadInWasm
  
Sanitizer: address (ASAN)

Regressed: https://clusterfuzz.com/revisions?job=linux_asan_d8_dbg&range=48148:48149
Fixed: https://clusterfuzz.com/revisions?job=linux_asan_d8_dbg&range=48243:48244

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

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 6 by ClusterFuzz, Sep 30 2017

Labels: ClusterFuzz-Verified
Status: Verified (was: Assigned)
ClusterFuzz testcase 5229524169261056 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 7 by sheriffbot@chromium.org, Sep 30 2017

Labels: -Restrict-View-SecurityTeam Restrict-View-SecurityNotify
Labels: -ReleaseBlock-Stable
Project Member

Comment 9 by sheriffbot@chromium.org, Jan 6 2018

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
Project Member

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

Labels: -Security_Impact-Head -M-63 M-65 Security_Impact-Stable

Sign in to add a comment