Help!

[gentoo-user] How to disable stack randomization?


Post new topic   General Reply to Topic (not reply to a specific post)    Forums Home -> User RSS
Next:  [gentoo-user] logrotate desn't create new empty f..  
Author Message
Shaochun Wang
External


Since: May 23, 2006
Posts: 36



PostPosted: Fri Aug 03, 2007 3:20 pm    Post subject: [gentoo-user] How to disable stack randomization?
Archived from groups: linux>gentoo>user (more info?)

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.DeleteThis@ios.ac.cn>

Jabber: fungusw.DeleteThis@jabber.org
--
gentoo-user.DeleteThis@gentoo.org mailing list
Back to top
Ryan Sims
External


Since: Jun 30, 2006
Posts: 43



PostPosted: Fri Aug 03, 2007 8:20 pm    Post subject: Re: [gentoo-user] How to disable stack randomization? [Login to view extended thread Info.]
Archived from groups: per prev. post (more info?)

On 8/3/07, Shaochun Wang <scwang DeleteThis @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 DeleteThis @gentoo.org mailing list
Back to top
Norberto Bensa
External


Since: Jul 04, 2007
Posts: 6



PostPosted: Fri Aug 03, 2007 9:50 pm    Post subject: Re: [gentoo-user] How to disable stack randomization? [Login to view extended thread Info.]
Archived from groups: per prev. post (more info?)

Shaochun Wang wrote:
>
> Does anyone know how to disable it?

norandmaps?

--
gentoo-user.TakeThisOut@gentoo.org mailing list
Back to top
Shaochun Wang
External


Since: May 23, 2006
Posts: 36



PostPosted: Mon Aug 06, 2007 2:12 am    Post subject: Re: [gentoo-user] How to disable stack randomization? [Login to view extended thread Info.]
Archived from groups: per prev. post (more info?)

I got the way:

sysctl -w kernel.randomize_va_space=0

Disabling stack randomization is usefull for learning.

--
Shaochun Wang <scwang.RemoveThis@ios.ac.cn>

Jabber: fungusw.RemoveThis@jabber.org
--
gentoo-user.RemoveThis@gentoo.org mailing list
Back to top
Display posts from previous:   
Post new topic   General Reply to Topic (not reply to a specific post)    Forums Home -> User All times are: Eastern Time (US & Canada) (change)
Page 1 of 1

 
You can post new topics in this forum
You can reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum