Re: out of range LBA using sg_raw

From: Christoph Hellwig
Date: Wed Mar 08 2017 - 11:01:55 EST


Hi Kashyap,

for SG_IO passthrough requests we can't validate command validity
for commands as the block layer treats them as opaque. The SCSI
device implementation needs to handle incorrect parameter to be
robust.

For your fast path bypass the megaraid driver assumes part of the
SCSI device implementation, so it will have to check for validity.