[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <20100608090120.75bf7c80@lxorguk.ukuu.org.uk>
Date: Tue, 8 Jun 2010 09:01:20 +0100
From: Alan Cox <alan@...rguk.ukuu.org.uk>
To: "Masayuki Ohtake" <masa-korg@....okisemi.com>
Cc: "LKML" <linux-kernel@...r.kernel.org>,
"Andrew" <andrew.chih.howe.khor@...el.com>,
"Intel OTC" <joel.clark@...el.com>, "Wang, Qi" <qi.wang@...el.com>,
"Wang, Yong Y" <yong.y.wang@...el.com>
Subject: Re: [PATCH] Topcliff PHUB: Generate PacketHub driver
On Tue, 8 Jun 2010 14:46:31 +0900
"Masayuki Ohtake" <masa-korg@....okisemi.com> wrote:
> Hi Alan
>
> > > Remember here ioctl isn't single threaded so you may want to double check
> >
> > > some of these
> >
> > The above copy_from_user is Copy global variable to local variable.
> > Thus, We think this code has re-entrant.
> The above is not true.
> Our ioctl routine is just used under single pthread.
What if someone else chooses to open it and run multiple threads through
it. What if the code changes. What about malicious attempts to confuse
the driver ?
The fact your own current userspace does not do this does not mean it can
be ignored.
Alan
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/
Powered by blists - more mailing lists