mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
From: Andreas Hobein <ah2@delair.de>
To: Oleg Nesterov <oleg@tv-sign.ru>
Cc: Linus Torvalds <torvalds@osdl.org>, Andrew Morton <akpm@osdl.org>,
	Linux Kernel Mailing List <linux-kernel@vger.kernel.org>,
	Roland McGrath <roland@redhat.com>,
	Markus Gutschke <markus@google.com>
Subject: Re: Trouble with ptrace self-attach rule since kernel > 2.6.14
Date: Mon, 4 Sep 2006 17:56:17 +0200	[thread overview]
Message-ID: <200609041756.18343.ah2@delair.de> (raw)
In-Reply-To: <20060904152307.GA98@oleg>

On Monday 04 September 2006 17:23, you wrote:
> Could you test your application with 2.6.18-rc6 and this change
>
> 	-       if (task == current)
> 	+       if (task->tgid == current->tgid)
>
> reverted? I think any report, positive or negative, would be useful.

In fact I applied exactly this change before posting to this mailing list to 
kernel-2.6.17-1.2174_FC5 (Source rpm from fedora core 5) _without_ success. 
Thats why I thought there were also some other changes with similar effects 
in the kernel source at the same time.

> It would be nice if your test covers different conditions, such as
> 'main thread debugs sub-thread' and vice versa. Exec under ptrace is
> also interesting.

In my application a child thread debugs sibling threads and the parent. 
Neither works for newer kernels.

I will try a 2.6.18-rc6 vanilla kernel with the above patch applied at home 
and give you some feedback wether there is a different result as with the 
patched 2.6.17-1.2174_FC5 kernel.

> It's a pity to disappoint you, but you may be the 3rd :) Found this
> unanswered message:
>
> 	http://marc.theaimsgroup.com/?l=linux-kernel&m=114073955827139

May be there are more advocates of self-debugging than expected ...

	Andreas

  reply	other threads:[~2006-09-04 15:56 UTC|newest]

Thread overview: 12+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2006-08-31 21:05 Andreas Hobein
2006-09-01  7:36 ` Andreas Hobein
2006-09-01  7:49   ` Andrew Morton
2006-09-01 18:28     ` Linus Torvalds
2006-09-02 17:03       ` Oleg Nesterov
2006-09-04 12:16         ` Andreas Hobein
2006-09-04 15:23           ` Oleg Nesterov
2006-09-04 15:56             ` Andreas Hobein [this message]
2006-09-04 21:42               ` Andreas Hobein
2006-09-04 22:00                 ` Linus Torvalds
2006-09-04 20:07             ` Markus Gutschke
2006-09-02 17:22       ` [PATCH] eligible_child: remove an obsolete ->tgid check 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=200609041756.18343.ah2@delair.de \
    --to=ah2@delair.de \
    --cc=akpm@osdl.org \
    --cc=linux-kernel@vger.kernel.org \
    --cc=markus@google.com \
    --cc=oleg@tv-sign.ru \
    --cc=roland@redhat.com \
    --cc=torvalds@osdl.org \
    /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

Powered by JetHome