On Mon, Sep 24, 2001 at 06:14:34PM -0700, Bakul Shah wrote:
> FWIW, in a Unix port we did I remember putting the user
> struct *above* the kernel stack.  The stack grew down so you
> hit the red zone (the guard pages) without clobbering the
> user struct.  Since struct user _ended_ on a page boundary,
> its size was needed at locore.s assembly time but that was a
> small price to pay for the added safety.

I don't think a guard page can help here, because the page fault
handler needs a working stack.

-- 
B.Walter              COSMO-Project         http://www.cosmo-project.de
[EMAIL PROTECTED]         Usergroup           [EMAIL PROTECTED]


To Unsubscribe: send mail to [EMAIL PROTECTED]
with "unsubscribe freebsd-hackers" in the body of the message

Reply via email to