Non-executable mappings now in NetBSD too
PeterJeremy at optushome.com.au
Sun Aug 31 02:16:01 PDT 2003
On Sun, Aug 31, 2003 at 12:06:28AM +0100, Pedro F. Giffuni wrote:
>> Emacs and perl both use traditional bytecode interpreters, as does the
>> Classic JVM. I agree they will be unaffected. This change will only
>> impact JIT JVMs.
>Well, we only have a JIT JVM for the i386, and on the particular case of the
>i386 we cannot enforce full protection anyways so there is probably a
>workaround if we do need it.
Based on some recent BUGTRAQ postings, OpenBSD has a trick to support
full protection on the i386. The text segment and executable part of
shared libraries are placed at low virtual addresses and CS is
restricted to only cover the low address space. I don't know whether
it's worthwhile to implement something along these lines in FreeBSD.
More information about the freebsd-hackers