Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 287045 - net-libs/webkit-gtk: add a USE flag to enable or disable JavaScript JIT
Summary: net-libs/webkit-gtk: add a USE flag to enable or disable JavaScript JIT
Status: RESOLVED WONTFIX
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] GNOME (show other bugs)
Hardware: All Linux
: High normal (vote)
Assignee: Gentoo Linux Gnome Desktop Team
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2009-09-30 09:51 UTC by Pavel Labushev
Modified: 2009-10-31 22:09 UTC (History)
0 users

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Pavel Labushev 2009-09-30 09:51:06 UTC
The following patch adds a USE flag for net-libs/webkit-gtk-1.1.10 to enable or disable JavaScript JIT (enabled by default). I'm not sure if this flag should be arch-dependant: currently JIT is availabe on x86 only, but more archs to come (amd64 at least).

--- net-libs/webkit-gtk/webkit-gtk-1.1.10.ebuild	2009-09-29 04:06:21.000000000 +0800
+++ net-libs/webkit-gtk/webkit-gtk-1.1.10.ebuild	2009-09-30 17:25:51.000000000 +0800
@@ -15,7 +15,7 @@
 SLOT="0"
 KEYWORDS="alpha amd64 ~ia64 ~ppc ~sparc x86 ~x86-fbsd"
 # geoclue
-IUSE="coverage debug doc gnome-keyring +gstreamer pango"
+IUSE="coverage debug doc gnome-keyring +gstreamer +jit pango"
 
 # use sqlite, svg by default
 RDEPEND="
@@ -91,6 +91,10 @@
 		myconf="${myconf} --with-font-backend=freetype"
 	fi
 
+	if use !jit; then
+		myconf="${myconf} --enable-jit=no"
+	fi
+
 	econf ${myconf}
 }
Comment 1 Pavel Labushev 2009-10-02 10:45:31 UTC
(In reply to comment #1 here: https://bugs.gentoo.org/show_bug.cgi?id=287046 )
> Why? Some more background info would be nice.

JIT requires executable stack pages, and any process performing JavaScript on
hardened kernels will require to run with PAX_MPROTECT disabled. This may allow
easier code execution exploits to work (without the need in pure ret2libc-style
stack preparations, that is harder). Apart from that the JIT itself can be
vulnerable.
Comment 2 Justin Lecher (RETIRED) gentoo-dev 2009-10-09 19:39:18 UTC

*** This bug has been marked as a duplicate of bug 285792 ***
Comment 3 Justin Lecher (RETIRED) gentoo-dev 2009-10-09 19:41:57 UTC
Sorry for bugzie spam. I decided to open two bugs.
Comment 4 Gilles Dartiguelongue (RETIRED) gentoo-dev 2009-10-31 22:09:52 UTC
iirc there is no such flag in 1.1.15.2. Closing wontfix.