Re: test8-pre2 fs corruption?

From: Alexander Viro (viro@math.psu.edu)
Date: Mon Sep 04 2000 - 11:22:57 EST


On Mon, 4 Sep 2000, Bartlomiej Zolnierkiewicz wrote:

> > > > showed up here. Since it was only one list (BUGTRAQ) and I'm still at
> > >
> > > weird. currently my pine crashes on me when i close my bugtraq
> > > folder.
> >
> > Ohh, so I'm not the only one having trouble reading bugtraq
> > lately? ;)
> >
> > I'm getting that same problem on 2.4.0-test8-pre1 (+vmpatch), btw.
> >
>
> And vanilla 2.4.0-t8-p1, ugh.

There is a known <cough> problem in pine. See below:

From: Jakub Bogusz <qboosh@PRIORIS.MINI.PW.EDU.PL>
Subject: Re: UW c-client library vulnerability
Date: Sat, 2 Sep 2000 22:41:17 +0200
Sender: Bugtraq List <BUGTRAQ@SECURITYFOCUS.COM>
Message-ID: <20000902224117.A26538@satan>
References: <20000901195322.A26175@verso.st.jyu.fi>
Reply-To: Jakub Bogusz <qboosh@PRIORIS.MINI.PW.EDU.PL>
Mime-Version: 1.0
Content-Type: text/plain; charset=iso-8859-1
Content-Transfer-Encoding: 8bit
Approved-BY: aleph1@SECURITYFOCUS.COM
Delivered-To: bugtraq@lists.securityfocus.com
Delivered-To: bugtraq@securityfocus.com
Content-Disposition: inline
User-Agent: Mutt/1.2.4i
X-To: Juhapekka Tolvanen <juhtolv@ST.JYU.FI>
To: BUGTRAQ@SECURITYFOCUS.COM
In-Reply-To: <20000901195322.A26175@verso.st.jyu.fi>; from
    juhtolv@ST.JYU.FI on Fri, Sep 01, 2000 at 07:53:22PM +0300

On Fri, Sep 01, 2000 at 07:53:22PM +0300, Juhapekka Tolvanen wrote:
> It seems, that c-client libraries by University of Washington have
> some bug(s), that makes some programs that depend upon those libraries
> go crazy. AFAIK affected programs include at least Pine (read "pain"),
> ipop3d and IMAPD. And those programs and libraries are commonly used in
> Unixes. I don't know, if any patch, fix, work-around etc. exist.
>
> * * *
>
> Problem was caused by my X-Keywords-header, that serves as so called spook line
> (Hello, NSA! :-) ):
>
> X-Keywords: kettutytöt, Sanna Sillanpää, IKL, Jammu Siltavuori, ryssä, somali,
> lesbo, homo, lesbian, anarchism, nazi, communism, CIA, bomb, nuclear, Semtex,
> satan, traitor, pedophile

[...]

> I've been fighting this problem all day too. Pine blows up when you try
> to save the INBOX back out with any changes. (I'm using fetchmail and
> plain vanilla mail spool files.) It was driving me nuts. Thanks for
> posting. (I saved a copy of my mailbox and will pick through it with a
> fine-tooth comb later.)

pine crashes with "header size inconsistant" during saving mailbox if any
message contains X-Keywords line split in 2 or more lines...
Your post (maybe processed by MTA) contained 2-line X-Keywords so my
pine crashed... and I could find why. (and had finally motivation to
configure Mutt ;))

X-Keywords is processed in 2 functions:
mail_filter() (in imap/src/c-client/mail.c) filters out X-Keywords line
and seems to handle multi-line keywords correctly
unix_parse() (in imap/src/osdep/unix/unix.c) probably doesn't handle
multi-line keywords
Different results (different header sizes) causes pine crash.

The same may apply to X-UID, X-Status and Status header (I haven't test,
so I'm not sure).

imap uses the same c-client library, so the same condition may cause
imap crash.

--
Jakub Bogusz
http://prioris.mini.pw.edu.pl/~qboosh/

- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org Please read the FAQ at http://www.tux.org/lkml/



This archive was generated by hypermail 2b29 : Thu Sep 07 2000 - 21:00:18 EST