2003-09-12 16:36:50

by Breno

[permalink] [raw]
Subject: Stack size

What happen when stack increase more than 8mb ?

att
Breno


2003-09-12 17:41:16

by Chris Wright

[permalink] [raw]
Subject: Re: Stack size

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

* Breno ([email protected]) wrote:
> What happen when stack increase more than 8mb ?

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

2003-09-12 18:22:37

by Breno

[permalink] [raw]
Subject: Re: Stack size

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

Breno
----- Original Message -----
From: "Chris Wright" <[email protected]>
To: "Breno" <[email protected]>
Cc: "Kernel List" <[email protected]>
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 ([email protected]) 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 [email protected]
> More majordomo info at http://vger.kernel.org/majordomo-info.html
> Please read the FAQ at http://www.tux.org/lkml/

2003-09-12 19:18:13

by Robert Love

[permalink] [raw]
Subject: Re: Stack size

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


2003-09-12 19:11:25

by Chris Wright

[permalink] [raw]
Subject: Re: Stack size

* Breno ([email protected]) 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

2003-09-12 21:37:44

by Jörn Engel

[permalink] [raw]
Subject: Re: Stack size

On Fri, 12 September 2003 12:11:19 -0700, Chris Wright wrote:
>
> * Breno ([email protected]) 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

2003-09-12 22:59:06

by Matias Alejo Garcia

[permalink] [raw]
Subject: Re: Stack size


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

2003-09-13 10:33:58

by Alex Riesen

[permalink] [raw]
Subject: Re: Stack size

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.