do_select is called by sys_select, which does not check if it's argument is in
the correct range. I propose the following change:
--- fs/select.c.orig Wed Nov 25 05:50:27 1998
+++ fs/select.c Wed Nov 25 05:52:24 1998
@@ -227,6 +227,8 @@
if (!fds)
goto out_nofds;
ret = -EINVAL;
+ if (timeout < 0)
+ goto out;
if (n < 0)
goto out;
if (n > KFDS_NR)
I do not know if it would be better just to return if timeout is < 0. What does
POSIX say ?
Philipp Rumpf
-
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/