From: Petr Tesarik <ptesarik@suse.cz>
To: Luming Yu <luming.yu@gmail.com>
Cc: Roland McGrath <roland@redhat.com>,
LKML <linux-kernel@vger.kernel.org>,
linux-ia64@vger.kernel.org
Subject: Re: [RFC PATCH] set TASK_TRACED before arch_ptrace code to fix a
Date: Wed, 04 Jun 2008 09:16:12 +0000 [thread overview]
Message-ID: <48465D5C.8000804@suse.cz> (raw)
In-Reply-To: <3877989d0806031916wf11bb2t3847aa630fb39e60@mail.gmail.com>
Luming Yu wrote:
>> It's definitely a bug in strace. For some reason (I don't care about)
>> the execve() syscall produces an extra notification. However, this
>> notification message is suppressed when SIGTRAP is blocked. This
>> explains why the test case fails only when SIGTRAP is blocked.
>
> This is exact problem I suspected and I was trying to address in my hack..
> Since there are several processes involved in the pretty complex
> ptrace scenario.,
> I need to capture all processes context with kdump to confirm this is
> exact root-cause
> for the problem. But kdump doesn't work for me..I'm trying to solve it now..
>
> I'm also in doubt about the semantic correctness of the test case..
> Since SIGTRAP is so necessary to get ptrace work, is it legitimate to
> block it in test case?
>
> One more thing I need to say is:
> Same strace works for utrace enabled kernel on IA64.. If the bug is in
> strace, how could it happen?
No idea, but send me the strace.log file from running
strace -o strace.log strace -f -o log.txt ./test1
and I may be able to tell.
Petr Tesarik
WARNING: multiple messages have this Message-ID (diff)
From: Petr Tesarik <ptesarik@suse.cz>
To: Luming Yu <luming.yu@gmail.com>
Cc: Roland McGrath <roland@redhat.com>,
LKML <linux-kernel@vger.kernel.org>,
linux-ia64@vger.kernel.org
Subject: Re: [RFC PATCH] set TASK_TRACED before arch_ptrace code to fix a race
Date: Wed, 04 Jun 2008 11:16:12 +0200 [thread overview]
Message-ID: <48465D5C.8000804@suse.cz> (raw)
In-Reply-To: <3877989d0806031916wf11bb2t3847aa630fb39e60@mail.gmail.com>
Luming Yu wrote:
>> It's definitely a bug in strace. For some reason (I don't care about)
>> the execve() syscall produces an extra notification. However, this
>> notification message is suppressed when SIGTRAP is blocked. This
>> explains why the test case fails only when SIGTRAP is blocked.
>
> This is exact problem I suspected and I was trying to address in my hack..
> Since there are several processes involved in the pretty complex
> ptrace scenario.,
> I need to capture all processes context with kdump to confirm this is
> exact root-cause
> for the problem. But kdump doesn't work for me..I'm trying to solve it now..
>
> I'm also in doubt about the semantic correctness of the test case..
> Since SIGTRAP is so necessary to get ptrace work, is it legitimate to
> block it in test case?
>
> One more thing I need to say is:
> Same strace works for utrace enabled kernel on IA64.. If the bug is in
> strace, how could it happen?
No idea, but send me the strace.log file from running
strace -o strace.log strace -f -o log.txt ./test1
and I may be able to tell.
Petr Tesarik
next prev parent reply other threads:[~2008-06-04 9:16 UTC|newest]
Thread overview: 82+ messages / expand[flat|nested] mbox.gz Atom feed top
2008-05-22 2:47 [RFC PATCH] set TASK_TRACED before arch_ptrace code to fix a race Luming Yu
2008-05-22 2:47 ` Luming Yu
2008-05-22 8:47 ` [RFC PATCH] set TASK_TRACED before arch_ptrace code to fix a Petr Tesarik
2008-05-22 8:47 ` [RFC PATCH] set TASK_TRACED before arch_ptrace code to fix a race Petr Tesarik
2008-05-22 9:16 ` Luming Yu
2008-05-22 9:16 ` Luming Yu
2008-05-22 11:18 ` Roland McGrath
2008-05-22 11:18 ` Roland McGrath
2008-05-22 12:12 ` [RFC PATCH] set TASK_TRACED before arch_ptrace code to fix a Petr Tesarik
2008-05-22 12:12 ` [RFC PATCH] set TASK_TRACED before arch_ptrace code to fix a race Petr Tesarik
2008-05-22 20:39 ` [RFC PATCH] set TASK_TRACED before arch_ptrace code to fix a Roland McGrath
2008-05-22 20:39 ` [RFC PATCH] set TASK_TRACED before arch_ptrace code to fix a race Roland McGrath
2008-05-23 12:33 ` Luming Yu
2008-05-23 12:33 ` Luming Yu
2008-05-22 13:24 ` Luming Yu
2008-05-22 13:24 ` Luming Yu
2008-05-22 20:34 ` Roland McGrath
2008-05-22 20:34 ` Roland McGrath
2008-05-23 3:42 ` Luming Yu
2008-05-23 3:42 ` Luming Yu
2008-05-23 4:19 ` Roland McGrath
2008-05-23 4:19 ` Roland McGrath
2008-05-23 5:24 ` Luming Yu
2008-05-23 5:24 ` Luming Yu
2008-05-26 0:15 ` Roland McGrath
2008-05-26 0:15 ` Roland McGrath
2008-05-26 1:30 ` Luming Yu
2008-05-26 1:30 ` Luming Yu
2008-05-27 3:31 ` Luming Yu
2008-05-27 3:31 ` Luming Yu
2008-05-27 4:04 ` Roland McGrath
2008-05-27 4:04 ` Roland McGrath
2008-05-27 5:49 ` Luming Yu
2008-05-27 5:49 ` Luming Yu
2008-05-27 6:12 ` Roland McGrath
2008-05-27 6:12 ` Roland McGrath
2008-05-27 6:25 ` [RFC PATCH] set TASK_TRACED before arch_ptrace code to fix a Petr Tesarik
2008-05-27 6:25 ` [RFC PATCH] set TASK_TRACED before arch_ptrace code to fix a race Petr Tesarik
2008-06-03 6:04 ` Luming Yu
2008-06-03 6:04 ` Luming Yu
2008-06-03 9:01 ` [RFC PATCH] set TASK_TRACED before arch_ptrace code to fix a Petr Tesarik
2008-06-03 9:01 ` [RFC PATCH] set TASK_TRACED before arch_ptrace code to fix a race Petr Tesarik
2008-06-03 14:32 ` [RFC PATCH] set TASK_TRACED before arch_ptrace code to fix a Petr Tesarik
2008-06-03 14:32 ` [RFC PATCH] set TASK_TRACED before arch_ptrace code to fix a race Petr Tesarik
2008-06-03 21:01 ` [RFC PATCH] set TASK_TRACED before arch_ptrace code to fix a Roland McGrath
2008-06-03 21:01 ` [RFC PATCH] set TASK_TRACED before arch_ptrace code to fix a race Roland McGrath
2008-06-03 21:31 ` Luck, Tony
2008-06-03 21:31 ` Luck, Tony
2008-06-03 22:13 ` Roland McGrath
2008-06-03 22:13 ` Roland McGrath
2008-06-10 8:23 ` Luming Yu
2008-06-10 8:23 ` Luming Yu
2008-06-04 2:16 ` Luming Yu
2008-06-04 2:16 ` Luming Yu
2008-06-04 9:16 ` Petr Tesarik [this message]
2008-06-04 9:16 ` Petr Tesarik
2008-06-05 1:49 ` Luming Yu
2008-06-05 1:49 ` Luming Yu
2008-06-05 11:16 ` [RFC PATCH] set TASK_TRACED before arch_ptrace code to fix a Petr Tesarik
2008-06-05 11:16 ` [RFC PATCH] set TASK_TRACED before arch_ptrace code to fix a race Petr Tesarik
2008-06-06 0:07 ` [RFC PATCH] set TASK_TRACED before arch_ptrace code to fix a Roland McGrath
2008-06-06 0:07 ` [RFC PATCH] set TASK_TRACED before arch_ptrace code to fix a race Roland McGrath
2008-09-09 3:06 ` Luming Yu
2008-09-09 3:06 ` Luming Yu
2008-09-10 5:55 ` Roland McGrath
2008-09-10 5:55 ` Roland McGrath
2008-09-16 8:50 ` Luming Yu
2008-09-16 8:50 ` Luming Yu
2008-09-17 17:01 ` Roland McGrath
2008-09-17 17:01 ` Roland McGrath
2008-09-18 5:44 ` Luming Yu
2008-09-18 5:44 ` Luming Yu
2008-05-27 6:34 ` Luming Yu
2008-05-27 6:34 ` Luming Yu
2008-05-27 8:48 ` Luming Yu
2008-05-27 8:48 ` Luming Yu
2008-05-28 9:14 ` Luming Yu
2008-05-28 9:14 ` Luming Yu
2008-06-03 6:02 ` Luming Yu
2008-06-03 6:02 ` Luming Yu
2008-05-30 8:05 ` Roland McGrath
2008-05-30 8:05 ` Roland McGrath
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=48465D5C.8000804@suse.cz \
--to=ptesarik@suse.cz \
--cc=linux-ia64@vger.kernel.org \
--cc=linux-kernel@vger.kernel.org \
--cc=luming.yu@gmail.com \
--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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.