The patch titled signals: shift security_task_wait() from eligible_child() to wait_consider_task() has been added to the -mm tree. Its filename is signals-shift-security_task_wait-from-eligible_child-to-wait_consider_task.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: signals: shift security_task_wait() from eligible_child() to wait_consider_task() From: Oleg Nesterov <oleg@xxxxxxxxxx> Preparation, no functional changes. eligible_child() has a single caller, wait_consider_task(). We can move security_task_wait() out from eligible_child(), this allows us to use it for filtered wake_up(). Signed-off-by: Oleg Nesterov <oleg@xxxxxxxxxx> Cc: Ingo Molnar <mingo@xxxxxxx> Cc: Ratan Nalumasu <rnalumasu@xxxxxxxxx> Cc: Roland McGrath <roland@xxxxxxxxxx> Cc: Vitaly Mayatskikh <vmayatsk@xxxxxxxxxx> Signed-off-by: Andrew Morton <akpm@xxxxxxxxxxxxxxxxxxxx> --- kernel/exit.c | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) diff -puN kernel/exit.c~signals-shift-security_task_wait-from-eligible_child-to-wait_consider_task kernel/exit.c --- a/kernel/exit.c~signals-shift-security_task_wait-from-eligible_child-to-wait_consider_task +++ a/kernel/exit.c @@ -1108,8 +1108,6 @@ static struct pid *task_pid_type(struct static int eligible_child(struct wait_opts *wo, struct task_struct *p) { - int err; - if (wo->wo_type < PIDTYPE_MAX) { if (task_pid_type(p, wo->wo_type) != wo->wo_pid) return 0; @@ -1124,10 +1122,6 @@ static int eligible_child(struct wait_op && !(wo->wo_flags & __WALL)) return 0; - err = security_task_wait(p); - if (err) - return err; - return 1; } @@ -1488,6 +1482,7 @@ static int wait_consider_task(struct wai if (!ret) return ret; + ret = security_task_wait(p); if (unlikely(ret < 0)) { /* * If we have not yet seen any eligible child, _ Patches currently in -mm which might be from oleg@xxxxxxxxxx are linux-next.patch rework-fix-is_single_threaded.patch getrusage-fill-ru_maxrss-value.patch getrusage-fill-ru_maxrss-value-update.patch signals-shift-security_task_wait-from-eligible_child-to-wait_consider_task.patch signals-change-__wake_up_parent-to-use-filtered-wakeup.patch signals-tracehook_notify_jctl-change.patch utrace-core.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