lkml.org 
[lkml]   [1998]   [Jun]   [20]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
SubjectRe: How much kernel stack do we need?
On Sat, Jun 20, 1998 at 01:13:34AM +0200, Stefan Traby wrote:

> > You could experiment by initializing the stack such that only a portion
> > was used. For example, allocate 4K, allocate kernel stuff, and then set
> > the pointers such that only 1K is available for use. That would expose
> > the memory hogs quickly. That is a pure debug case, of coruse.
>
> This is IMHO an extreme bad idea. The solution without crashing:
> init: alloc stack, fill with a magic (ex.: 0xdeadbeef)
> destroy: scan for magic on stack to calculate stackspace

The code is already in the kernel; it just assumes that the kernel stack
is being cleared with zero before use.

Ralf

-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.rutgers.edu

\
 
 \ /
  Last update: 2005-03-22 13:43    [W:0.076 / U:0.144 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site