Stackgap support

Craig Dooley xlnxminusx at gmail.com
Wed Jun 22 06:57:46 PDT 2005


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 at 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 at xxxxxxxxx>
> 
> 
> 


-- 
-----------------------------------------------------------------------
Craig Dooley <xlnxminusx at xxxxxxxxx>






More information about the Submit mailing list