[238] in The Cryptographic File System users list
Re: Serious bug in cfs (1.4.1 and earlier)
daemon@ATHENA.MIT.EDU (Scott Renfro)
Mon Aug 27 05:09:41 2001
From owner-cfs-users@crypto.com Mon Aug 27 09:09:41 2001
Return-Path: <owner-cfs-users@crypto.com>
Delivered-To: cfs-mtg@CHARON.mit.edu
Received: (qmail 6103 invoked from network); 27 Aug 2001 09:09:40 -0000
Received: from mx.crypto.com (207.140.168.138)
by charon.mit.edu with SMTP; 27 Aug 2001 09:09:40 -0000
Received: (from majordomo@localhost)
by MultiHostMXServer (8.9.3/8.9.x4) id EAA31553
for cfs-users-list; Mon, 27 Aug 2001 04:56:46 -0400 (EDT)
X-Authentication-Warning: mx.crypto.com: majordomo set sender to owner-cfs-users@crypto.com using -f
Received: from nsa.research.att.com (H-135-207-24-155.research.att.com [135.207.24.155])
by MultiHostMXServer (8.9.3/8.9.x4) with ESMTP id EAA26650
for <cfs-users@crypto.com>; Mon, 27 Aug 2001 04:56:44 -0400 (EDT)
Received: from mail-blue.research.att.com (mail-blue.research.att.com [135.207.30.102]) by nsa.research.att.com (8.7.3/8.7.3) with ESMTP id EAA07708 for <cfs-users@nsa.research.att.com>; Mon, 27 Aug 2001 04:56:43 -0400 (EDT)
Received: by mail-blue.research.att.com (Postfix)
id 815204CEA5; Mon, 27 Aug 2001 04:56:44 -0400 (EDT)
Delivered-To: cfs-users@research.att.com
Received: from proxy4.ba.best.com (proxy4.ba.best.com [206.184.139.15])
by mail-blue.research.att.com (Postfix) with ESMTP id ACAEE4CE62
for <cfs-users@research.att.com>; Mon, 27 Aug 2001 04:56:43 -0400 (EDT)
Received: from renfro.org (i3a421@sdn-ar-007casjosP255.dialsprint.net [63.180.75.17])
by proxy4.ba.best.com (8.9.3/8.9.2/best.out) with ESMTP id BAA16355;
Mon, 27 Aug 2001 01:54:51 -0700 (PDT)
Received: (from scott@localhost)
by renfro.org (8.11.4/8.11.4) id f7R8sXm59094;
Mon, 27 Aug 2001 01:54:33 -0700 (PDT)
(envelope-from scott)
Date: Mon, 27 Aug 2001 01:54:33 -0700
From: Scott Renfro <scott@renfro.org>
To: Martin Forssen <maf@tkrat.org>
Cc: cfs-users@research.att.com
Subject: Re: Serious bug in cfs (1.4.1 and earlier)
Message-ID: <20010827015433.B56428@bonsai.home.renfro.org>
References: <20010811203028.500213F5B6@tkrat.org>
Mime-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Content-Disposition: inline
User-Agent: Mutt/1.2.5i
In-Reply-To: <20010811203028.500213F5B6@tkrat.org>; from maf@tkrat.org on Sat, Aug 11, 2001 at 10:29:46PM +0200
Sender: owner-cfs-users@crypto.com
Precedence: bulk
Funny thing. This has been bugging me for a *long* time (I even have a
script to fix up mail files when the leading 'F' in the "^From " header
gets dropped on mail processed via procmail). It hits several times a
day for me and is, indeed, serious (causes data loss).
Anyway, I sat down tonight and decided to hunt it down. After a good
bit of thought and code review, I came to the same conclusion, wrote a
very similar patch and mail message, and as I searched Google for the
cfs-users address, came across this message. Wish I had seen this a
couple of hours ago ;-)
Anyway, I'll also forward this off to the FreeBSD ports collection for
inclusion there until an updated cfs release is available.
cheers,
--Scott
On Sat, Aug 11, 2001 at 10:29:46PM +0200, Martin Forssen wrote:
>
> I have found what I consider a relatively serious bug in cfs. This
> applies to version 1.4.1 (the latest I could find) as well as earlier
> versions (at least 1.3.3).
>
> The bug is that under some circumstances cfsd looses small appends (<8
> bytes) to files (should happen 12% of the times). This results in
> corrupted files.
>
> The problem is that the way files are padded may actually require that
> the file is truncated when new data is written to it. And currently
> there is no code for doing that. The attached patch fixes this.
>
> /MaF
--
Scott Renfro <scott@renfro.org>