Author: pluto Date: Wed Mar 9 22:56:27 2005 GMT
Module: SOURCES Tag: LINUX_2_6
---- Log message:
- adjusted for 2.6.10.
---- Files affected:
SOURCES:
linux-2.6-epoll-overflow.patch (1.1.2.1 -> 1.1.2.2)
---- Diffs:
================================================================
Index: SOURCES/linux-2.6-epoll-overflow.patch
diff -u SOURCES/linux-2.6-epoll-overflow.patch:1.1.2.1
SOURCES/linux-2.6-epoll-overflow.patch:1.1.2.2
--- SOURCES/linux-2.6-epoll-overflow.patch:1.1.2.1 Wed Mar 9 23:46:15 2005
+++ SOURCES/linux-2.6-epoll-overflow.patch Wed Mar 9 23:56:22 2005
@@ -1,23 +1,3 @@
-diff -Naru a/fs/eventpoll.c b/fs/eventpoll.c
---- a/fs/eventpoll.c 2005-03-09 14:43:58 -08:00
-+++ b/fs/eventpoll.c 2005-03-09 14:43:58 -08:00
-@@ -619,6 +619,7 @@
- return error;
- }
-
-+#define MAX_EVENTS (INT_MAX / sizeof(struct epoll_event))
-
- /*
- * Implement the event wait interface for the eventpoll file. It is the kernel
-@@ -635,7 +636,7 @@
- current, epfd, events, maxevents, timeout));
-
- /* The maximum number of event must be greater than zero */
-- if (maxevents <= 0)
-+ if (maxevents <= 0 || maxevents > MAX_EVENTS)
- return -EINVAL;
-
- /* Verify that the area passed by the user is writeable */
# This is a BitKeeper generated diff -Nru style patch.
#
# ChangeSet
@@ -32,3 +12,22 @@
#
# Noted by Georgi Guninski.
#
+--- linux-2.6.10/fs/eventpoll.c.orig 2004-12-24 22:34:31.000000000 +0100
++++ linux-2.6.10/fs/eventpoll.c 2005-03-09 23:53:17.995842016 +0100
+@@ -619,6 +619,7 @@
+ return error;
+ }
+
++#define MAX_EVENTS (INT_MAX / sizeof(struct epoll_event))
+
+ /*
+ * Implement the event wait interface for the eventpoll file. It is the kernel
+@@ -635,7 +636,7 @@
+ current, epfd, events, maxevents, timeout));
+
+ /* The maximum number of event must be greater than zero */
+- if (maxevents <= 0)
++ if (maxevents <= 0 || maxevents > MAX_EVENTS)
+ return -EINVAL;
+
+ /* Verify that the area passed by the user is writeable */
================================================================
---- CVS-web:
http://cvs.pld-linux.org/SOURCES/linux-2.6-epoll-overflow.patch?r1=1.1.2.1&r2=1.1.2.2&f=u
_______________________________________________
pld-cvs-commit mailing list
[email protected]
http://lists.pld-linux.org/mailman/listinfo/pld-cvs-commit