From: James Bottomley Subject: Re: [patch 5/5] scsi: fix uaccess handling Date: Fri, 15 Dec 2006 11:36:37 -0600 Message-ID: <1166204197.2846.22.camel@mulgrave.il.steeleye.com> References: <20061026130010.GA7127@osiris.boeblingen.de.ibm.com> <20061026130452.GF7127@osiris.boeblingen.de.ibm.com> <20061028113143.GB14785@infradead.org> <20061029213922.GA8494@osiris.ibm.com> Mime-Version: 1.0 Content-Type: text/plain Content-Transfer-Encoding: 7bit Return-path: Received: from hancock.steeleye.com ([71.30.118.248]:41666 "EHLO hancock.sc.steeleye.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1753036AbWLORgz (ORCPT ); Fri, 15 Dec 2006 12:36:55 -0500 In-Reply-To: <20061029213922.GA8494@osiris.ibm.com> Sender: linux-scsi-owner@vger.kernel.org List-Id: linux-scsi@vger.kernel.org To: Heiko Carstens Cc: Christoph Hellwig , Andrew Morton , linux-kernel@vger.kernel.org, linux-scsi@vger.kernel.org On Sun, 2006-10-29 at 22:39 +0100, Heiko Carstens wrote: > > While not your fault I'd suggest to fix the __put_user abuse at the same > > time, as in the untested patch below for scsi_ioctl.c: > > Makes sense. Even though the whole SCSI_IOCTL_GET_IDLUN ioctl interface > is pretty pointless. > It supports only up to 255 different ids and luns and might return the > same 'dev_id' for two different devices... > Any user space utility that depends on this interface would do the wrong > thing (whatever that would be). So has anyone actually tested this? James