On Fri, May 11, 2018 at 2:46 AM Alexey Gladkov <gladkov.alexey@xxxxxxxxx> wrote: > + /* Limit procfs to only ptracable tasks */ > + if (limit_pids == PROC_LIMIT_PIDS_PTRACE) { > + cond_resched(); > + if (!has_pid_permissions(fs_info, task, HIDEPID_NO_ACCESS)) > + goto out_put_task; > + } Where did that "cond_resched()" come from? That doesn't seem to make a lot of sense. Linus -- To unsubscribe from this list: send the line "unsubscribe linux-api" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html