From: David Mosberger <davidm@napali.hpl.hp.com>
To: Roland McGrath <roland@redhat.com>
Cc: davidm@hpl.hp.com, akpm@osdl.org, tony.luck@intel.com,
linux-ia64@vger.kernel.org, linux-kernel@vger.kernel.org
Subject: Re: [patch] add arch_ptrace_stop() hook and use it on ia64
Date: Wed, 11 May 2005 08:55:14 +0000 [thread overview]
Message-ID: <17025.51314.585943.931944@napali.hpl.hp.com> (raw)
In-Reply-To: <200505110059.j4B0xkkM003452@magilla.sf.frob.com>
>>>>> On Tue, 10 May 2005 17:59:46 -0700, Roland McGrath <roland@redhat.com> said:
Roland> (This leads to threads in TASK_TRACED with a pending
Roland> SIGKILL, that cannot be killed with repeated kill -9s, and
Roland> live until the tracer uses PTRACE_CONT, detaches, or dies.)
Ah, yes, I see now that SIGKILL is a rather nasty special-case.
Roland> When I suggested this change for ia64 originally, I
Roland> overlooked the need to handle blocking in writing to user
Roland> memory. I'd like to give a little more thought to the
Roland> general case. As long as only uninterruptible waits are
Roland> provoked by an arch hook, then I think it is reasonably
Roland> solvable. I think that SIGKILL races are the only ones that
Roland> can arise, and those can be addressed with some signal
Roland> bookkeeping changes. I'd like to give it a little more
Roland> thought. I expect it will wind up being some core changes
Roland> that make it safe for an arch hook to drop and reacquire the
Roland> siglock if it's doing something that won't always complete
Roland> quickly, and then this will all happen before changing
Roland> state, unlocking, and deciding to block (which won't be done
Roland> if there was an intervening SIGKILL).
OK, that sounds good to me. Please keep me posted. It would be nice
to have this hook in place, since it does fix a bug on ia64 and makes
the code simpler.
Thanks,
--david
prev parent reply other threads:[~2005-05-11 8:55 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2005-05-10 20:31 [patch] add arch_ptrace_stop() hook and use it on ia64 David Mosberger
2005-05-10 23:10 ` Andrew Morton
2005-05-11 0:59 ` Roland McGrath
2005-05-11 8:55 ` David Mosberger [this message]
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=17025.51314.585943.931944@napali.hpl.hp.com \
--to=davidm@napali.hpl.hp.com \
--cc=akpm@osdl.org \
--cc=davidm@hpl.hp.com \
--cc=linux-ia64@vger.kernel.org \
--cc=linux-kernel@vger.kernel.org \
--cc=roland@redhat.com \
--cc=tony.luck@intel.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