]> git.hungrycats.org Git - linux/commit
[PATCH] Fix x86-64 singlestep through sigreturn system call
authorRoland McGrath <roland@redhat.com>
Mon, 23 Aug 2004 05:47:28 +0000 (22:47 -0700)
committerLinus Torvalds <torvalds@ppc970.osdl.org>
Mon, 23 Aug 2004 05:47:28 +0000 (22:47 -0700)
commitcae7c30af0190d6af4829a4e5a95fa43b5f01413
treeabf39febf720a2957f020ab9a4028af5c5aaa98a
parentb9cbc585eda36c84edbf05c0e83e3bf950ff45fa
[PATCH] Fix x86-64 singlestep through sigreturn system call

This patch just directly clones Davide Libenzi's i386 code for x86-64 in
both 64-bit and 32-bit cases.  With this, the behavior of single-stepping
all system calls is consistent.

The syscall exit tracing caused by TIF_SINGLESTEP is superfluous in the
case of sysret returns, but harmlessly so (since continuing afterward with
PTRACE_CONT will have cleared TF as well as TIF_SINGLESTEP).  I figured
that little bit of extra processing in the single-step case was better than
adding code to ignore the flag in the sysret case.

Signed-off-by: Roland McGrath <roland@redhat.com>
Cc: <ak@muc.de>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
arch/x86_64/kernel/entry.S
arch/x86_64/kernel/ptrace.c