[pcre-dev] [Bug 1749] PCRE-JITted code should be executed fr…

Top Page
Delete this message
Author: admin
Date:  
To: pcre-dev
Old-Topics: [pcre-dev] [Bug 1749] New: PCRE-JITted code should be executed from non-writable memory to obey execmem SELinux restriction
Subject: [pcre-dev] [Bug 1749] PCRE-JITted code should be executed from non-writable memory to obey execmem SELinux restriction
https://bugs.exim.org/show_bug.cgi?id=1749

--- Comment #8 from Zoltan Herczeg <hzmester@???> ---
> Then mmap it once writable to edit the JIT code; when you're finished, mmap it execable instead.


Here comes the first question: PCRE-JIT support multithreading, where one
thread can compile a new JIT code while another thread executes a compiled JIT
code. If I cannot map it as both writable and executable, how can I handle it?

If it is not possible, I need to allocate 4K aligned spaces for all compiled
patterns, which wastes memory, but writing and executing can be separated. And
that does not even need any temporary files.

--
You are receiving this mail because:
You are on the CC list for the bug.