On Wed, 30 Jun 2010 16:45:18 -0700 Garrett Cooper <yanef...@gmail.com> wrote:
> > > > Now make icebp_func const and observe the program start working. The > > test case is broken as written, because icebp_func array is > > writable, so in ends up in a non-const part of .bss, which is not > > marked as executable and rightfully causes SIGSEGV when jumped to. > > Which means that Linux is broken in this regard because it's loading > data as text, not data as data and text as text? > Thanks, Nope, I think this is i386 vs. amd64 difference. NX page protection is enforced in long mode, or in 32-bit with PAE, if I remember things correctly. -- Alexander Kabaev
signature.asc
Description: PGP signature