<?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>35154</bug_id>
          
          <creation_ts>2010-02-19 06:25:30 -0800</creation_ts>
          <short_desc>JavaScript JIT incompatible with SELinux (execmem)</short_desc>
          <delta_ts>2015-08-02 14:02:13 -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>417.x</version>
          <rep_platform>PC</rep_platform>
          <op_sys>Linux</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>INVALID</resolution>
          
          <see_also>https://bugs.webkit.org/show_bug.cgi?id=76413</see_also>
          <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="Jaroslav Reznik">jreznik</reporter>
          <assigned_to name="Nobody">webkit-unassigned</assigned_to>
          <cc>ap</cc>
    
    <cc>barraclough</cc>
    
    <cc>ggaren</cc>
    
    <cc>rdieter</cc>
          

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>191893</commentid>
    <comment_count>0</comment_count>
    <who name="Jaroslav Reznik">jreznik</who>
    <bug_when>2010-02-19 06:25:30 -0800</bug_when>
    <thetext>JavaScript JIT causes crash while SELinux in enforcing mode is involved. 

Dec 23 09:09:38 htpc kernel: plasma-netbook[4493]: segfault at bbadbeef ip
0621a5c0 sp bf8f4b20 error 6 in libQtWebKit.so.4.6.0[5fcb000+1090000]  
Dec 23 09:09:38 htpc kernel: Process 4493(plasma-netbook) has RLIMIT_CORE set
to 0
Dec 23 09:09:38 htpc kernel: Aborting core
Dec 23 09:09:45 htpc setroubleshoot: SELinux is preventing
/usr/bin/plasma-netbook &quot;execmem&quot; access on &lt;Unknown&gt;. For complete SELinux
messages. run sealert -l 94d4513e-7637-4087-9039-4340e3c4b452
Dec 23 09:09:48 htpc setroubleshoot: SELinux is preventing
/usr/bin/plasma-netbook &quot;execmem&quot; access on &lt;Unknown&gt;. For complete SELinux
messages. run sealert -l 94d4513e-7637-4087-9039-4340e3c4b452


See recent Fedora bugs for more information:
https://bugzilla.redhat.com/show_bug.cgi?id=549994
https://bugzilla.redhat.com/show_bug.cgi?id=527079
https://bugzilla.redhat.com/show_bug.cgi?id=516057

Currently we ship QtWebKit with JIT disabled as workaround. Can someone guess
performance impact? Or any possibility to find fix in trac?

I&apos;ve found this https://bugs.webkit.org/show_bug.cgi?id=22033 bug ([GTK] CTI/Linux
r38064 crashes; JIT requires executable memory) that could be related to this 
issue.

Version: QtWebKit as found in Qt 4.6.0 (but it affects WebKitGtk too - 
JIT is disabled in Fedora package too).

Thanks.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>498864</commentid>
    <comment_count>1</comment_count>
    <who name="Rex Dieter">rdieter</who>
    <bug_when>2011-11-09 05:53:06 -0800</bug_when>
    <thetext>Confirmed selinux/execmem issue remains with current qt-4.8.0-rc1/qtwebkit-2.2</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>499475</commentid>
    <comment_count>2</comment_count>
    <who name="Alexey Proskuryakov">ap</who>
    <bug_when>2011-11-09 16:45:42 -0800</bug_when>
    <thetext>Isn&apos;t this expected behavior for a platform that disallows making memory executable? Of course, that means taking a significant performance hit.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>714870</commentid>
    <comment_count>3</comment_count>
    <who name="Gavin Barraclough">barraclough</who>
    <bug_when>2012-09-07 12:52:19 -0700</bug_when>
    <thetext>As Alexey says, sounds like this is behaving correctly for your system.</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>