public inbox for linux-scsi@vger.kernel.org
 help / color / mirror / Atom feed
* loading scsi_debug with data integrity hits BUG_ON
@ 2014-02-19 13:22 Akinobu Mita
  2014-02-20  1:10 ` Nicholas A. Bellinger
  0 siblings, 1 reply; 10+ messages in thread
From: Akinobu Mita @ 2014-02-19 13:22 UTC (permalink / raw)
  To: linux-scsi@vger.kernel.org, Nicholas Bellinger,
	Martin K. Petersen, Jens Axboe, Christoph Hellwig

After commit 5837c80e870b ("bio-integrity: Fix bio_integrity_verify
segment start bug"), loading scsi_debug with data integrity enabled
(for example modprobe scsi_debug dif=1 dix=1) starts hitting BUG_ON()
at bio_integrity_verify():

        BUG_ON(total > bio->bi_integrity->bip_iter.bi_size);

Because bip_iter.bi_size has already been set to zero at this point
as a result of consuming bip_iter.

I can resolve this issue by removing the BUG_ON().  But I would like
to ask whether we should preserve an alternative assert, or not
before submitting the patch that simply removing the line.

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

end of thread, other threads:[~2014-02-24 23:01 UTC | newest]

Thread overview: 10+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2014-02-19 13:22 loading scsi_debug with data integrity hits BUG_ON Akinobu Mita
2014-02-20  1:10 ` Nicholas A. Bellinger
2014-02-20 13:44   ` Akinobu Mita
2014-02-20 19:20     ` Nicholas A. Bellinger
2014-02-20 19:16   ` Martin K. Petersen
2014-02-20 19:28     ` Nicholas A. Bellinger
2014-02-21 23:56       ` Jens Axboe
2014-02-24 22:15       ` Muthu Kumar
2014-02-24 22:37         ` Jens Axboe
2014-02-24 23:01           ` Muthu Kumar

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox