From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753783AbdCHQP4 (ORCPT ); Wed, 8 Mar 2017 11:15:56 -0500 Received: from mail-qk0-f169.google.com ([209.85.220.169]:33345 "EHLO mail-qk0-f169.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752157AbdCHQPy (ORCPT ); Wed, 8 Mar 2017 11:15:54 -0500 From: Kashyap Desai References: <20170308151113.GB27450@infradead.org> <1488989079.2813.1.camel@sandisk.com> In-Reply-To: <1488989079.2813.1.camel@sandisk.com> MIME-Version: 1.0 X-Mailer: Microsoft Outlook 14.0 Thread-Index: AQHqyi2z261OWXWykCAwms8keM8sWgI2aaMXAa7Vrb0CF65VUaEq0ZwQ Date: Wed, 8 Mar 2017 21:45:51 +0530 Message-ID: <2eaa0bc260592a1ab8fa5184261091c0@mail.gmail.com> Subject: RE: out of range LBA using sg_raw To: Bart Van Assche , hch@infradead.org Cc: linux-scsi@vger.kernel.org, linux-kernel@vger.kernel.org Content-Type: text/plain; charset=UTF-8 Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org > -----Original Message----- > From: Bart Van Assche [mailto:Bart.VanAssche@sandisk.com] > Sent: Wednesday, March 08, 2017 9:35 PM > To: hch@infradead.org; kashyap.desai@broadcom.com > Cc: linux-scsi@vger.kernel.org; linux-kernel@vger.kernel.org > Subject: Re: out of range LBA using sg_raw > > On Wed, 2017-03-08 at 21:29 +0530, Kashyap Desai wrote: > > Also one more fault I can generate using below sg_raw command - > > > > "sg_raw -r 32k /dev/sdx 28 00 01 4f ff ff 00 00 08 00" > > > > Provide more scsi data length compare to actual SG buffer. Do you > > suggest such SG_IO interface vulnerability is good to be captured in driver. > > That's not a vulnerability of the SG I/O interface. A SCSI device has to set the > residual count correctly if the SCSI data length does not match the size of the > data buffer. Thanks Bart. I will pass this information to Broadcom firmware dev. May be a Tx/Rx (DMA) related code in MR (also for Fusion IT HBA) cannot handle due to some sanity checks are not passed. > > Bart.