All of lore.kernel.org
 help / color / mirror / Atom feed
* File corruption with 2.4.20pre6
@ 2002-09-11 10:41 Joachim Bremer
  2002-09-11 13:46 ` Oleg Drokin
  0 siblings, 1 reply; 3+ messages in thread
From: Joachim Bremer @ 2002-09-11 10:41 UTC (permalink / raw)
  To: reiserfs-list

Hi all,

I've got an easy to produce file corruption with
linux-2.4.20pre6 and then tested with the file-write
patch on pre4. I verified the problem on 2 different machines -
1. Uniprozessor with an Athlon XP1600+
2. Dualprozessor with 2 Athlon MP2000+

On both machines exactly the same files are damaged.

To reproduce:

- unpack libtool-1.4.2.tar.gz
- switch into the resulting directory
- enter: ./configure --prefix=/usr

The generated file "libtool" is damaged. Just do an
./libtool and you will se weird errors. The same procedure
works OK on a ext2 filesystem with the same kernel.

Bye

Joachim


^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: File corruption with 2.4.20pre6
  2002-09-11 10:41 File corruption with 2.4.20pre6 Joachim Bremer
@ 2002-09-11 13:46 ` Oleg Drokin
  2002-09-11 18:36   ` Joachim Bremer
  0 siblings, 1 reply; 3+ messages in thread
From: Oleg Drokin @ 2002-09-11 13:46 UTC (permalink / raw)
  To: Joachim Bremer; +Cc: reiserfs-list

Hello!

On Wed, Sep 11, 2002 at 12:41:25PM +0200, Joachim Bremer wrote:

> I've got an easy to produce file corruption with
> linux-2.4.20pre6 and then tested with the file-write
> patch on pre4. I verified the problem on 2 different machines -
> 1. Uniprozessor with an Athlon XP1600+
> 2. Dualprozessor with 2 Athlon MP2000+

Thanks a lot for your report!

This is my stupid bug and I am starting to wonder how did it passed through
my tests...

This trivial patch below should take care of it. Can you try it? 
Thank you.


===== fs/reiserfs/file.c 1.10 vs edited =====
--- 1.10/fs/reiserfs/file.c	Tue Sep 10 16:06:23 2002
+++ edited/fs/reiserfs/file.c	Wed Sep 11 17:43:48 2002
@@ -1189,7 +1189,7 @@
 
 	already_written += write_bytes;
 	buf += write_bytes;
-	pos = *ppos += write_bytes;
+	*ppos = pos += write_bytes;
 	count -= write_bytes;
     }
 

Bye,
    Oleg

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: File corruption with 2.4.20pre6
  2002-09-11 13:46 ` Oleg Drokin
@ 2002-09-11 18:36   ` Joachim Bremer
  0 siblings, 0 replies; 3+ messages in thread
From: Joachim Bremer @ 2002-09-11 18:36 UTC (permalink / raw)
  To: Oleg Drokin; +Cc: Joachim Bremer, reiserfs-list

Hi all,

> Hello!
> 
> On Wed, Sep 11, 2002 at 12:41:25PM +0200, Joachim Bremer wrote:
> 
> > I've got an easy to produce file corruption with
> > linux-2.4.20pre6 and then tested with the file-write
> > patch on pre4. I verified the problem on 2 different machines -
> > 1. Uniprozessor with an Athlon XP1600+
> > 2. Dualprozessor with 2 Athlon MP2000+
> 
> Thanks a lot for your report!
> 
> This is my stupid bug and I am starting to wonder how did it passed through
> my tests...
> 
> This trivial patch below should take care of it. Can you try it? 
> Thank you.

pretty short test on the single CPU system showed OK. If there is a problem
on the Dual CPU (I dont't think so) I will file a report.

Thanks for the quick fix

Joachim

> 
> 
> ===== fs/reiserfs/file.c 1.10 vs edited =====
> --- 1.10/fs/reiserfs/file.c	Tue Sep 10 16:06:23 2002
> +++ edited/fs/reiserfs/file.c	Wed Sep 11 17:43:48 2002
> @@ -1189,7 +1189,7 @@
>  
>  	already_written += write_bytes;
>  	buf += write_bytes;
> -	pos = *ppos += write_bytes;
> +	*ppos = pos += write_bytes;
>  	count -= write_bytes;
>      }
>  
> 
> Bye,
>     Oleg
> 


^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2002-09-11 18:36 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2002-09-11 10:41 File corruption with 2.4.20pre6 Joachim Bremer
2002-09-11 13:46 ` Oleg Drokin
2002-09-11 18:36   ` Joachim Bremer

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.