Re: How to enable/disable security features on mmap() ?

Arjan van de Ven
2005-12-08T15:37:56Z

> Isn't this too much? I thought the random-stack patch was
> only supposed to vary it a page or 64k at most. This looks
> like some broken logic because it varies almost 8 megabytes!

that is correct; the 64k was only there for one patch proposal; linus'
tree had 8 Mb randomisation from the start

> No wonder some of my user's database programs sometimes seg-fault
> and other times work perfectly fine. I think this is incorrect
> and shows a serious bug (misbehavior).

eh how? This 8Mb isn't eaten from the stack rlimit; the entire stack is
moved, and the rlimit applies to the size not the position.