Re: [PATCH] Resolve data corruption of TCP server info fields

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Fixed up 2 small checkpatch warnings and merged into cifs-2.6.git for-next

On Thu, Oct 8, 2020 at 9:40 AM Rohith Surabattula
<rohiths.msft@xxxxxxxxx> wrote:
>
> Hi All,
>
> With the "esize" mount option, I observed data corruption and cifs
> reconnects during performance tests.
>
> TCP server info field server->total_read is modified parallely by
> demultiplex thread and decrypt offload worker thread. server->total_read
> is used in calculation to discard the remaining data of PDU which is
> not read into memory.
>
> Because of parallel modification, “server->total_read” value got
> corrupted and instead of discarding the remaining data, it discarded
> some valid data from the next PDU.
>
> server->total_read field is already updated properly during read from
> socket. So, no need to update the same field again after decryption.
>
> Regards,
> Rohith



-- 
Thanks,

Steve




[Linux USB Devel]     [Video for Linux]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]

  Powered by Linux