File: drivers/usb/core/devio.c Function: proc_submiturb() This function dereference a __user pointer. Here is a proposed patch: Signed-Off-By: Philippe R
bugme-daemon@bugzilla.kernel.org wrote: > > http://bugzilla.kernel.org/show_bug.cgi?id=6617 > > Summary: drivers/usb/core/devio.c dereference userspace pointer > Kernel Version: 2.6.17-rc1 > Status: NEW > Severity: normal > Owner: greg@kroah.com > Submitter: couriousous@mandriva.org > > > File: > drivers/usb/core/devio.c > > Function: > proc_submiturb() > > This function dereference a __user pointer. > Here is a proposed patch: > > Signed-Off-By: Philippe R
Nope, not bug. Note that iso_frame_desc is an array. Ie, ((struct usbdevfs_urb __user *)arg)->iso_frame_desc is just arg + N, with N iso_frame_desc's offset inside struct usbdevfs_urb. It could perhaps be clearer to say &(..)->iso_frame_desc[0], but being as how that's the same thing, it's not a bug.
Yeah, I agree, this isn't a bug, and the patch from Andrew doesn't really make much sense as it's just the same thing.