[<prev] [next>] [thread-next>] [day] [month] [year] [list]
Message-ID: <20070316170255.GA194@tv-sign.ru>
Date: Fri, 16 Mar 2007 20:02:55 +0300
From: Oleg Nesterov <oleg@...sign.ru>
To: Sukadev Bhattiprolu <sukadev@...ibm.com>
Cc: Cedric Le Goater <clg@...ibm.com>,
Dave Hansen <haveblue@...ibm.com>,
Serge Hallyn <serue@...ibm.com>, containers@...ts.osdl.org,
"Eric W. Biederman" <ebiederm@...ssion.com>,
Andrew Morton <akpm@...ux-foundation.org>,
linux-kernel@...r.kernel.org
Subject: Re: + remove-the-likelypid-check-in-copy_process.patch added to -mm tree
Sukadev Bhattiprolu wrote:
> @@ -1237,26 +1237,24 @@ static struct task_struct *copy_process(
> }
> }
>
> - if (likely(p->pid)) {
> - add_parent(p);
> - tracehook_init_task(p);
> -
> - if (thread_group_leader(p)) {
> - pid_t pgid = process_group(current);
> - pid_t sid = process_session(current);
> -
> - p->signal->tty = current->signal->tty;
> - p->signal->pgrp = pgid;
> - set_signal_session(p->signal, process_session(current));
> - attach_pid(p, PIDTYPE_PGID, find_pid(pgid));
> - attach_pid(p, PIDTYPE_SID, find_pid(sid));
> + add_parent(p);
This means that idle threads (except "swapper") are visible to for_each_process()
and do_each_thread(). Looks dangerous and somewhat strange to me.
Could you explain this change?
Oleg.
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/
Powered by blists - more mailing lists