Re: Kernel oops on usbhid_submit_report (updates)

2012-08-22 Thread Alan Stern
On Wed, 22 Aug 2012, Amit Uttamchandani wrote: > > One thing to look out for: Evidently usbhid_submit_report() does not > > check the HID_DISCONNECTED flag and will happily allow reports to be > > submitted after usbhid_stop() returns. This appears to be a bug. It > > could account for the b

Re: Kernel oops on usbhid_submit_report (updates)

2012-08-22 Thread Amit Uttamchandani
On Sat, Aug 18, 2012 at 08:16:12PM -0400, Alan Stern wrote: > On Sat, 18 Aug 2012, Alan Stern wrote: > > > > Looking at the output of usbmon, the kernel re-uses URB addresses. Is it > > > possible that the urb is freed while the instruction is in > > > *implement()*? > > > > In fact, the usbhid d

Re: Kernel oops on usbhid_submit_report (updates)

2012-08-18 Thread Alan Stern
On Sat, 18 Aug 2012, Alan Stern wrote: > > Looking at the output of usbmon, the kernel re-uses URB addresses. Is it > > possible that the urb is freed while the instruction is in > > *implement()*? > > In fact, the usbhid driver does not free any URBs until it is unbound > from the device. It k

Re: Kernel oops on usbhid_submit_report (updates)

2012-08-18 Thread Alan Stern
On Sat, 18 Aug 2012, Amit Uttamchandani wrote: > On Fri, Aug 17, 2012 at 10:04:24PM -0400, Alan Stern wrote: > > [snip] > > Thanks for the reply. > > > > > > > Some updates: > > > > > > After running usbmon, I realized that the paging request address is the > > > address of the urb. > > > >

Re: Kernel oops on usbhid_submit_report (updates)

2012-08-18 Thread Amit Uttamchandani
On Fri, Aug 17, 2012 at 10:04:24PM -0400, Alan Stern wrote: [snip] Thanks for the reply. > > > > Some updates: > > > > After running usbmon, I realized that the paging request address is the > > address of the urb. > > That doesn't make sense. implement() shouldn't know anything about the >

Re: Kernel oops on usbhid_submit_report (updates)

2012-08-17 Thread Alan Stern
On Sat, 18 Aug 2012, Amit wrote: > Amit writes: > > > I am getting the following kernel oops (http://paste.debian.net/182812/) > > sporadically. Kernel version is 3.2.14. > > > > Code basically does the following: > > > > ioctl(fd,HIDIOCSUSAGES, &ref_multi_u); > > ioctl(fd,HIDIOCSREPORT, &re

Re: Kernel oops on usbhid_submit_report (updates)

2012-08-17 Thread Amit
Amit writes: > I am getting the following kernel oops (http://paste.debian.net/182812/) > sporadically. Kernel version is 3.2.14. > > Code basically does the following: > > ioctl(fd,HIDIOCSUSAGES, &ref_multi_u); > ioctl(fd,HIDIOCSREPORT, &rep_info_u); > > Here are some notes: > > 1. Happen

Kernel oops on usbhid_submit_report

2012-08-08 Thread Amit
Hello, I am getting the following kernel oops (http://paste.debian.net/182812/) sporadically. Kernel version is 3.2.14. Code basically does the following: ioctl(fd,HIDIOCSUSAGES, &ref_multi_u); ioctl(fd,HIDIOCSREPORT, &rep_info_u); Here are some notes: 1. Happens in implement() function cal