public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
* Re: Stack size
  2003-10-12 12:35 Stack size Breno
@ 2003-09-12 17:41 ` Chris Wright
  2003-09-12 18:23   ` Breno
  2003-09-13  0:19   ` Matias Alejo Garcia
  2003-09-12 19:18 ` Robert Love
  2003-09-13 10:33 ` Alex Riesen
  2 siblings, 2 replies; 8+ messages in thread
From: Chris Wright @ 2003-09-12 17:41 UTC (permalink / raw)
  To: Breno; +Cc: Kernel List

[Hey, any chance you could join us in September? ;-) "Date:   Sun, 12 Oct
2003 13:35:33 +0100"]

* Breno (brenosp@brasilsec.com.br) wrote:
> What happen when stack increase more than 8mb ?

Memory corruption.
-chris
-- 
Linux Security Modules     http://lsm.immunix.org     http://lsm.bkbits.net

^ permalink raw reply	[flat|nested] 8+ messages in thread

* Re: Stack size
  2003-09-12 17:41 ` Chris Wright
@ 2003-09-12 18:23   ` Breno
  2003-09-12 19:11     ` Chris Wright
  2003-09-13  0:19   ` Matias Alejo Garcia
  1 sibling, 1 reply; 8+ messages in thread
From: Breno @ 2003-09-12 18:23 UTC (permalink / raw)
  To: Chris Wright; +Cc: Kernel List

Is there a test in kernel to know how much memory is consumed by stack ?

Breno
----- Original Message -----
From: "Chris Wright" <chrisw@osdl.org>
To: "Breno" <brenosp@brasilsec.com.br>
Cc: "Kernel List" <linux-kernel@vger.kernel.org>
Sent: Friday, September 12, 2003 2:41 PM
Subject: Re: Stack size


> [Hey, any chance you could join us in September? ;-) "Date:   Sun, 12 Oct
> 2003 13:35:33 +0100"]
>
> * Breno (brenosp@brasilsec.com.br) wrote:
> > What happen when stack increase more than 8mb ?
>
> Memory corruption.
> -chris
> --
> Linux Security Modules     http://lsm.immunix.org
http://lsm.bkbits.net
> -
> To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
> the body of a message to majordomo@vger.kernel.org
> More majordomo info at  http://vger.kernel.org/majordomo-info.html
> Please read the FAQ at  http://www.tux.org/lkml/


^ permalink raw reply	[flat|nested] 8+ messages in thread

* Re: Stack size
  2003-09-12 18:23   ` Breno
@ 2003-09-12 19:11     ` Chris Wright
  2003-09-12 21:37       ` Jörn Engel
  0 siblings, 1 reply; 8+ messages in thread
From: Chris Wright @ 2003-09-12 19:11 UTC (permalink / raw)
  To: Breno; +Cc: Kernel List

* Breno (brenosp@brasilsec.com.br) wrote:
> Is there a test in kernel to know how much memory is consumed by stack ?

Have you looked at the CONFIG_DEBUG_STACKOVERFLOW code?
thanks,
-chris
-- 
Linux Security Modules     http://lsm.immunix.org     http://lsm.bkbits.net

^ permalink raw reply	[flat|nested] 8+ messages in thread

* Re: Stack size
  2003-10-12 12:35 Stack size Breno
  2003-09-12 17:41 ` Chris Wright
@ 2003-09-12 19:18 ` Robert Love
  2003-09-13 10:33 ` Alex Riesen
  2 siblings, 0 replies; 8+ messages in thread
From: Robert Love @ 2003-09-12 19:18 UTC (permalink / raw)
  To: Breno; +Cc: Kernel List

On Sun, 2003-10-12 at 08:35, Breno wrote:
> What happen when stack increase more than 8mb ?

I think you mean 8KB.

	Robert Love



^ permalink raw reply	[flat|nested] 8+ messages in thread

* Re: Stack size
  2003-09-12 19:11     ` Chris Wright
@ 2003-09-12 21:37       ` Jörn Engel
  0 siblings, 0 replies; 8+ messages in thread
From: Jörn Engel @ 2003-09-12 21:37 UTC (permalink / raw)
  To: Chris Wright; +Cc: Breno, Kernel List

On Fri, 12 September 2003 12:11:19 -0700, Chris Wright wrote:
> 
> * Breno (brenosp@brasilsec.com.br) wrote:
> > Is there a test in kernel to know how much memory is consumed by stack ?
> 
> Have you looked at the CONFIG_DEBUG_STACKOVERFLOW code?

Just a band aid, not more.  If you want to be sure, poison the stack
on fork and check the poison on exit.

Jörn

-- 
Do not stop an army on its way home.
-- Sun Tzu

^ permalink raw reply	[flat|nested] 8+ messages in thread

* Re: Stack size
  2003-09-12 17:41 ` Chris Wright
  2003-09-12 18:23   ` Breno
@ 2003-09-13  0:19   ` Matias Alejo Garcia
  1 sibling, 0 replies; 8+ messages in thread
From: Matias Alejo Garcia @ 2003-09-13  0:19 UTC (permalink / raw)
  To: Kernel; +Cc: brenosp


On Sun, 2003-10-12 at 08:35, Breno wrote:
       ^^^^^^^^^^^^^^^^^^^^   
On Fri, 2003-09-12 at 13:41, Chris Wright wrote:
> [Hey, any chance you could join us in September? ;-) "Date:   Sun, 12 Oct
> 2003 13:35:33 +0100"]

Breno: 

Carpe diem! Live the present!

-- 
matías <-> http://matiu.com.ar

^ permalink raw reply	[flat|nested] 8+ messages in thread

* Re: Stack size
  2003-10-12 12:35 Stack size Breno
  2003-09-12 17:41 ` Chris Wright
  2003-09-12 19:18 ` Robert Love
@ 2003-09-13 10:33 ` Alex Riesen
  2 siblings, 0 replies; 8+ messages in thread
From: Alex Riesen @ 2003-09-13 10:33 UTC (permalink / raw)
  To: Breno; +Cc: Kernel List

Breno, Sun, Oct 12, 2003 14:35:33 +0200:
> What happen when stack increase more than 8mb ?

in the kernel or in a user program?

In user program - probably nothing.


^ permalink raw reply	[flat|nested] 8+ messages in thread

* Stack size
@ 2003-10-12 12:35 Breno
  2003-09-12 17:41 ` Chris Wright
                   ` (2 more replies)
  0 siblings, 3 replies; 8+ messages in thread
From: Breno @ 2003-10-12 12:35 UTC (permalink / raw)
  To: Kernel List

What happen when stack increase more than 8mb ?

att
Breno


^ permalink raw reply	[flat|nested] 8+ messages in thread

end of thread, other threads:[~2003-09-13 10:33 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2003-10-12 12:35 Stack size Breno
2003-09-12 17:41 ` Chris Wright
2003-09-12 18:23   ` Breno
2003-09-12 19:11     ` Chris Wright
2003-09-12 21:37       ` Jörn Engel
2003-09-13  0:19   ` Matias Alejo Garcia
2003-09-12 19:18 ` Robert Love
2003-09-13 10:33 ` Alex Riesen

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox