Skip to content

Commit

Permalink
fs: eventpoll: prevent all wakeups by eventpoll
Browse files Browse the repository at this point in the history
Signed-off-by: Samuel Pascua <[email protected]>
  • Loading branch information
idkwhoiam322 authored and ananjaser1211 committed Mar 21, 2021
1 parent 1e9240f commit 2524006
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions fs/eventpoll.c
Original file line number Diff line number Diff line change
Expand Up @@ -1865,8 +1865,7 @@ SYSCALL_DEFINE4(epoll_ctl, int, epfd, int, op, int, fd,
goto error_tgt_fput;

/* Check if EPOLLWAKEUP is allowed */
if (ep_op_has_event(op))
ep_take_care_of_epollwakeup(&epds);
epds.events &= ~EPOLLWAKEUP;

/*
* We have to check that the file structure underneath the file descriptor
Expand Down

0 comments on commit 2524006

Please sign in to comment.