Re: Re: [PATCH v3]USB:OHCI: BugFix:Proper handling of ed_rm_list to handle race condition between usb_kill_urb() and finish_unlinks()

2015-08-06 Thread AMAN DEEP
Dear Alan sorry for late reply. This patch has been difficult to coordinate because it affects exactly the same code as another recent fix (I really goofed when writing the 977dcfdc6031 commit). Here's my version of it, based on Greg's usb-linus branch as of about a week ago; the topmost commit

Re: [PATCH v3]USB:OHCI: BugFix:Proper handling of ed_rm_list to handle race condition between usb_kill_urb() and finish_unlinks()

2015-08-04 Thread Alan Stern
On Mon, 3 Aug 2015, Greg KH wrote: On Thu, Jul 23, 2015 at 12:50:26PM +, AMAN DEEP wrote: There is a race condition between finish_unlinks-finish_urb() function and usb_kill_urb() in ohci controller case. The finish_urb calls spin_unlock(ohci-lock) before

Re: [PATCH v3]USB:OHCI: BugFix:Proper handling of ed_rm_list to handle race condition between usb_kill_urb() and finish_unlinks()

2015-08-03 Thread Greg KH
On Thu, Jul 23, 2015 at 12:50:26PM +, AMAN DEEP wrote: There is a race condition between finish_unlinks-finish_urb() function and usb_kill_urb() in ohci controller case. The finish_urb calls spin_unlock(ohci-lock) before usb_hcd_giveback_urb() function call, then if during this

Re: Re: [PATCH v3]USB:OHCI: BugFix:Proper handling of ed_rm_list to handle race condition between usb_kill_urb() and finish_unlinks()

2015-07-23 Thread AMAN DEEP
Dear Greg Sorry for your inconvience. This patch doesn't apply to my tree, can you please refresh the patch agasint 4.2-rc3 and resend it so that I can apply it? I will resend a new patch against 4.2-rc3 version. Also, please try to fix your email client to not send base64 patches, that made

Re: [PATCH v3]USB:OHCI: BugFix:Proper handling of ed_rm_list to handle race condition between usb_kill_urb() and finish_unlinks()

2015-07-22 Thread Greg KH
On Sat, Jul 11, 2015 at 12:04:26PM +, AMAN DEEP wrote: There is a race condition between finish_unlinks-finish_urb() function and usb_kill_urb() in ohci controller case. The finish_urb calls spin_unlock(ohci-lock) before usb_hcd_giveback_urb() function call, then if during this