<html>
    <head>
      <base href="https://bugs.freedesktop.org/" />
    </head>
    <body><table border="1" cellspacing="0" cellpadding="8">
        <tr>
          <th>Priority</th>
          <td>medium
          </td>
        </tr>

        <tr>
          <th>Bug ID</th>
          <td><a class="bz_bug_link 
          bz_status_NEW "
   title="NEW --- - 2.99.905 segfaults frequently when running "x11perf -copyplane500" with SNA"
   href="https://bugs.freedesktop.org/show_bug.cgi?id=70944">70944</a>
          </td>
        </tr>

        <tr>
          <th>Assignee</th>
          <td>chris@chris-wilson.co.uk
          </td>
        </tr>

        <tr>
          <th>Summary</th>
          <td>2.99.905 segfaults frequently when running "x11perf -copyplane500" with SNA
          </td>
        </tr>

        <tr>
          <th>QA Contact</th>
          <td>intel-gfx-bugs@lists.freedesktop.org
          </td>
        </tr>

        <tr>
          <th>Severity</th>
          <td>critical
          </td>
        </tr>

        <tr>
          <th>Classification</th>
          <td>Unclassified
          </td>
        </tr>

        <tr>
          <th>OS</th>
          <td>All
          </td>
        </tr>

        <tr>
          <th>Reporter</th>
          <td>intelgraphics7@gmx-topmail.de
          </td>
        </tr>

        <tr>
          <th>Hardware</th>
          <td>All
          </td>
        </tr>

        <tr>
          <th>Status</th>
          <td>NEW
          </td>
        </tr>

        <tr>
          <th>Version</th>
          <td>unspecified
          </td>
        </tr>

        <tr>
          <th>Component</th>
          <td>Driver/intel
          </td>
        </tr>

        <tr>
          <th>Product</th>
          <td>xorg
          </td>
        </tr></table>
      <p>
        <div>
        <pre>Created <span class=""><a href="attachment.cgi?id=88206" name="attach_88206" title="Fix for SNA segfault">attachment 88206</a> <a href="attachment.cgi?id=88206&action=edit" title="Fix for SNA segfault">[details]</a></span>
Fix for SNA segfault

Running "x11perf -copyplane500" crashes the Xserver in the intel driver code
with a segfault in sna_accel.c:7454 (sna_copy_bitmap_blt()).

The attached patch fixes that for me.
It makes sure that line length variable bw is rounded up correctly.
Otherwise the line length is too short and it allocates not enough graphics
memory for the given operation.

The patch applies this fix for all calculations of bw to make sure other
functions besides the sna_copy_bitmap_blt() don't cause segfaults as well.

Please comment the patch and included it in future releases if it is correct
from your point of view.</pre>
        </div>
      </p>
      <hr>
      <span>You are receiving this mail because:</span>
      
      <ul>
          <li>You are the QA Contact for the bug.</li>
      </ul>
    </body>
</html>