Re: 2.6.0-mm1 - kernel panic (VFS bug?)

From: Muli Ben-Yehuda
Date: Tue Jan 06 2004 - 08:21:39 EST


On Tue, Jan 06, 2004 at 01:35:29PM +0100, Libor Vanek wrote:

> >PATH_MAX is 4096. The i386 stack is only 6k. You already overflowed it.
> >You're lucky if your machine only panics, much worse things can happen
> >with kernel stack overflows.

> OK - what's correct implementation? Do a "char * tmp_path" and
> kmalloc it?

Generally speaking, yes. That way you get reentrancy for free and
don't use up too much kernel stack. If speed is of the utmost
importance, there are other possible solutions.

Cheers,
Muli
--
Muli Ben-Yehuda
http://www.mulix.org | http://mulix.livejournal.com/

"the nucleus of linux oscillates my world" - gccbot@#offtopic

Attachment: signature.asc
Description: Digital signature