Subject: Re: kernel stack overflow detection
To: None <>
From: None <>
List: tech-kern
Date: 05/30/2002 09:43:14
At Thu, 30 May 2002 14:05:43 +0000 (UTC), "YAMAMOTO Takashi" wrote:
> comments?

you've given yourself an extra page, so fill it all with the magic
number.  It's possible for a stack overflow to get 'lucky' and miss
a single magic location.

Actually, while you're at it...

You might provide a more generally-useful mechanism for debugging and
system analysis:

* fill _all_ kernel stack areas _completely_ with a magic number, and

* provide a mechanism to check all of them to see how much has been

(VxWorks provides a similar facility.)  I don't know that anybody's
really looked at the actual kernel stack usage on most ports...