On Sat, May 18, 2013 at 12:14:08PM -0400, Alan Stern wrote: > On Sat, 18 May 2013, Hans de Goede wrote: > > But the sysfs descriptors file will just packs the > > rawdescriptors one behind the other, using > > usb_device->config[x].desc.wTotalLength, where as > > userspace only sees the length advertised by > > the rawdescriptors, which may be different, and when > > it is userspace will this have no idea where the next > > descriptor starts. > > > > I believe the proper way to fix this is to make the > > sysfs code deal with this the same way the usbfs code > > does (filling the holes with 0 to avoid leaking kmem), > > if people agree I can write a patch for this. > > That's okay with me. Sounds good to me as well. thanks, greg k-h -- To unsubscribe from this list: send the line "unsubscribe linux-usb" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html