lkml.org 
[lkml]   [1998]   [Jun]   [20]   [last100]   RSS Feed
Views: [more markup]  [less markup]  [headers]  [forward] 
 
Messages in this thread
/
DateSat, 20 Jun 1998 09:42:38 +0200
From ralf@uni-kobl ...
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 12:43    [from the cache]
©2003-2008