On Wed, 2008-12-03 at 21:29 +0100, Kay Sievers wrote: > On Wed, Dec 3, 2008 at 20:00, James Bottomley > <James.Bottomley@xxxxxxxxxxxxxxxxxxxxx> wrote: > >> We are already in the middle of a ~400 files "struct device" bus_id > >> conversion, and only very few maintainers respond to these patches. We > >> also never got any reply to the SCSI bus_id patch we sent weeks ago. > >> :) > > > > When did you send it? Searching the scsi archives on bus_id produces no > > results, what was the subject line? > > http://git.kernel.org/?p=linux/kernel/git/gregkh/patches.git;a=blob;f=driver-core/bus_id-scsi.patch;hb=HEAD Hmm, OK ... if you want a review, over the SCSI list is best. Things like this: > --- a/drivers/scsi/scsi_ioctl.c > 182 +++ b/drivers/scsi/scsi_ioctl.c > 183 @@ -170,7 +170,8 @@ static int scsi_ioctl_get_pci(struct scs > 184 > 185 if (!dev) > 186 return -ENXIO; > 187 > - return copy_to_user(arg, dev->bus_id, sizeof(dev->bus_id))? -EFAULT: 0; > 188 + return copy_to_user(arg, > 189 > + dev_name(dev), strlen(dev_name(dev)))? -EFAULT: 0; > 190 } Give cause for concern: in the original, we know we scribble over 20 bytes of user space. With the new one we scribble over an unknown number (which could potentially be much greater than 20). That's an accident waiting to happen in userspace. James -- To unsubscribe from this list: send the line "unsubscribe linux-scsi" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html