linux-scsi.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH 0/3] scsi_debug: fix data integrity support
@ 2013-04-21  9:17 Akinobu Mita
  2013-04-21  9:17 ` [PATCH 1/3] scsi_debug: fix data integrity support on highmem machine Akinobu Mita
                   ` (3 more replies)
  0 siblings, 4 replies; 10+ messages in thread
From: Akinobu Mita @ 2013-04-21  9:17 UTC (permalink / raw)
  To: linux-scsi
  Cc: Akinobu Mita, James E.J. Bottomley, Douglas Gilbert,
	Martin K. Petersen

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" <JBottomley@parallels.com>
Cc: Douglas Gilbert <dgilbert@interlog.com>
Cc: "Martin K. Petersen" <martin.petersen@oracle.com>
Cc: linux-scsi@vger.kernel.org

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(-)

-- 
1.8.1.4


^ permalink raw reply	[flat|nested] 10+ messages in thread

end of thread, other threads:[~2013-04-27  8:51 UTC | newest]

Thread overview: 10+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2013-04-21  9:17 [PATCH 0/3] scsi_debug: fix data integrity support Akinobu Mita
2013-04-21  9:17 ` [PATCH 1/3] scsi_debug: fix data integrity support on highmem machine Akinobu Mita
2013-04-25  2:13   ` Martin K. Petersen
2013-04-27  8:51     ` Akinobu Mita
2013-04-21  9:17 ` [PATCH 2/3] scsi_debug: fix NULL pointer dereference with parameters dif=0 dix=1 Akinobu Mita
2013-04-25  2:29   ` Martin K. Petersen
2013-04-27  8:37     ` Akinobu Mita
2013-04-21  9:17 ` [PATCH 3/3] scsi_debug: simplify offset calculation for dif_storep Akinobu Mita
2013-04-25  2:18   ` Martin K. Petersen
2013-04-24 23:42 ` [PATCH 0/3] scsi_debug: fix data integrity support Douglas Gilbert

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).