Skip to content

scsi_debug: fix data integrity support

Akinobu Mita linux-scsi 1 version In review

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest3 patches 6 repliesIn review

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/3scsi_debug: fix data integrity support on highmem machinedrivers/scsi/scsi_debug.c+4 -52 replies
2/3scsi_debug: fix NULL pointer dereference with parameters dif=0 dix=1drivers/scsi/scsi_debug.c+1 -12 replies
3/3scsi_debug: simplify offset calculation for dif_storepdrivers/scsi/scsi_debug.c+7 -111 reply

Reviews trailers per patch

1 of 3 patches has a Reviewed-by or Acked-by of their own; the series has one for all of them.

PatchDouglas GilbertMartin K. Petersen
SeriesA-b
1/3
2/3A-b
3/3

Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes.

Read the v1 thread

Cover letter [PATCH 0/3] scsi_debug: fix data integrity support

When I tried testing the data integrity support in scsi_debug on x86_32, I got CONFIG_DEBUG_HIGHMEM warnings and protection errors. This was triggered due to misused kmap_atomic/kunmap_atomic.

And then, while I was testing the fix of the above issue with several combination with module parameters dix and dif, I found that doing 'modprobe scsi_debug dif=0 dix=1' causes kernel crash.

This patch set includes these fixes and cleanup which is related to data integrity support.

Cc "James E.J. Bottomley" <[email protected]>
Cc Douglas Gilbert <[email protected]>
Cc "Martin K. Petersen" <[email protected]>

Akinobu Mita (3):
scsi_debug: fix data integrity support on highmem machine
scsi_debug: fix NULL pointer dereference with parameters dif=0 dix=1
scsi_debug: simplify offset calculation for dif_storep

 drivers/scsi/scsi_debug.c | 29 ++++++++++++-----------------
 1 file changed, 12 insertions(+), 17 deletions(-)
Signature · 1 line
1.8.1.4