The patch titled avoid spurious POLLIN returns in signalfd has been added to the -mm tree. Its filename is avoid-spurious-pollin-returns-in-signalfd.patch *** Remember to use Documentation/SubmitChecklist when testing your code *** See http://www.zip.com.au/~akpm/linux/patches/stuff/added-to-mm.txt to find out what to do about this ------------------------------------------------------ Subject: avoid spurious POLLIN returns in signalfd From: Davide Libenzi <davidel@xxxxxxxxxxxxxxx> The new code in kernel/signal.c does not allow fetching private signals from another task. This patch avoid spurious POLLIN returns from a signalfd poll(2) operation. Signed-off-by: Davide Libenzi <davidel@xxxxxxxxxxxxxxx> Cc: Oleg Nesterov <oleg@xxxxxxxxxx> Signed-off-by: Andrew Morton <akpm@xxxxxxxxxxxxxxxxxxxx> --- fs/signalfd.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff -puN fs/signalfd.c~avoid-spurious-pollin-returns-in-signalfd fs/signalfd.c --- a/fs/signalfd.c~avoid-spurious-pollin-returns-in-signalfd +++ a/fs/signalfd.c @@ -133,7 +133,8 @@ static unsigned int signalfd_poll(struct * the peer disconnects. */ if (signalfd_lock(ctx, &lk)) { - if (next_signal(&lk.tsk->pending, &ctx->sigmask) > 0 || + if ((lk.tsk == current && + next_signal(&lk.tsk->pending, &ctx->sigmask) > 0) || next_signal(&lk.tsk->signal->shared_pending, &ctx->sigmask) > 0) events |= POLLIN; _ Patches currently in -mm which might be from davidel@xxxxxxxxxxxxxxx are eventfd-clean-compile-when-config_eventfd=n.patch avoid-spurious-pollin-returns-in-signalfd.patch introduce-o_cloexec-take-2.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