login
Login
/
Register
Search
Forums
News
Blogs
Features
Site
Home
»
Mailing list archives
»
linux-kernel
»
2007
»
October
»
15
Re: [2.4 patch] Port of adutux driver from 2.6 kernel to 2.4.
view
thread
!MAILaRCHIVE_VOTE_RePLACE
Previous message: [
thread
] [
date
] [
author
]
Next message: [
thread
] [
date
] [
author
]
[view in full thread]
From:
Vitaliy Ivanov <vitalivanov@...>
To: Pete Zaitcev <zaitcev@...>
Cc: Willy Tarreau <w@...>, <gregkh@...>, <linux-usb-devel@...>, <linux-kernel@...>
Subject:
Re: [2.4 patch] Port of adutux driver from 2.6 kernel to 2.4.
Date: Monday, October 15, 2007 - 4:04 pm
Pete, On 10/15/07, Pete Zaitcev <zaitcev@redhat.com> wrote:
quoted text
> On Sun, 14 Oct 2007 23:45:36 +0300, "Vitaliy Ivanov" <vitalivanov@gmail.com> wrote: > > > Also IMHO the more drivers are in the tree the more users will use it. > > Once it will be merged in the mainline then it will be backported to > > enterprise kernels and would gain wide usage. > > 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. > > > + in_end_size = le16_to_cpu(dev->interrupt_in_endpoint->wMaxPacketSize); > > + out_end_size = le16_to_cpu(dev->interrupt_out_endpoint->wMaxPacketSize); > > Did you verify if this works? We use pre-swapped descriptors in 2.4. > I suspect you allocate 256 times more memory than necessary. > > > +static void adu_delete(struct adu_device *dev) > > + kfree(dev); > > > +static int adu_release_internal(struct adu_device *dev) > > + if (dev->udev == NULL) { > > + adu_delete(dev); > > > +static int adu_open(struct inode *inode, struct file *file) > > + retval = adu_release_internal(dev); > > + up(&dev->sem); > > 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.
Thanks for your notes. Will check and correct it asap. Vitaliy -
unsubscribe notice
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to
majordomo@vger.kernel.org
More majordomo info at
http://vger.kernel.org/majordomo-info.html
Please read the FAQ at
http://www.tux.org/lkml/
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.
, Willy Tarreau
, (Sun Oct 14, 2:25 pm)
Re: [2.4 patch] Port of adutux driver from 2.6 kernel to 2.4.
, Vitaliy Ivanov
, (Sun Oct 14, 4:45 pm)
Re: [2.4 patch] Port of adutux driver from 2.6 kernel to 2.4.
, Pete Zaitcev
, (Mon Oct 15, 1:30 pm)
Re: [2.4 patch] Port of adutux driver from 2.6 kernel to 2.4.
, Vitaliy Ivanov
, (Tue Oct 16, 9:48 am)
Re: [2.4 patch] Port of adutux driver from 2.6 kernel to 2.4.
, Greg KH
, (Tue Oct 16, 10:59 am)
Re: [2.4 patch] Port of adutux driver from 2.6 kernel to 2.4.
, Vitaliy Ivanov
, (Mon Oct 15, 4:04 pm)
Re: [2.4 patch] Port of adutux driver from 2.6 kernel to 2.4.
, Willy Tarreau
, (Sun Oct 14, 6:39 pm)
Re: [2.4 patch] Port of adutux driver from 2.6 kernel to 2.4.
, Vitaliy Ivanov
, (Tue Oct 16, 9:54 am)
Re: [2.4 patch] Port of adutux driver from 2.6 kernel to 2.4.
, Pete Zaitcev
, (Tue Oct 16, 1:52 pm)
Re: [2.4 patch] Port of adutux driver from 2.6 kernel to 2.4.
, Willy Tarreau
, (Tue Oct 16, 11:41 am)
Re: [2.4 patch] Port of adutux driver from 2.6 kernel to 2.4.
, Vitaliy Ivanov
, (Tue Oct 16, 2:24 pm)
Re: [2.4 patch] Port of adutux driver from 2.6 kernel to 2.4.
, Vitaliy Ivanov
, (Wed Oct 17, 2:12 pm)
Re: [2.4 patch] Port of adutux driver from 2.6 kernel to 2.4.
, Vitaliy Ivanov
, (Fri Oct 19, 11:26 am)
Re: [2.4 patch] Port of adutux driver from 2.6 kernel to 2.4.
, Pete Zaitcev
, (Fri Oct 19, 12:53 pm)
Re: [2.4 patch] Port of adutux driver from 2.6 kernel to 2.4.
, Vitaliy Ivanov
, (Fri Oct 19, 1:40 pm)
Re: [2.4 patch] Port of adutux driver from 2.6 kernel to 2.4.
, Pete Zaitcev
, (Mon Oct 22, 11:45 pm)
Re: [2.4 patch] Port of adutux driver from 2.6 kernel to 2.4.
, Willy Tarreau
, (Sun Nov 4, 10:05 am)
Re: [2.4 patch] Port of adutux driver from 2.6 kernel to 2.4.
, Vitaliy Ivanov
, (Mon Nov 5, 5:32 am)
Re: [2.4 patch] Port of adutux driver from 2.6 kernel to 2.4.
, Willy Tarreau
, (Mon Nov 5, 5:36 am)
Re: [2.4 patch] Port of adutux driver from 2.6 kernel to 2.4.
, Pete Zaitcev
, (Tue Oct 16, 1:56 pm)
Re: [2.4 patch] Port of adutux driver from 2.6 kernel to 2.4.
, Vitaliy Ivanov
, (Tue Oct 16, 2:22 pm)
Re: [2.4 patch] Port of adutux driver from 2.6 kernel to 2.4.
, Willy Tarreau
, (Tue Oct 16, 2:24 pm)
Navigation
Create content
Mailing list archives
Recent posts
Popular discussions
linux-kernel
:
Greg KH
[GIT PATCH] driver core patches against 2.6.24
debian developer
Re: Dual-Licensing Linux Kernel with GPL V2 and GPL V3
Adrian Bunk
Re: LSM conversion to static interface
git
:
linux-netdev
:
Gerrit Renker
[PATCH 26/37] dccp: Integration of dynamic feature activation - part 1 (socket set...
Jarek Poplawski
Re: [PATCH] pkt_sched: Destroy gen estimators under rtnl_lock().
Frans Pop
svc: failed to register lockdv1 RPC service (errno 97).
Linus Torvalds
Re: [GIT]: Networking
openbsd-misc
:
Colocation donated by:
Who's online
There are currently
4 users
and
929 guests
online.
Online users
ionut
garminportable
strcmp
nominalgeek
Syndicate