Re: "Moving" Stack: my poor return address!

Jon Erickson <[email protected]>
Newsgroups gmane.comp.security.vulnerabilities
Message-ID <[email protected]>

On Mon, Jul 31, 2006 at 10:03:33PM -0400, Jack C wrote:
> 
> I'm running on Fedora 5. Is this a security thing that's new in the past 
> 2 years or so since I've coded one of these? Is there any way I can 
> either (1) make the stack sit still so I can point into it or (2) find 
> out where it is during execution?

Assuming you're using a 2.6.11+ kernel, stack space is randomized by 
default.  You can turn it off by doing:
 echo 0 > /proc/sys/kernel/randomize_va_space
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.