Messages in this thread | | | Date | Tue, 6 Jan 2004 15:19:59 +0200 | From | Muli Ben-Yehuda <> | Subject | Re: 2.6.0-mm1 - kernel panic (VFS bug?) |
| |
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
[unhandled content-type:application/pgp-signature] | |