* [PATCH -mm 0/3] ptrace: detach wakeup fixes
@ 2009-02-08 18:47 Oleg Nesterov
2009-02-09 0:54 ` Roland McGrath
2009-02-09 20:34 ` Oleg Nesterov
0 siblings, 2 replies; 4+ messages in thread
From: Oleg Nesterov @ 2009-02-08 18:47 UTC (permalink / raw)
To: Andrew Morton
Cc: Jerome Marchand, Roland McGrath, Denys Vlasenko, linux-kernel
On top of misc ptrace patches in -mm.
Q: when the tracer exits we bypass ptrace_disable() and
clear_tsk_thread_flag(TIF_SYSCALL_TRACE), is this correct?
Perhaps we should move this code into __ptrace_unlink?
Oleg.
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: [PATCH -mm 0/3] ptrace: detach wakeup fixes
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
2009-02-09 20:34 ` Oleg Nesterov
1 sibling, 1 reply; 4+ messages in thread
From: Roland McGrath @ 2009-02-09 0:54 UTC (permalink / raw)
To: Oleg Nesterov
Cc: Andrew Morton, Jerome Marchand, Denys Vlasenko, linux-kernel
> 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. (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.)
Thanks,
Roland
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: [PATCH -mm 0/3] ptrace: detach wakeup fixes
2009-02-09 0:54 ` Roland McGrath
@ 2009-02-09 1:43 ` Oleg Nesterov
0 siblings, 0 replies; 4+ messages in thread
From: Oleg Nesterov @ 2009-02-09 1:43 UTC (permalink / raw)
To: Roland McGrath
Cc: Andrew Morton, Jerome Marchand, Denys Vlasenko, linux-kernel
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.
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: [PATCH -mm 0/3] ptrace: detach wakeup fixes
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 20:34 ` Oleg Nesterov
1 sibling, 0 replies; 4+ messages in thread
From: Oleg Nesterov @ 2009-02-09 20:34 UTC (permalink / raw)
To: Andrew Morton
Cc: Jerome Marchand, Roland McGrath, Denys Vlasenko, linux-kernel
On 02/08, Oleg Nesterov wrote:
>
> On top of misc ptrace patches in -mm.
Andrew, please ignore this series.
I'll resend patches 1 and 3.
Oleg.
^ permalink raw reply [flat|nested] 4+ messages in thread
end of thread, other threads:[~2009-02-09 20:37 UTC | newest]
Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
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
2009-02-09 20:34 ` Oleg Nesterov
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox