DragonFly BSD
DragonFly submit List (threaded) for 2005-06
[Date Prev][Date Next]  [Thread Prev][Thread Next]  [Date Index][Thread Index]

Re: Stackgap support


From: Craig Dooley <xlnxminusx@xxxxxxxxx>
Date: Wed, 22 Jun 2005 09:57:15 -0400

Just as a quick update, after looking at the FreeBSD patches made by
Suleiman Souhlal, this line
sgap += (ALIGN(arc4random())) & (stackgap_random - 1);
should be
sgap += ALIGN(arc4random() & (stackgap_random - 1));

On 6/22/05, Craig Dooley <xlnxminusx@xxxxxxxxx> wrote:
> This patch adds support for adding a random padding to the top of the
> user stack on process creation.  It is based off the OpenBSD
> implementation.  I have been testing this for about a day and it has
> not caused any problems.  It should also waste at most 1 physical page
> per process (someone correct me if I'm wrong).
> 
> -Craig
> --
> -----------------------------------------------------------------------
> Craig Dooley <xlnxminusx@xxxxxxxxx>
> 
> 
> 


-- 
-----------------------------------------------------------------------
Craig Dooley <xlnxminusx@xxxxxxxxx>




[Date Prev][Date Next]  [Thread Prev][Thread Next]  [Date Index][Thread Index]