All of lore.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
                   ` (2 subsequent siblings)
  3 siblings, 2 replies; 10+ 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] 10+ 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; 10+ 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] 10+ 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; 10+ 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] 10+ 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
  2003-09-14 21:55 ` Exemple of code for cmd " scsi start " phil
  3 siblings, 0 replies; 10+ 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] 10+ 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; 10+ 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] 10+ 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; 10+ 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] 10+ 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
  2003-09-14 21:55 ` Exemple of code for cmd " scsi start " phil
  3 siblings, 0 replies; 10+ 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] 10+ messages in thread

* Exemple of code for cmd " scsi start "
  2003-10-12 12:35 Stack size Breno
                   ` (2 preceding siblings ...)
  2003-09-13 10:33 ` Alex Riesen
@ 2003-09-14 21:55 ` phil
  2003-09-15 16:18   ` Patrick Mansfield
  3 siblings, 1 reply; 10+ messages in thread
From: phil @ 2003-09-14 21:55 UTC (permalink / raw)
  To: linux-scsi


Hello,
I search an exemple in C for send a command to a disk, the scsi command 
  i need is a start command.
Where can i find a exemple with source code.

cdt
philipp





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

* Re: Exemple of code for cmd " scsi start "
  2003-09-14 21:55 ` Exemple of code for cmd " scsi start " phil
@ 2003-09-15 16:18   ` Patrick Mansfield
  0 siblings, 0 replies; 10+ messages in thread
From: Patrick Mansfield @ 2003-09-15 16:18 UTC (permalink / raw)
  To: phil; +Cc: linux-scsi

On Sun, Sep 14, 2003 at 11:55:38PM +0200, phil wrote:
> 
> Hello,
> I search an exemple in C for send a command to a disk, the scsi command 
>   i need is a start command.
> Where can i find a exemple with source code.

For user level code:

http://www.torque.net/sg/#Utilities:%20sg_utils%20and%20sg3_utils

Check out sg_start.c.

Kernel code - drivers/kernel/sd.c uses START_STOP, other code in sd.c and
scsi_scan.c use various SCSI commands.

-- Patrick Mansfield

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

* Stack size
@ 2003-10-12 12:35 Breno
  2003-09-12 17:41 ` Chris Wright
                   ` (3 more replies)
  0 siblings, 4 replies; 10+ 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] 10+ messages in thread

end of thread, other threads:[~2003-09-15 16:18 UTC | newest]

Thread overview: 10+ 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
2003-09-14 21:55 ` Exemple of code for cmd " scsi start " phil
2003-09-15 16:18   ` Patrick Mansfield

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.