+ epoll-fix-size-check-in-epoll_create.patch added to -mm tree

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



The patch titled
     epoll: fix size check in epoll_create()
has been added to the -mm tree.  Its filename is
     epoll-fix-size-check-in-epoll_create.patch

Before you just go and hit "reply", please:
   a) Consider who else should be cc'ed
   b) Prefer to cc a suitable mailing list as well
   c) Ideally: find the original patch on the mailing list and do a
      reply-to-all to that, adding suitable additional cc's

*** Remember to use Documentation/SubmitChecklist when testing your code ***

See http://userweb.kernel.org/~akpm/stuff/added-to-mm.txt to find
out what to do about this

The current -mm tree may be found at http://userweb.kernel.org/~akpm/mmotm/

------------------------------------------------------
Subject: epoll: fix size check in epoll_create()
From: Davide Libenzi <davidel@xxxxxxxxxxxxxxx>

Fix a size check WRT the manual pages.  This was inadvertently broken by

: commit 9fe5ad9c8cef9ad5873d8ee55d1cf00d9b607df0
: Author:     Ulrich Drepper <drepper@xxxxxxxxxx>
: AuthorDate: Wed Jul 23 21:29:43 2008 -0700
: Commit:     Linus Torvalds <torvalds@xxxxxxxxxxxxxxxxxxxx>
: CommitDate: Thu Jul 24 10:47:29 2008 -0700
: 
:     flag parameters add-on: remove epoll_create size param
    
Signed-off-by: Davide Libenzi <davidel@xxxxxxxxxxxxxxx>
Cc: <Hiroyuki.Mach@xxxxxxxxx>
Cc: rohit verma <rohit.170309@xxxxxxxxx>
Cc: Ulrich Drepper <drepper@xxxxxxxxxx>
Cc: <stable@xxxxxxxxxx>
Signed-off-by: Andrew Morton <akpm@xxxxxxxxxxxxxxxxxxxx>
---

 fs/eventpoll.c |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff -puN fs/eventpoll.c~epoll-fix-size-check-in-epoll_create fs/eventpoll.c
--- a/fs/eventpoll.c~epoll-fix-size-check-in-epoll_create
+++ a/fs/eventpoll.c
@@ -1212,7 +1212,7 @@ SYSCALL_DEFINE1(epoll_create1, int, flag
 
 SYSCALL_DEFINE1(epoll_create, int, size)
 {
-	if (size < 0)
+	if (size <= 0)
 		return -EINVAL;
 
 	return sys_epoll_create1(0);
_

Patches currently in -mm which might be from davidel@xxxxxxxxxxxxxxx are

epoll-fix-size-check-in-epoll_create.patch
linux-next.patch
poll-avoid-extra-wakeups-in-select-poll.patch

--
To unsubscribe from this list: send the line "unsubscribe mm-commits" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html

[Index of Archives]     [Kernel Newbies FAQ]     [Kernel Archive]     [IETF Annouce]     [DCCP]     [Netdev]     [Networking]     [Security]     [Bugtraq]     [Photo]     [Yosemite]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Linux SCSI]

  Powered by Linux