RE: Mprotect needs arch hook for updated PTE settings

2005-03-16 Thread Seth, Rohit
Zoltan Menyhart <> wrote on Wednesday, March 16, 2005 4:58 AM: > The text segment can be huge. There is no reason to flush all the text > segment every time when ld-linux-ia64.so.* patches an instruction and > changes the protection. > You flush only the pages that got written and thus marked fo

Re: Mprotect needs arch hook for updated PTE settings

2005-03-16 Thread David Mosberger
> On Wed, 16 Mar 2005 13:58:04 +0100, Zoltan Menyhart <[EMAIL PROTECTED]> > said: Zoltan> An application should not change the protection of its _own_ Zoltan> text region without knowing well the requirements of the Zoltan> given architecture. And the rationale being? Zoltan> I

Re: Mprotect needs arch hook for updated PTE settings

2005-03-16 Thread Zoltan Menyhart
An application should not change the protection of its _own_ text region without knowing well the requirements of the given architecture. I do not think we should add anything into the kernel for this case. I did see /lib/ld-linux-ia64.so.* changing the protection of the text segment of the _victim