All of lore.kernel.org
 help / color / mirror / Atom feed
From: Muli Ben-Yehuda <mulix@mulix.org>
To: Libor Vanek <libor@conet.cz>
Cc: Andi Kleen <ak@muc.de>,
	linux-kernel@vger.kernel.org,
	viro@parcelfarce.linux.theplanet.co.uk
Subject: Re: 2.6.0-mm1 - kernel panic (VFS bug?)
Date: Tue, 6 Jan 2004 15:19:59 +0200	[thread overview]
Message-ID: <20040106131958.GB4268@actcom.co.il> (raw)
In-Reply-To: <3FFAAB91.6090207@conet.cz>

[-- Attachment #1: Type: text/plain, Size: 675 bytes --]

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 #2: Digital signature --]
[-- Type: application/pgp-signature, Size: 189 bytes --]

  parent reply	other threads:[~2004-01-06 13:20 UTC|newest]

Thread overview: 11+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
     [not found] <1aQy3-2y1-7@gated-at.bofh.it>
2004-01-06  5:49 ` 2.6.0-mm1 - kernel panic (VFS bug?) Andi Kleen
2004-01-06 12:35   ` Libor Vanek
2004-01-06 12:39     ` Andi Kleen
2004-01-06 12:43       ` Libor Vanek
2004-01-06 13:19     ` Muli Ben-Yehuda [this message]
2004-01-06  3:52 Libor Vanek
2004-01-06  4:09 ` Nick Piggin
2004-01-06  4:12 ` Valdis.Kletnieks
2004-01-06  4:24   ` Libor Vanek
2004-01-06  4:35     ` Valdis.Kletnieks
2004-01-06  4:30 ` viro

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20040106131958.GB4268@actcom.co.il \
    --to=mulix@mulix.org \
    --cc=ak@muc.de \
    --cc=libor@conet.cz \
    --cc=linux-kernel@vger.kernel.org \
    --cc=viro@parcelfarce.linux.theplanet.co.uk \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.