Re: executing malloced memory on ia64 or sth else? (SableVM porting)
>>>>> On 22 Feb 2003 23:41:17 +0100, "Grzegorz B. Prokopski" <gadek@debian.org> said:
Grzegorz> Simplyfing the whole thing - it copies some code to
Grzegorz> malloced memory and then jumps to it, by executing: goto
Grzegorz> *(pc->implementation); where implemenation points to the
Grzegorz> code that is to be executed.
Apart from the function-pointer portion, don't forget to:
(a) establish coherence between the data and instruction space, and
(b) turn on execute permission on the malloc area via mprotect()
(b) is needed because on ia64 linux we don't turn on execute
permission on data segments by default (to make stack-overflow attacks
harder).
--david
Reply to: