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

Kezdőlap
Üzenet törlése
Szerző: admin
Dátum:  
Címzett: pcre-dev
Régi témák: [pcre-dev] [Bug 1749] New: PCRE-JITted code should be executed from non-writable memory to obey execmem SELinux restriction
Tárgy: [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 #13 from Zoltan Herczeg <hzmester@???> ---
Executable memory is allocated by an executable allocator. It allocates memory
chunks with mmap and manages memory allocation for patterns. This reduces the
total memory consumption when several small patterns are compiled.

The number of allocated regions depending on the space required by patterns and
the allocator is clever enough to unmap unused regions (when all memory is
freed on a given chunk). Each alloc / free do changes on these chunks, but
these changes should not affect other parts of the chunks, since those might be
used by other threads.

So the temporary file should grow / shrink depending on the currently allocated
patterns, even unused wholes in the temporary file could be dropped.

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