Re: [RESEND PATCH] scsi: target/iblock: Fix overrun in WRITE SAME emulation

2019-07-03 Thread Roman Bolshakov
On Wed, Jul 03, 2019 at 12:40:29PM +0900, Michael Christie wrote: > On 07/03/2019 04:16 AM, Roman Bolshakov wrote: > > WRITE SAME corrupts data on the block device behind iblock if the > > command is emulated. The emulation code issues (M - 1) * N times more > > bios than requested, where M is the

Re: [RESEND PATCH] scsi: target/iblock: Fix overrun in WRITE SAME emulation

2019-07-02 Thread Michael Christie
On 07/03/2019 04:16 AM, Roman Bolshakov wrote: > WRITE SAME corrupts data on the block device behind iblock if the > command is emulated. The emulation code issues (M - 1) * N times more > bios than requested, where M is the number of 512 blocks per real block > size and N is the NUMBER OF LOGICAL

Re: [RESEND PATCH] scsi: target/iblock: Fix overrun in WRITE SAME emulation

2019-07-02 Thread Martin K. Petersen
Roman, > WRITE SAME corrupts data on the block device behind iblock if the > command is emulated. The emulation code issues (M - 1) * N times more > bios than requested, where M is the number of 512 blocks per real > block size and N is the NUMBER OF LOGICAL BLOCKS specified in WRITE > SAME comm

[RESEND PATCH] scsi: target/iblock: Fix overrun in WRITE SAME emulation

2019-07-02 Thread Roman Bolshakov
WRITE SAME corrupts data on the block device behind iblock if the command is emulated. The emulation code issues (M - 1) * N times more bios than requested, where M is the number of 512 blocks per real block size and N is the NUMBER OF LOGICAL BLOCKS specified in WRITE SAME command. So, for a devic

Re: [PATCH] scsi: target/iblock: Fix overrun in WRITE SAME emulation

2019-07-02 Thread Bart Van Assche
On 7/1/19 10:12 AM, Roman Bolshakov wrote: WRITE SAME corrupts data on the block device behind iblock if the command is emulated. The emulation code issues (M - 1) * N times more bios than requested, where M is the number of 512 blocks per real block size and N is the NUMBER OF LOGICAL BLOCKS spe

[PATCH] scsi: target/iblock: Fix overrun in WRITE SAME emulation

2019-07-01 Thread Roman Bolshakov
WRITE SAME corrupts data on the block device behind iblock if the command is emulated. The emulation code issues (M - 1) * N times more bios than requested, where M is the number of 512 blocks per real block size and N is the NUMBER OF LOGICAL BLOCKS specified in WRITE SAME command. So, for a devic