public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
From: Oleg Nesterov <oleg@redhat.com>
To: Roland McGrath <roland@redhat.com>
Cc: Andrew Morton <akpm@linux-foundation.org>,
	Jerome Marchand <jmarchan@redhat.com>,
	Denys Vlasenko <dvlasenk@redhat.com>,
	linux-kernel@vger.kernel.org
Subject: Re: [PATCH -mm 0/3] ptrace: detach wakeup fixes
Date: Mon, 9 Feb 2009 02:43:55 +0100	[thread overview]
Message-ID: <20090209014355.GA27609@redhat.com> (raw)
In-Reply-To: <20090209005405.888BFFC317@magilla.sf.frob.com>

On 02/08, Roland McGrath wrote:
>
> > Q: when the tracer exits we bypass ptrace_disable() and
> > clear_tsk_thread_flag(TIF_SYSCALL_TRACE), is this correct?
>
> It's always been that way.  It's obviously wrong in an abstract sense.  But
> for me, ptrace today is purely about compatibility with how it's behaved in
> the past, however stupid that was--whenever it's been fully consistent and
> predictable, userland is already saddled with coping with the stupidity.
>
> > Perhaps we should move this code into __ptrace_unlink?
>
> Locking nightmare.  ptrace_disable can do stuff that may require the thread
> to be stopped like other ptrace operations require (fiddle registers),
> might include access_process_vm, etc.  Trust me, we don't want to go there
> now.

OK, thanks.

> (In case you were looking for reasons why I'll be soon advocating
> reorganization to get ptrace entirely out of the tasklist_lock arena, this
> is a fine example of the true horror that the current data structure set-up
> gives us.)

Heh. No, I don't need yet another reason to remove tasklist from ptrace ;)
This would be obviously great.

(btw, I do remember I promised the cleanup, will send a bit later).

Oleg.


  reply	other threads:[~2009-02-09  1:46 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2009-02-08 18:47 [PATCH -mm 0/3] ptrace: detach wakeup fixes Oleg Nesterov
2009-02-09  0:54 ` Roland McGrath
2009-02-09  1:43   ` Oleg Nesterov [this message]
2009-02-09 20:34 ` Oleg Nesterov

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=20090209014355.GA27609@redhat.com \
    --to=oleg@redhat.com \
    --cc=akpm@linux-foundation.org \
    --cc=dvlasenk@redhat.com \
    --cc=jmarchan@redhat.com \
    --cc=linux-kernel@vger.kernel.org \
    --cc=roland@redhat.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