the ffi_callback will not work under PaX kernel since it tries to allocate memory which is both executable and writeable.