[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <4d4d2fa1-a603-a097-95ac-59e98cba795a@suse.de>
Date: Thu, 27 Jul 2017 10:43:09 +0200
From: Hannes Reinecke <hare@...e.de>
To: Johannes Thumshirn <jthumshirn@...e.de>,
"Martin K . Petersen" <martin.petersen@...cle.com>
Cc: Jason L Tibbitts III <tibbs@...h.uh.edu>,
Doug Gilbert <dgilbert@...erlog.com>,
Linux Kernel Mailinglist <linux-kernel@...r.kernel.org>,
Linux SCSI Mailinglist <linux-scsi@...r.kernel.org>,
stable@...r.kernel.org
Subject: Re: [PATCH] scsi: sg: only check for dxfer_len greater than 256M
On 07/27/2017 09:11 AM, Johannes Thumshirn wrote:
> Don't make any assumptions on the sg_io_hdr_t::dxfer_direction or the
> sg_io_hdr_t::dxferp in order to determine if it is a valid request. The
> only way we can check for bad requests is by checking if the length exceeds
> 256M.
>
> Signed-off-by: Johannes Thumshirn <jthumshirn@...e.de>
> Fixes: 28676d869bbb (scsi: sg: check for valid direction before starting the
> request)
> Reported-by: Jason L Tibbitts III <tibbs@...h.uh.edu>
> Tested-by: Jason L Tibbitts III <tibbs@...h.uh.edu>
> Suggested-by: Doug Gilbert <dgilbert@...erlog.com>
> Cc: Doug Gilbert <dgilbert@...erlog.com>
> Cc: <stable@...r.kernel.org>
> ---
> drivers/scsi/sg.c | 31 +------------------------------
> 1 file changed, 1 insertion(+), 30 deletions(-)
>
Reviewed-by: Hannes Reinecke <hare@...e.com>
Cheers,
Hannes
--
Dr. Hannes Reinecke Teamlead Storage & Networking
hare@...e.de +49 911 74053 688
SUSE LINUX GmbH, Maxfeldstr. 5, 90409 Nürnberg
GF: F. Imendörffer, J. Smithard, J. Guild, D. Upmanyu, G. Norton
HRB 21284 (AG Nürnberg)
Powered by blists - more mailing lists