public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
From: Christoph Hellwig <hch@infradead.org>
To: Alan Cox <alan@redhat.com>
Cc: linux-kernel@vger.kernel.org
Subject: Re: Linux 2.4.20-pre4-ac2
Date: Mon, 26 Aug 2002 12:54:06 +0100	[thread overview]
Message-ID: <20020826125406.A25513@infradead.org> (raw)
In-Reply-To: <200208261035.g7QAZ4G19985@devserv.devel.redhat.com>; from alan@redhat.com on Mon, Aug 26, 2002 at 06:35:04AM -0400

On Mon, Aug 26, 2002 at 06:35:04AM -0400, Alan Cox wrote:
> o	Khttpd race fixes				(Dan Kegel)

This includes some wrong documentation updates:

+   kHTTPd is *not* currently compatible with tmpfs.  Trying to serve
+   files stored on a tmpfs partition is known to cause kernel oopses
+   as of 2.4.18.  This is due to the same problem that prevents sendfile()
+   from being usable with tmpfs.  A tmpfs patch is floating around that seems
+   to fix this, but has not been released as of 27 May 2002.
+   kHTTPD does work fine with ramfs, though.

This is _not_ a problem with tmpfs, but with khttpd.  The same problem
is also present with nay filesystem that uses the pagecache but not
generic_file_read or a non-trivial wrapper around generic_file_read, such
as smbfs, ncpff, nfs, (open-)gfs, or xfs.  This might not always mean
those filesystems don't work at all with khttpd, but at least it opens
race conditions.  khttpd uses do_generic_file_read directly instead of
using a file operation, and the problem is that do_generic_file_read
should never have been exported to allow such a layering violation.
sendfile() and the loop driver have the same issue. In 2.5 of those
only the loop issue is still existant, and I plan to fix that one and
make do_generic_file_read static.

+   There is debate about whether to remove kHTTPd from the main
+   kernel sources.  This will probably happen in the 2.5 kernel series,
+   after which khttpd will still be available as a patch.

khttpd is gone in 2.5


  reply	other threads:[~2002-08-26 11:49 UTC|newest]

Thread overview: 9+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2002-08-26 10:35 Linux 2.4.20-pre4-ac2 Alan Cox
2002-08-26 11:54 ` Christoph Hellwig [this message]
2002-08-26 15:15 ` Benjamin Herrenschmidt
2002-08-26 16:23   ` Daniel Egger
2002-08-26 20:06     ` Benjamin Herrenschmidt
2002-08-26 19:06       ` Alan Cox
2002-08-26 20:37         ` Benjamin Herrenschmidt
2002-08-26 23:01 ` Itai Nahshon
2002-09-04 17:45   ` Pete Zaitcev

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=20020826125406.A25513@infradead.org \
    --to=hch@infradead.org \
    --cc=alan@redhat.com \
    --cc=linux-kernel@vger.kernel.org \
    /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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox