Skip to content

scsi: Fix transfer length 0 for 6-byte r/w commands

Akinobu Mita linux-scsi 1 version In review

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest7 patches 1 replyIn review

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/7hpsa: fix transfer length 0 for 6-byte r/w commandsdrivers/scsi/hpsa.c+2 -00 replies
2/73w-xxxx: fix transfer length 0 for 6-byte r/w commandsdrivers/scsi/3w-xxxx.c+2 -00 replies
3/73w-9xxx: fix transfer length 0 for 6-byte r/w commandsdrivers/scsi/3w-9xxx.c+4 -10 replies
4/7scsi: trace: fix transfer length 0 for 6-byte r/w commandsdrivers/scsi/scsi_trace.c+2 -00 replies
5/7staging: rts5208: fix transfer length 0 for 6-byte r/w commandsdrivers/staging/rts5208/rtsx_scsi.c+6 -20 replies
6/7megaraid_mbox: fix transfer length 0 for 6-byte r/w commandsdrivers/scsi/megaraid/megaraid_mbox.c+2 -00 replies
7/7megaraid: fix transfer length 0 for 6-byte r/w commandsdrivers/scsi/megaraid.c+2 -00 replies

Reviews trailers per patch

No Reviewed-by, Acked-by or Tested-by trailers for v1 yet.

Read the v1 thread

Cover letter [PATCH 0/7] scsi: Fix transfer length 0 for 6-byte r/w commands

For 6-byte r/w commands, transfer length 0 means 256 blocks of data, not 0 block.

But some drivers consider transfer length 0 as 0 block. Fortunately, the scsi disk driver sets up 10-byte r/w commands for 256 blocks of data instead of 6-byte r/w commands. So this could be an issue when SCSI commands are issued by SG_IO ioctl.

Akinobu Mita (7):
hpsa: fix transfer length 0 for 6-byte r/w commands 3w-xxxx: fix transfer length 0 for 6-byte r/w commands 3w-9xxx: fix transfer length 0 for 6-byte r/w commands
scsi: trace: fix transfer length 0 for 6-byte r/w commands
staging: rts5208: fix transfer length 0 for 6-byte r/w commands
megaraid_mbox: fix transfer length 0 for 6-byte r/w commands
megaraid: fix transfer length 0 for 6-byte r/w commands

 drivers/scsi/3w-9xxx.c                | 5 ++++-
 drivers/scsi/3w-xxxx.c                | 2 ++
 drivers/scsi/hpsa.c                   | 2 ++
 drivers/scsi/megaraid.c               | 2 ++
 drivers/scsi/megaraid/megaraid_mbox.c | 2 ++
 drivers/scsi/scsi_trace.c             | 2 ++
 drivers/staging/rts5208/rtsx_scsi.c   | 8 ++++++--
 7 files changed, 20 insertions(+), 3 deletions(-)
Cc Don Brace <[email protected]>
Cc Adam Radford <[email protected]>
Cc Kashyap Desai <[email protected]>
Cc Sumit Saxena <[email protected]>
Cc Uday Lingala <[email protected]>
Cc "James E.J. Bottomley" <[email protected]>
Signature · 1 line
1.9.1