Messages in this thread | | | Date | Mon, 19 May 2008 22:10:48 -0400 | From | Jeff Dike <> | Subject | Re: [PATCH, RFC] Char dev BKL pushdown v2 |
| |
On Mon, May 19, 2008 at 04:56:24PM -0600, Jonathan Corbet wrote: > ioctl() will not be called on a given file descriptor before open() is > done, no. If there are other file descriptors open, though, somebody > can be calling ioctl() on them while the open() for the new one is > executing.
There's the case where one thread is calling ioctl on the new descriptor before open (in other thread) has returned (it's malicious and trying to oops you, it's accidentally trying to operate on a closed descriptor, etc). It might hit the window between the descripor being installed and open returning.
Jeff
-- Work email - jdike at linux dot intel dot com
| |