Thread (12 messages) 12 messages, 3 authors, 2017-06-07

Re: [PATCH blktests v2 3/3] sg/001: add regression test for syzcaller generated GPF in sg_read path

From: Jens Axboe <axboe@kernel.dk>
Date: 2017-05-23 14:39:56
Also in: linux-scsi

On 05/23/2017 08:25 AM, Johannes Thumshirn wrote:
On 05/23/2017 04:15 PM, Jens Axboe wrote:
quoted
Add some code to the framework that allows you to get the corresponding
SG device for a SCSI block device? Make that part of the prepare, skip
the test if the block device isn't a SCSI dev.
Well the code is already there (in patch 2/3).

I'll pack it into the prepare stage.
I tried to look up that commit:

 48ae8484e9fc ("scsi: sg: don't return bogus Sg_requests")

but that isn't in Linus' tree. Even searched for just the title, still
didn't find anything.

I'm assuming this is a bug in the sg.c driver, in which case the 2/3
prep and real test case looks fine. For generic device testing, we
should just use SG_IO and not bother with sg.c at all. The world would
be a better place if we could just get rid of sg.c...

-- 
Jens Axboe
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help