From: OGAWA Hirofumi <hirofumi@mail.parknet.co.jp>
To: Daniel Jacobowitz <dan@debian.org>
Cc: Ingo Molnar <mingo@elte.hu>,
Linus Torvalds <torvalds@transmeta.com>,
linux-kernel@vger.kernel.org
Subject: Re: [patch] ptrace-fix-2.5.33-A1
Date: Sat, 07 Sep 2002 05:44:40 +0900 [thread overview]
Message-ID: <87heh23l1j.fsf@devron.myhome.or.jp> (raw)
In-Reply-To: <20020906154508.GA20709@nevyn.them.org>
Daniel Jacobowitz <dan@debian.org> writes:
> > * Search them and reparent children.
> > */
> > list_for_each(_p, &father->children) {
> > p = list_entry(_p,struct task_struct,sibling);
> > reparent_thread(p, reaper, child_reaper);
> > }
> >
> > Looks like that tracer deprive a process from real parent.
>
> Oh - when the tracer exits the original parent may be corrupted, you
> mean? I guess you're right. But I've made so many changes to this bit
> of code that I'd like to wait until it settles before we fix this -
> it's not a new problem.
Yes, this isn't new problem. However, since other place may be
affected by this, I think should fix this first.
> > list_for_each(_p, &father->ptrace_children) {
> > p = list_entry(_p,struct task_struct,ptrace_list);
> > reparent_thread(p, reaper, child_reaper);
> > }
> >
> > Thread group makes the child which links both ->children and
> > ->ptrace_children.
>
> I don't understand what you mean.
Sorry, forget this.
> > > {
> > > - ptrace_unlink(p);
> > > - list_del_init(&p->sibling);
> > > - p->ptrace = 0;
> > > + /* If we were tracing the thread, release it; otherwise preserve the
> > > + ptrace links. */
> > > + if (unlikely(traced)) {
> > > + task_t *trace_task = p->parent;
> > > + __ptrace_unlink(p);
> > > + p->ptrace = 1;
> >
> > Unexpected change of ptrace flag.
>
> I should've caught that, I actually use the ptrace flags here. But the
> code that uses them is suffering some other BUG() right now.
I forgot I say another point. This path shouldn't send signal to
parent.
--
OGAWA Hirofumi <hirofumi@mail.parknet.co.jp>
next prev parent reply other threads:[~2002-09-06 20:40 UTC|newest]
Thread overview: 23+ messages / expand[flat|nested] mbox.gz Atom feed top
2002-09-05 22:09 [patch] ptrace-fix-2.5.33-A1 Ingo Molnar
2002-09-05 22:15 ` Daniel Jacobowitz
2002-09-05 22:25 ` Ingo Molnar
2002-09-05 22:29 ` Daniel Jacobowitz
2002-09-05 22:39 ` Ingo Molnar
2002-09-05 22:50 ` Daniel Jacobowitz
2002-09-05 22:58 ` Ingo Molnar
2002-09-06 15:27 ` OGAWA Hirofumi
2002-09-06 15:45 ` Daniel Jacobowitz
2002-09-06 15:57 ` Ingo Molnar
2002-09-06 20:44 ` OGAWA Hirofumi [this message]
2002-09-05 22:41 ` Ingo Molnar
2002-09-05 22:52 ` Daniel Jacobowitz
2002-09-05 22:35 ` Ingo Molnar
2002-09-05 23:02 ` Daniel Jacobowitz
2002-09-05 23:08 ` Ingo Molnar
-- strict thread matches above, loose matches on Subject: below --
2002-09-05 22:10 Ingo Molnar
2002-09-05 15:35 Ingo Molnar
2002-09-05 17:08 ` OGAWA Hirofumi
2002-09-05 18:36 ` Daniel Jacobowitz
2002-09-05 20:06 ` Ingo Molnar
2002-09-05 21:44 ` Daniel Jacobowitz
2002-09-05 22:12 ` Daniel Jacobowitz
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=87heh23l1j.fsf@devron.myhome.or.jp \
--to=hirofumi@mail.parknet.co.jp \
--cc=dan@debian.org \
--cc=linux-kernel@vger.kernel.org \
--cc=mingo@elte.hu \
--cc=torvalds@transmeta.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