(fix - thanks to Manfred) Re: 2.3.41: kmalloc: Size (33554432) too large.

From: Tigran Aivazian (tigran@sco.COM)
Date: Mon Jan 31 2000 - 04:00:01 EST


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/



This archive was generated by hypermail 2b29 : Mon Jan 31 2000 - 21:00:27 EST