Summary: | Protect and mark JIT buffers executable | ||
---|---|---|---|
Product: | WebKit | Reporter: | Alp Toker <alp> |
Component: | JavaScriptCore | Assignee: | Nobody <webkit-unassigned> |
Status: | RESOLVED FIXED | ||
Severity: | Normal | CC: | ap, barraclough, mrowe, sam, zwarich |
Priority: | P2 | ||
Version: | 528+ (Nightly build) | ||
Hardware: | All | ||
OS: | All |
Description
Alp Toker
2008-09-20 09:18:46 PDT
This will need to be done for x86_64 support on Mac OS X, as the heap is non-executable by default. We need to solve this problem by implementing an allocator for the generated code. We probably want to mmap pages from the OS and implement sub-page allocation, as many functions have less than 4kb of code. We will also have to be careful about unmapping pages and giving them back to the OS. The first part of this bug was fixed in r39083: http://trac.webkit.org/changeset/39083 |