{"push_id":1138783349,"size":2,"distinct_size":2,"ref":"refs/heads/real","head":"98eba672e536d14d8a2f549f73daa2417dd8f921","before":"650783b72a5e86f555141aa70b219638d45245e1","commits":[{"sha":"c4471a48763714c612141add8a398a278a52bdcd","author":{"name":"robcore","email":"a3b05a675e90e628f2d9df6520db16da9bff1bff@gmail.com"},"message":"From bcf756aadc3a7b292eb8a29f9bc3b3cad27fce2c Mon Sep 17 00:00:00 2001\nFrom: \"Rafael J. Wysocki\" <rjw@sisk.pl>\nDate: Mon, 21 May 2012 21:20:48 +0200\nSubject: [PATCH 0183/6902] epoll: Fix user space breakage related to\n EPOLLWAKEUP\n\nCommit 4d7e30d (epoll: Add a flag, EPOLLWAKEUP, to prevent\nsuspend while epoll events are ready) caused some applications to\nmalfunction, because they set the bit corresponding to the new\nEPOLLWAKEUP flag in their eventpoll flags and they don't have the\nnew CAP_EPOLLWAKEUP capability.\n\nTo prevent that from happening, change epoll_ctl() to clear\nEPOLLWAKEUP in epds.events if the caller doesn't have the\nCAP_EPOLLWAKEUP capability instead of failing and returning an\nerror code, which allows the affected applications to function\nnormally.\n\nReported-and-tested-by: Jiri Slaby <jslaby@suse.cz>\nSigned-off-by: Rafael J. Wysocki <rjw@sisk.pl>\n---\n fs/eventpoll.c | 2 +-\n 1 file changed, 1 insertion(+), 1 deletion(-)\n\ndiff --git a/fs/eventpoll.c b/fs/eventpoll.c\nindex 2cf0f21..079d1be 100644\n--- a/fs/eventpoll.c\n+++ b/fs/eventpoll.c\n@@ -1711,7 +1711,7 @@ SYSCALL_DEFINE4(epoll_ctl, int, epfd, int, op, int, fd,\n\n \t/* Check if EPOLLWAKEUP is allowed */\n \tif ((epds.events & EPOLLWAKEUP) && !capable(CAP_EPOLLWAKEUP))\n-\t\tgoto error_tgt_fput;\n+\t\tepds.events &= ~EPOLLWAKEUP;\n\n \t/*\n \t * We have to check that the file structure underneath the file descriptor\n--\n2.8.1","distinct":true,"url":"https://api.github.com/repos/robcore/Hulk-Kernel-V2/commits/c4471a48763714c612141add8a398a278a52bdcd"},{"sha":"98eba672e536d14d8a2f549f73daa2417dd8f921","author":{"name":"robcore","email":"a3b05a675e90e628f2d9df6520db16da9bff1bff@gmail.com"},"message":"more freezable blocking updates","distinct":true,"url":"https://api.github.com/repos/robcore/Hulk-Kernel-V2/commits/98eba672e536d14d8a2f549f73daa2417dd8f921"}]}
{"actor":{"display_login":"robcore"}}