Re: [PATCH] Polling > 16000 FDs

From: Jamie Lokier (lkd@tantalophile.demon.co.uk)
Date: Sat Jan 08 2000 - 17:58:01 EST


Richard Henderson wrote:
> On Sat, Jan 08, 2000 at 09:56:36PM +0000, Alan Cox wrote:
> > Just cover the 1Gb poll array DoS case and it should be fine
>
> We already do
>
> err = -EINVAL;
> if (nfds > current->files->max_fds)
> goto out;

...which has been noticed as a problem for programs that duplicate the
same file descriptor with different flags.

-- Jamie

-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.rutgers.edu
Please read the FAQ at http://www.tux.org/lkml/



This archive was generated by hypermail 2b29 : Sat Jan 15 2000 - 21:00:13 EST