logo       

Re: file data corruption?: msg#00202

Subject: Re: file data corruption?
From: hooanon05@xxxxxxxxxxx
Subject: Re: [Iscsitarget-devel] file data corruption? 
Date: Sat, 16 Jul 2005 12:57:33 +0900

> > open-iscsi code, I believe the problem is open-iscsi not respecting the
> > BufferOffset of the DataIn-PDUs. Unless I'm completely mistaken, the
> > offset is stored in ctask->data_offset when reading the DataIn-header,
> > but is not taken into account when copying the data from the skb to the
> > buffer.
> 
> so you are pointing out skb_copy_bits() call in iscsi_ctask_copy(),
> right?

As Arne pointed out, I think that open-iscsi cannot handle
ctask->data_offset. This bug leads to data corruption.

I've attached a patch.

Attachment: multiple-pdus.diff
Description: Text document

<Prev in Thread] Current Thread [Next in Thread>