login
Header Space

 
 

Re: [linux-usb-devel] [2.4 patch] Port of adutux driver from 2.6 kernel to 2.4.

Score:
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]
To: Vitaliy Ivanov <vitalivanov@...>
Cc: <linux-kernel@...>, <gregkh@...>, <zaitcev@...>, Willy Tarreau <w@...>, <linux-usb-devel@...>
Date: Monday, October 15, 2007 - 1:30 pm

On Sun, 14 Oct 2007 23:45:36 +0300, "Vitaliy Ivanov" <vitalivanov@gmail.com> wrote:


At least in case of RHEL, such backports never were automatic. In any
case, RHEL 2.1 and 3 do not receive new drivers anymore. We only do
bugfixes if something comes up. Realistically speaking, 2.4 kernels
are just too old for anyone to use. So, I think it would be best for
you to think in terms of Willy's tree only.


Did you verify if this works? We use pre-swapped descriptors in 2.4.
I suspect you allocate 256 times more memory than necessary.




The above very clearly is a use-after-free, in case the device was
open across a disconnect. Solution: Use minor_table_mutex to lock
dev->open_count instead of dev->sem. There's no rule that the lock
has to live inside the same structure with members it locks.

-- Pete

-------------------------------------------------------------------------
This SF.net email is sponsored by: Splunk Inc.
Still grepping through log files to find problems?  Stop.
Now Search log events and configuration files using AJAX and a browser.
Download your FREE copy of Splunk now >> http://get.splunk.com/
_______________________________________________
linux-usb-devel@lists.sourceforge.net
To unsubscribe, use the last form field at:
https://lists.sourceforge.net/lists/listinfo/linux-usb-devel
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]

Messages in current thread:
Re: [linux-usb-devel] [2.4 patch] Port of adutux driver from..., Pete Zaitcev, (Mon Oct 15, 1:30 pm)
speck-geostationary