Re: use after free in hub_events

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Tue, 9 Sep 2014, Alan Stern wrote:

> The fix is almost correct.  Take the reference when hub_events removes 
> the hub from hub_event_list, while the hub_event_lock is still held.  
> That way the get and put occur in the same subroutine, and there's 
> opportunity for them to become unbalanced.

I meant "no opportunity".

> Also, for the sake of good form, do the put calls in the opposite order 
> of the get calls.

Alan Stern

--
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




[Index of Archives]     [Linux Media]     [Linux Input]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]     [Old Linux USB Devel Archive]

  Powered by Linux