login  home  contents  what's new  discussion  bug reports     help  links  subscribe  changes  refresh  edit

Submitted by : (unknown) at: 2007-11-17T22:21:56-08:00 (16 years ago)
Name :
Axiom Version :
Category : Severity : Status :
Optional subject :  
Optional comment :

\\Greetings!
\\
\\FC3 has made brk() added pages non-executable by default.  You need
\\this at the end of h/386-linux.h:
\\
\\#ifdef IN_SFASL
\\#include <sys/mman.h>
\\#define CLEAR_CACHE {\
\\   void *p,*pe; \
\\   p=(void *)((unsigned long)memory->cfd.cfd_start & ~(PAGESIZE-1)); \
\\   pe=(void *)((unsigned long)(memory->cfd.cfd_start+memory->cfd.cfd_size) & 
~(PAGESIZE-1)) + PAGESIZE-1; \
\\   if (mprotect(p,pe-p,PROT_READ|PROT_WRITE|PROT_EXEC)) {\
\\     fprintf(stderr,"%p %p\n",p,pe);\
\\     perror("");\
\\     FEerror("Cannot mprotect", 0);\
\\   }\
\\}
\\#endif
\\
\\Not sure what the overhead of this is on each load, but we might just
\\make it the Linux default across the board for simplicity.
\\Alternatively, would either need a runtime or compile time test to
\\detect when its needed.  I'll place this on the errata page for
\\inclusion in any possible 2.6.6, and do something easy in CVS head for
\\now. 
\\


------------------------------------------------------------


... --test1, Wed, 23 Apr 2014 19:20:51 +0000

Status: open => closed 




  Subject:   Be Bold !!
  ( 14 subscribers )  
Please rate this page: