lkml.org 
[lkml]   [2000]   [Jan]   [31]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
SubjectRe: (fix - thanks to Manfred) Re: 2.3.41: kmalloc: Size (33554432) too large.
oops, I just thought... nfds=0 can be used as a timeout facility, stand by
for a proper fix...

On Mon, 31 Jan 2000, Tigran Aivazian wrote:

> Hi,
>
> Manfred spotted it - it was nfds = 0 that would cause overflow. Dumb I was
> checking the entire range +/-2G and forgetting about the middle :)
>
> Here is the fix (return 0 like other Unices do if nfds = 0).
>
> Regards,
> ------
> Tigran A. Aivazian | http://www.sco.com
> Escalations Research Group | tel: +44-(0)1923-813796
> Santa Cruz Operation Ltd | http://www.ocston.org/~tigran
>
> --- select.c.0 Mon Jan 31 08:48:52 2000
> +++ select.c Mon Jan 31 08:51:06 2000
> @@ -391,6 +391,9 @@
> poll_table *wait_table = NULL, *wait = NULL;
> int nchunks, nleft;
>
> + if (nfds == 0)
> + return 0;
> +
> /* Do a sanity check on nfds ... */
> if (nfds > current->files->max_fds)
> return -EINVAL;
>
>
>
>


-
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/

\
 
 \ /
  Last update: 2005-03-22 13:56    [W:0.052 / U:1.896 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site