<?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>115305</bug_id>
          
          <creation_ts>2013-04-27 05:52:43 -0700</creation_ts>
          <short_desc>REGRESSION(r149114): cache flush for SH4 arch may flush an extra page</short_desc>
          <delta_ts>2013-04-27 11:24:22 -0700</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>Unspecified</rep_platform>
          <op_sys>Linux</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>
          
          
          <everconfirmed>0</everconfirmed>
          <reporter name="Julien Brianceau">jbriance</reporter>
          <assigned_to name="Nobody">webkit-unassigned</assigned_to>
          <cc>commit-queue</cc>
    
    <cc>fpizlo</cc>
    
    <cc>mark.lam</cc>
    
    <cc>oliver</cc>
          

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>882170</commentid>
    <comment_count>0</comment_count>
    <who name="Julien Brianceau">jbriance</who>
    <bug_when>2013-04-27 05:52:43 -0700</bug_when>
    <thetext>Since r149114, the following JavaScriptCore test crashes (sh4 arch):

# ./jsc -s jsctest/js1_2/shell.js -s jsctest/js1_2/regexp/string_replace.js
Executing script: string_replace.js
As described in Netscape doc &quot;Whats new in JavaScript 1.2&quot; String: replace
Unable to handle kernel paging request at virtual address 2c41f000
pc = 8080efb2
*pde = 87f54000
*pte = 00000000
Oops: 0000 [#1]
last sysfs file: /sys/devices/virtual/bpamem/bpamem31/dev
Modules linked in: bpamem silencegen platform stmalloc sth264pp player2 stm_monitor stmdvb pti stv090x pseudocard stm_v4l2 p2div64 ksound mmelog avs mme_host embxshm embxmailbox embxshell stmfb stmcore_display_sti7105 autofs4 e2_proc
Pid : 1508, Comm:               jsc
CPU : 0                 Not tainted  (2.6.32.28_stm24_0207 #54)
PC is at sh4__flush_wback_region+0x32/0xa0
PR is at sys_cacheflush+0xec/0x140
PC  : 8080efb2 SP  : 876e1f80 SR  : 40008000 TEA : c10f8a6c
R0  : 00000080 R1  : 2c41f000 R2  : 00000010 R3  : 2c41f000
R4  : 2c41f000 R5  : 000000c0 R6  : 000000e0 R7  : 00000100
R8  : 000000a0 R9  : 00000080 R10 : 00000002 R11 : 2c420000
R12 : 000000bc R13 : 006e63cc R14 : 000000c0
MACH: 00000200 MACL: 00000120 GBR : 2adec278 PR  : 8080678c

Call trace:
[&lt;80809920&gt;] syscall_call+0xa/0xe
[&lt;808066a0&gt;] sys_cacheflush+0x0/0x140
 
Process: jsc (pid: 1508, stack limit = 876e0001)
Stack: (0x876e1f80 to 0x876e2000)
1f80: 00001000 2c41f000 0000000e 80809920 00000594 00000000 00000071 00000100
1fa0: 808066a0 7b9ceddc 00685b56 0000000b 0000007b 2c41f000 00001000 0000000e
1fc0: 7b9cedf0 2c41f000 006e63c0 2c41f000 2c41ef40 00705994 006e63cc 000000c0
1fe0: 7b9ceda0 2ad2f6d2 004509e8 00000000 2adec278 00000200 00000120 0000005c
---[ end trace 3d575c0af2b1d83a ]---


I&apos;ll submit a fix soon.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>882171</commentid>
    <comment_count>1</comment_count>
      <attachid>199901</attachid>
    <who name="Julien Brianceau">jbriance</who>
    <bug_when>2013-04-27 06:05:43 -0700</bug_when>
    <thetext>Created attachment 199901
Correct last page computation in SH4 cacheFlush function</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>882196</commentid>
    <comment_count>2</comment_count>
      <attachid>199901</attachid>
    <who name="WebKit Commit Bot">commit-queue</who>
    <bug_when>2013-04-27 11:24:20 -0700</bug_when>
    <thetext>Comment on attachment 199901
Correct last page computation in SH4 cacheFlush function

Clearing flags on attachment: 199901

Committed r149240: &lt;http://trac.webkit.org/changeset/149240&gt;</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>882197</commentid>
    <comment_count>3</comment_count>
    <who name="WebKit Commit Bot">commit-queue</who>
    <bug_when>2013-04-27 11:24:22 -0700</bug_when>
    <thetext>All reviewed patches have been landed.  Closing bug.</thetext>
  </long_desc>
      
          <attachment
              isobsolete="0"
              ispatch="1"
              isprivate="0"
          >
            <attachid>199901</attachid>
            <date>2013-04-27 06:05:43 -0700</date>
            <delta_ts>2013-04-27 11:24:20 -0700</delta_ts>
            <desc>Correct last page computation in SH4 cacheFlush function</desc>
            <filename>bug-115305.patch</filename>
            <type>text/plain</type>
            <size>1500</size>
            <attacher name="Julien Brianceau">jbriance</attacher>
            
              <data encoding="base64">SW5kZXg6IFNvdXJjZS9KYXZhU2NyaXB0Q29yZS9DaGFuZ2VMb2cKPT09PT09PT09PT09PT09PT09
PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PQotLS0gU291
cmNlL0phdmFTY3JpcHRDb3JlL0NoYW5nZUxvZwkocmV2aXNpb24gMTQ5MjM2KQorKysgU291cmNl
L0phdmFTY3JpcHRDb3JlL0NoYW5nZUxvZwkod29ya2luZyBjb3B5KQpAQCAtMSwzICsxLDEzIEBA
CisyMDEzLTA0LTI3ICBKdWxpZW4gQnJpYW5jZWF1ICA8amJyaWFuY2VhdUBuZHMuY29tPgorCisg
ICAgICAgIFJFR1JFU1NJT04ocjE0OTExNCk6IGNhY2hlIGZsdXNoIGZvciBTSDQgYXJjaCBtYXkg
Zmx1c2ggYW4gZXh0cmEgcGFnZS4KKyAgICAgICAgaHR0cHM6Ly9idWdzLndlYmtpdC5vcmcv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