Bug 189247

Summary: CallFrame::unsafeCallee() should use an ASAN suppressed Register::asanUnsafePointer().
Product: WebKit Reporter: Mark Lam <mark.lam>
Component: JavaScriptCoreAssignee: Mark Lam <mark.lam>
Status: RESOLVED FIXED    
Severity: Normal CC: commit-queue, ddkilzer, fpizlo, keith_miller, msaboff, rmorisset, saam, tzagallo, webkit-bug-importer, ysuzuki
Priority: P2 Keywords: InRadar
Version: WebKit Nightly Build   
Hardware: Unspecified   
OS: Unspecified   
Attachments:
Description Flags
proposed patch.
saam: review+, saam: commit-queue-
proposed patch.
mark.lam: review-
proposed patch. none

Description Mark Lam 2018-09-03 10:52:15 PDT
Patch coming.
Comment 1 Mark Lam 2018-09-03 11:08:05 PDT
Created attachment 348779 [details]
proposed patch.
Comment 2 Saam Barati 2018-09-03 13:06:06 PDT
Comment on attachment 348779 [details]
proposed patch.

View in context: https://bugs.webkit.org/attachment.cgi?id=348779&action=review

> Source/JavaScriptCore/interpreter/Register.h:125
> +        return asanUnsafeJSValue();

How does this not remove asan protection?
Comment 3 Mark Lam 2018-09-03 13:11:12 PDT
Comment on attachment 348779 [details]
proposed patch.

View in context: https://bugs.webkit.org/attachment.cgi?id=348779&action=review

>> Source/JavaScriptCore/interpreter/Register.h:125
>> +        return asanUnsafeJSValue();
> 
> How does this not remove asan protection?

I was previously thinking that the outer function Register::jsValue() not being a ASAN suppressed function means that this is OK.  But I'm wrong: this is a bug.  I will undo these call forwardinh changes.
Comment 4 Mark Lam 2018-09-03 13:17:52 PDT
Created attachment 348788 [details]
proposed patch.
Comment 5 Mark Lam 2018-09-03 13:27:12 PDT
Comment on attachment 348788 [details]
proposed patch.

Got a bug.
Comment 6 Mark Lam 2018-09-03 13:45:31 PDT
Created attachment 348789 [details]
proposed patch.
Comment 7 WebKit Commit Bot 2018-09-03 16:29:43 PDT
Comment on attachment 348789 [details]
proposed patch.

Clearing flags on attachment: 348789

Committed r235603: <https://trac.webkit.org/changeset/235603>
Comment 8 WebKit Commit Bot 2018-09-03 16:29:45 PDT
All reviewed patches have been landed.  Closing bug.
Comment 9 Radar WebKit Bug Importer 2018-09-03 16:30:17 PDT
<rdar://problem/44079982>