Subject: Re: Variable limit in kernel syscalls
To: Bill Sommerfeld <sommerfeld@orchard.arlington.ma.us>
From: Espen Jorde <espenjo@unik.no>
List: tech-kern
Date: 10/18/2000 22:17:28
On Wed, 18 Oct 2000, Bill Sommerfeld wrote:

> It's hard to debug code sight-unseen -- any number of errors in your
> code could cause this..

Its 3000 lines of code:-)

> 
> If you haven't done kernel programming before, you should be aware
> that the per-process kernel stack is typically very small (you didn't
> specify what platform, but it's typically only a VM page or two; you
> need to get out of the habit of declaring char buf[4096] on the
> stack).  If you use too much stack space, you may overwrite the stack
> of another thread or other kernel memory, leading to undefined (and
> usually bad) behavior.

Sorry about not specifying enough. i686, page = 4096. 

It was just something like this I was wondering about. I'll just have to
try to reduce the number of local variables.

I'll just keep debugging:-)

-- 
:-)EspeN

*********** Espen Jorde ****************************************************
URL:                         Telefon:     UNIK:       Hjemme:     Mobil: 
http://www.unik.no/~espenjo             6484 4772   2230 5858   9134 5072