From: Roland McGrath <roland@redhat.com>
To: Daniel Jacobowitz <dan@debian.org>
Cc: Davide Libenzi <davidel@xmailserver.org>,
Andrew Morton <akpm@osdl.org>, Linus Torvalds <torvalds@osdl.org>,
mingo@redhat.com, cagney@redhat.com,
Linux Kernel Mailing List <linux-kernel@vger.kernel.org>
Subject: Re: [RFC PATCH] x86 single-step (TF) vs system calls & traps
Date: Thu, 1 Jul 2004 14:59:20 -0700 [thread overview]
Message-ID: <200407012159.i61LxKBw022917@magilla.sf.frob.com> (raw)
In-Reply-To: Daniel Jacobowitz's message of Thursday, 1 July 2004 16:34:56 -0400 <20040701203455.GA22888@nevyn.them.org>
> I am not the originator of PTRACE_O_TRACESYSGOOD, I just had the bad
> luck to touch it.
My apologies.
> I think reporting the system call using 0x80|SIGTRAP when you
> PTRACE_SINGLESTEP over the trap instruction makes excellent good sense.
If you are not concerned about existing users of PTRACE_O_TRACESYSGOOD
calling PTRACE_SINGLESTEP and then being confused, then I have no objection.
I consider you to be the authority on any such users there might be.
In that case, I'm happy to endorse Davide's original patch.
I will look into extending it to cover x86-64's ia32 support as well.
I still wonder if anyone has any insight into why this issue does not arise
for native x86-64's syscall/sysret. From my reading of the AMD64 manual, I
would expect it to happen there as well. That is, sysret is the instruction
that sets TF, and the manual says that the instruction after the one that
sets TF gets executed before the trap. It would be convenient if sysret
were a special case for this rule, since it makes it do what is best for the
system call case. But I haven't found a mention of that in the manual.
Thanks,
Roland
next prev parent reply other threads:[~2004-07-01 21:59 UTC|newest]
Thread overview: 18+ messages / expand[flat|nested] mbox.gz Atom feed top
2004-06-29 1:55 Roland McGrath
2004-06-29 2:05 ` Davide Libenzi
2004-06-29 3:42 ` Linus Torvalds
2004-06-29 3:46 ` Roland McGrath
2004-06-29 3:55 ` Linus Torvalds
2004-06-29 4:15 ` Andrew Morton
2004-06-29 4:37 ` Roland McGrath
2004-06-29 7:00 ` Davide Libenzi
2004-07-01 7:47 ` Roland McGrath
2004-07-01 15:14 ` Davide Libenzi
2004-07-01 20:24 ` Roland McGrath
2004-07-01 21:47 ` Davide Libenzi
2004-07-01 20:34 ` Daniel Jacobowitz
2004-07-01 21:59 ` Roland McGrath [this message]
2004-07-02 4:22 ` Daniel Jacobowitz
2004-06-29 4:32 ` Roland McGrath
2004-06-29 5:15 ` Linus Torvalds
2004-07-01 8:09 ` 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=200407012159.i61LxKBw022917@magilla.sf.frob.com \
--to=roland@redhat.com \
--cc=akpm@osdl.org \
--cc=cagney@redhat.com \
--cc=dan@debian.org \
--cc=davidel@xmailserver.org \
--cc=linux-kernel@vger.kernel.org \
--cc=mingo@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
all inboxes | Powered by JetHome®