<?xml version="1.0" encoding="UTF-8" standalone="yes" ?>
<!DOCTYPE bugzilla SYSTEM "https://bugs.webkit.org/page.cgi?id=bugzilla.dtd">

<bugzilla version="5.0.4.1"
          urlbase="https://bugs.webkit.org/"
          
          maintainer="admin@webkit.org"
>

    <bug>
          <bug_id>124481</bug_id>
          
          <creation_ts>2013-11-17 23:55:11 -0800</creation_ts>
          <short_desc>ARM64 CRASH: Improper offset in getHostCallReturnValue() to access callerFrame in CallFrame</short_desc>
          <delta_ts>2013-11-18 10:17:08 -0800</delta_ts>
          <reporter_accessible>1</reporter_accessible>
          <cclist_accessible>1</cclist_accessible>
          <classification_id>1</classification_id>
          <classification>Unclassified</classification>
          <product>WebKit</product>
          <component>JavaScriptCore</component>
          <version>528+ (Nightly build)</version>
          <rep_platform>All</rep_platform>
          <op_sys>All</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>FIXED</resolution>
          
          
          <bug_file_loc></bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords></keywords>
          <priority>P2</priority>
          <bug_severity>Normal</bug_severity>
          <target_milestone>---</target_milestone>
          
          <blocked>116888</blocked>
          <everconfirmed>1</everconfirmed>
          <reporter name="Michael Saboff">msaboff</reporter>
          <assigned_to name="Michael Saboff">msaboff</assigned_to>
          <cc>aestes</cc>
          

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>951503</commentid>
    <comment_count>0</comment_count>
    <who name="Michael Saboff">msaboff</who>
    <bug_when>2013-11-17 23:55:11 -0800</bug_when>
    <thetext>In jit/JITOperations.cpp, the ARM64 version of getHostCallReturnValue() has the improper offset of -32.  It should be changed to 0.

#elif CPU(ARM64)
asm (
&quot;.text&quot; &quot;\n&quot;
&quot;.align 2&quot; &quot;\n&quot;
&quot;.globl &quot; SYMBOL_STRING(getHostCallReturnValue) &quot;\n&quot;
HIDE_SYMBOL(getHostCallReturnValue) &quot;\n&quot;
SYMBOL_STRING(getHostCallReturnValue) &quot;:&quot; &quot;\n&quot;
    &quot;ldur x25, [x25, #-32]&quot; &quot;\n&quot;   &lt;==  This should be &quot;ldur x25, [x25, #0]&quot;
     &quot;mov x0, x25&quot; &quot;\n&quot;
     &quot;b &quot; LOCAL_REFERENCE(getHostCallReturnValueWithExecState) &quot;\n&quot;
);</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>951506</commentid>
    <comment_count>1</comment_count>
    <who name="Andy Estes">aestes</who>
    <bug_when>2013-11-17 23:57:39 -0800</bug_when>
    <thetext>I&apos;m building this change now.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>951525</commentid>
    <comment_count>2</comment_count>
    <who name="Andy Estes">aestes</who>
    <bug_when>2013-11-18 01:09:10 -0800</bug_when>
    <thetext>Now we&apos;re just running in to this problem in MacroAssemblerARM64.h:

    void pop(RegisterID) NO_RETURN_DUE_TO_CRASH
    {
        CRASH();
    }

    void push(RegisterID) NO_RETURN_DUE_TO_CRASH
    {
        CRASH();
    }

    void push(Address) NO_RETURN_DUE_TO_CRASH
    {
        CRASH();
    }

    void push(TrustedImm32) NO_RETURN_DUE_TO_CRASH
    {
        CRASH();
    }

Did you have a fix for this too?</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>951538</commentid>
    <comment_count>3</comment_count>
    <who name="Andy Estes">aestes</who>
    <bug_when>2013-11-18 01:59:42 -0800</bug_when>
    <thetext>After commenting out emitPointerValidation() in ThunkGenerators.cpp, I could successfully load apple.com.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>951594</commentid>
    <comment_count>4</comment_count>
    <who name="Michael Saboff">msaboff</who>
    <bug_when>2013-11-18 07:15:08 -0800</bug_when>
    <thetext>(In reply to comment #3)
&gt; After commenting out emitPointerValidation() in ThunkGenerators.cpp, I could successfully load apple.com.

I&apos;ll post a patch soon.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>951643</commentid>
    <comment_count>5</comment_count>
      <attachid>217206</attachid>
    <who name="Michael Saboff">msaboff</who>
    <bug_when>2013-11-18 10:04:34 -0800</bug_when>
    <thetext>Created attachment 217206
Patch</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>951646</commentid>
    <comment_count>6</comment_count>
      <attachid>217206</attachid>
    <who name="Mark Lam">mark.lam</who>
    <bug_when>2013-11-18 10:10:11 -0800</bug_when>
    <thetext>Comment on attachment 217206
Patch

r=me</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>951651</commentid>
    <comment_count>7</comment_count>
    <who name="Michael Saboff">msaboff</who>
    <bug_when>2013-11-18 10:17:08 -0800</bug_when>
    <thetext>Committed r159428: &lt;http://trac.webkit.org/changeset/159428&gt;</thetext>
  </long_desc>
      
          <attachment
              isobsolete="0"
              ispatch="1"
              isprivate="0"
          >
            <attachid>217206</attachid>
            <date>2013-11-18 10:04:34 -0800</date>
            <delta_ts>2013-11-18 10:10:11 -0800</delta_ts>
            <desc>Patch</desc>
            <filename>124481.patch</filename>
            <type>text/plain</type>
            <size>1399</size>
            <attacher name="Michael Saboff">msaboff</attacher>
            
              <data encoding="base64">SW5kZXg6IFNvdXJjZS9KYXZhU2NyaXB0Q29yZS9DaGFuZ2VMb2cKPT09PT09PT09PT09PT09PT09
PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PQotLS0gU291
cmNlL0phdmFTY3JpcHRDb3JlL0NoYW5nZUxvZwkocmV2aXNpb24gMTU5NDI3KQorKysgU291cmNl
L0phdmFTY3JpcHRDb3JlL0NoYW5nZUxvZwkod29ya2luZyBjb3B5KQpAQCAtMSwzICsxLDE1IEBA
CisyMDEzLTExLTE4ICBNaWNoYWVsIFNhYm9mZiAgPG1zYWJvZmZAYXBwbGUuY29tPgorCisgICAg
ICAgIEFSTTY0IENSQVNIOiBJbXByb3BlciBvZmZzZXQgaW4gZ2V0SG9zdENhbGxSZXR1cm5WYWx1
ZSgpIHRvIGFjY2VzcyBjYWxsZXJGcmFtZSBpbiBDYWxsRnJhbWUKKyAg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hnZXRIb3N0Q2FsbFJldHVyblZhbHVlKSAiOiIgIlxuIgotICAgICJsZHVyIHgyNSwgW3gy
NSwgIy0zMl0iICJcbiIKKyAgICAibGR1ciB4MjUsIFt4MjUsICMwXSIgIlxuIgogICAgICAibW92
IHgwLCB4MjUiICJcbiIKICAgICAgImIgIiBMT0NBTF9SRUZFUkVOQ0UoZ2V0SG9zdENhbGxSZXR1
cm5WYWx1ZVdpdGhFeGVjU3RhdGUpICJcbiIKICk7Cg==
</data>
<flag name="review"
          id="240302"
          type_id="1"
          status="+"
          setter="mark.lam"
    />
          </attachment>
      

    </bug>

</bugzilla>