Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 7 Aug 2001 12:55:20 -0700 (PDT)
From:      Julian Elischer <julian@elischer.org>
To:        "Semen A. Ustimenko" <semenu@FreeBSD.org>
Cc:        freebsd-hackers@FreeBSD.org
Subject:   Re: Kernel stack size
Message-ID:  <Pine.BSF.4.21.0108071254040.70956-100000@InterJet.elischer.org>
In-Reply-To: <Pine.BSF.4.21.0108080000170.4841-100000@default>

next in thread | previous in thread | raw e-mail | index | archive | help
the kernel stack is a VERY LIMITED resource
basically you have about 4 or 5 Kbytes per process.
if you overflow it you write over your signal information..

you should MALLOC space and use a pointer to it..


On Wed, 8 Aug 2001, Semen A. Ustimenko wrote:

> Hi!
> 
> I'm developing some code running in kernel that use a lot of stack. And it
> seems i run into stack overflow. This results in some proc structure
> related parts overwrite (particulary p->p_stats->p_timer[ITIMER_PROF]) and
> unexpected signals. (Otherwise, it usually page faults inside
> swi_net_next())
> 
> Could somebody explain how this can happen (i thought i would panic and
> say ``stack oveflow'') and how this can be avoided?
> 
> Thanks in forward!
> 
> Bye!
> 
> 
> To Unsubscribe: send mail to majordomo@FreeBSD.org
> with "unsubscribe freebsd-hackers" in the body of the message
> 


To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-hackers" in the body of the message




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?Pine.BSF.4.21.0108071254040.70956-100000>