From: Oleg Nesterov <oleg@tv-sign.ru>
To: Sukadev Bhattiprolu <sukadev@us.ibm.com>
Cc: Cedric Le Goater <clg@fr.ibm.com>,
Dave Hansen <haveblue@us.ibm.com>,
Serge Hallyn <serue@us.ibm.com>,
containers@lists.osdl.org,
"Eric W. Biederman" <ebiederm@xmission.com>,
Andrew Morton <akpm@linux-foundation.org>,
linux-kernel@vger.kernel.org
Subject: Re: + remove-the-likelypid-check-in-copy_process.patch added to -mm tree
Date: Fri, 16 Mar 2007 20:02:55 +0300 [thread overview]
Message-ID: <20070316170255.GA194@tv-sign.ru> (raw)
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.
next reply other threads:[~2007-03-16 17:00 UTC|newest]
Thread overview: 10+ messages / expand[flat|nested] mbox.gz Atom feed top
2007-03-16 17:02 Oleg Nesterov [this message]
2007-03-16 18:27 ` + remove-the-likelypid-check-in-copy_process.patch added to -mm tree Eric W. Biederman
2007-03-17 13:02 ` Oleg Nesterov
2007-03-17 14:04 ` Eric W. Biederman
2007-03-17 15:09 ` Oleg Nesterov
2007-03-17 15:24 ` Oleg Nesterov
2007-03-17 17:01 ` Eric W. Biederman
2007-03-17 17:17 ` Oleg Nesterov
2007-03-17 18:54 ` Eric W. Biederman
2007-03-18 6:50 ` sukadev
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20070316170255.GA194@tv-sign.ru \
--to=oleg@tv-sign.ru \
--cc=akpm@linux-foundation.org \
--cc=clg@fr.ibm.com \
--cc=containers@lists.osdl.org \
--cc=ebiederm@xmission.com \
--cc=haveblue@us.ibm.com \
--cc=linux-kernel@vger.kernel.org \
--cc=serue@us.ibm.com \
--cc=sukadev@us.ibm.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox