Re: [2.4 patch] Port of adutux driver from 2.6 kernel to 2.4.

!MAILaRCHIVE_VOTE_RePLACE
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]
To: Vitaliy Ivanov <vitalivanov@...>
Cc: Willy Tarreau <w@...>, <gregkh@...>, <linux-usb-devel@...>, <linux-kernel@...>, <zaitcev@...>
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
-
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]

Messages in current thread:
[2.4 patch] Port of adutux driver from 2.6 kernel to 2.4., Vitaliy Ivanov, (Sun Oct 14, 1:37 pm)
Re: [2.4 patch] Port of adutux driver from 2.6 kernel to 2.4., Pete Zaitcev, (Mon Oct 15, 1:30 pm)