* [gentoo-user] How to disable stack randomization? @ 2007-08-03 13:15 Shaochun Wang 2007-08-03 18:15 ` Ryan Sims ` (2 more replies) 0 siblings, 3 replies; 4+ messages in thread From: Shaochun Wang @ 2007-08-03 13:15 UTC (permalink / raw To: Gentoo Every time I execute the same program, its stack starts at a different address. After some studying, I know it is caused by stack randomization in kernel. Although stack randomization impedes stack buffer overflow, it introduces some nondeterminism. Does anyone know how to disable it? Thank you in advance. -- Shaochun Wang <scwang@ios.ac.cn> Jabber: fungusw@jabber.org -- gentoo-user@gentoo.org mailing list ^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: [gentoo-user] How to disable stack randomization? 2007-08-03 13:15 [gentoo-user] How to disable stack randomization? Shaochun Wang @ 2007-08-03 18:15 ` Ryan Sims 2007-08-03 19:42 ` Norberto Bensa 2007-08-06 2:18 ` Shaochun Wang 2 siblings, 0 replies; 4+ messages in thread From: Ryan Sims @ 2007-08-03 18:15 UTC (permalink / raw To: gentoo-user On 8/3/07, Shaochun Wang <scwang@ios.ac.cn> wrote: > Every time I execute the same program, its stack starts at a different > address. After some studying, I know it is caused by stack randomization > in kernel. Although stack randomization impedes stack buffer overflow, > it introduces some nondeterminism. > > Does anyone know how to disable it? I'm afraid I can't help, but I'm curious: what are the behaviors that the randomization is causing? Not criticizing, just interested. -- Ryan W Sims -- gentoo-user@gentoo.org mailing list ^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: [gentoo-user] How to disable stack randomization? 2007-08-03 13:15 [gentoo-user] How to disable stack randomization? Shaochun Wang 2007-08-03 18:15 ` Ryan Sims @ 2007-08-03 19:42 ` Norberto Bensa 2007-08-06 2:18 ` Shaochun Wang 2 siblings, 0 replies; 4+ messages in thread From: Norberto Bensa @ 2007-08-03 19:42 UTC (permalink / raw To: gentoo-user; +Cc: Shaochun Wang Shaochun Wang wrote: > > Does anyone know how to disable it? norandmaps? -- gentoo-user@gentoo.org mailing list ^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: [gentoo-user] How to disable stack randomization? 2007-08-03 13:15 [gentoo-user] How to disable stack randomization? Shaochun Wang 2007-08-03 18:15 ` Ryan Sims 2007-08-03 19:42 ` Norberto Bensa @ 2007-08-06 2:18 ` Shaochun Wang 2 siblings, 0 replies; 4+ messages in thread From: Shaochun Wang @ 2007-08-06 2:18 UTC (permalink / raw To: gentoo-user I got the way: sysctl -w kernel.randomize_va_space=0 Disabling stack randomization is usefull for learning. -- Shaochun Wang <scwang@ios.ac.cn> Jabber: fungusw@jabber.org -- gentoo-user@gentoo.org mailing list ^ permalink raw reply [flat|nested] 4+ messages in thread
end of thread, other threads:[~2007-08-06 2:23 UTC | newest] Thread overview: 4+ messages (download: mbox.gz follow: Atom feed -- links below jump to the message on this page -- 2007-08-03 13:15 [gentoo-user] How to disable stack randomization? Shaochun Wang 2007-08-03 18:15 ` Ryan Sims 2007-08-03 19:42 ` Norberto Bensa 2007-08-06 2:18 ` Shaochun Wang
This is a public inbox, see mirroring instructions for how to clone and mirror all data and code used for this inbox